Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • Victory
    replied
    Thank you. I will try that.

    Leave a comment:


  • nilshomer
    replied
    Originally posted by Victory View Post
    I use the import command to make BAM file.
    samtools import <in.ref_list> <in.sam> <out.bam>
    Do I have to use specific command to install the SAM program or just put the program folder on the directory?
    You have to copy the binary to an directory where *other* binaries are installed (like /usr/local/bin). You have to make sure that your PATH environment variable includes the above path. Then you can just "samtools" instead of the "/home/<ETC>/samtools"

    Leave a comment:


  • Victory
    replied
    I use the import command to make BAM file.
    samtools import <in.ref_list> <in.sam> <out.bam>
    Do I have to use specific command to install the SAM program or just put the program folder on the directory?

    Leave a comment:


  • nilshomer
    replied
    Originally posted by Victory View Post
    Thank you. I use SUN cluster computer. I have already copy whole folder of SAM version 0.1.6 to my working directory. However, it still doesn't work. I'm not sure which one is the install directory.
    Please be more verbose. What commands are you executing to install samtools after copying the SAM folder. You may have to get your cluster administrator to install samtools cluster-wide. I typically have a local install directory that is included in my PATH environmental variable.

    Leave a comment:


  • Victory
    replied
    Thank you. I use SUN cluster computer. I have already copy whole folder of SAM version 0.1.6 to my working directory. However, it still doesn't work. I'm not sure which one is the install directory.

    Leave a comment:


  • nilshomer
    replied
    Originally posted by Victory View Post
    Are there anyone know how to install SAM tool? I read in the SAM document and it didn't say anything about that. Thank you.
    Download it from http://samtools.sourceforge.net/. Copy the binaries to your typical install directory (which depends on your system).

    Leave a comment:


  • Victory
    replied
    Install SAM tool

    Are there anyone know how to install SAM tool? I read in the SAM document and it didn't say anything about that. Thank you.

    Leave a comment:


  • totalnew
    replied
    Originally posted by xuer View Post
    I tried to use sort command :
    samtools sort aln.sam aln.sam.sorted
    i also got
    Segmentation fault
    is there anybody had this probelm before?

    You should sort bam file, try this

    samtools sort -n aln.bam sorted

    then mv the sorted.bam file to whatever name you want.

    Leave a comment:


  • xuer
    replied
    I tried to use sort command :
    samtools sort aln.sam aln.sam.sorted
    i also got
    Segmentation fault
    is there anybody had this probelm before?

    Leave a comment:


  • kraigrs
    replied
    When I attempt to align mated paired-end sequence reads and output the file
    in SAM format, I receive a segmentation fault. If I try the same thing
    without the -S/--sam option, it works fine. Here is what I am getting:

    EEB-WITT5:Bowtie wittkopp-lab$ ./bowtie -q -k 1 --sam --best
    --solexa1.3-quals dmel-all-CDS-r5.21 -1
    ./mel_sim_data/Hybrids/s_2_1_sequence.txt -2
    ./mel_sim_data/Hybrids/s_2_2_sequence.txt > s_2_sequence.sam

    Segmentation fault

    Any help in this matter would be greatly appreciated! Again, I would like
    this output to be in SAM format. I tried converting the bowtie output to
    SAM but the bowtie2sam.pl script from SAMtools doesn't do that for me.

    Leave a comment:


  • totalnew
    replied
    Originally posted by joa_ds View Post
    hi there again...


    Step 3:
    ../../samtools-0.1.5c_x86_64-linux/samtools view -S -h Risk_no_haplos.sam \
    is giving
    missing header? Abort!

    ../../samtools-0.1.5c_x86_64-linux/samtools pileup -S -cf Final Risk_no_haplos.sam
    is giving
    [samopen] no @SQ lines in the header.
    [sam_read1] missing header? Abort!


    aargh

    EDIT: Woohoo, finally figured it out... Apparently i had to use faidx before i could use pileup straight away... The question remains if using BWA is a wise thing for the presented problem...
    Apparently, you shouldn't use samtools view sam file, that is for bam file. To pileup, you would either make bam file or get indexed reference sequence (.fai).
    Last edited by totalnew; 08-10-2009, 08:27 AM.

    Leave a comment:


  • totalnew
    replied
    Originally posted by yasu View Post
    I have a quick question. How can I use 'samtools view' for converting bam file to sam file? I tried some times but I failed to do it...
    That is way simple, try this linux command

    samtools view test.bam > test.sam

    Leave a comment:


  • joa_ds
    replied
    hi there again...

    The reasons I am trying BWA (still hasn't worked... ) is because I am analyzing illumina data for counting variant frequencies for a pool of several patients.

    So far so good, BowTie gives 15%, Maq gives 40% and Sanger validation gives 0% for a certain variant. We have around 1000 variants, so this is kinda annoying.

    I am doing a very simple thing: I align the reads using BowTie and i just parse the output file and count the variant frequencies. Some other people used MAQ and in the lab they verified using Sanger.

    Before I spend another 10h trying to figure out why this BWA thing ain't working, is it worth trying to determine variant frequencies in a pool? And if so, what is the best strategy to do so.

    And on the BWA/samtools thingie. I tryed using the -S flag but i keep getting "Segmentation fault"

    I must be doing something totally wrong here...


    Step 0:
    /data/illumina/bwa-0.4.9/bwa index -a is Final

    Step 1:
    /data/illumina/bwa-0.4.9/bwa aln -t 12 Final Risk_no_haplos.txt > Risk_no_haplos.sai

    Step 2:
    /data/illumina/bwa-0.4.9/bwa samse Final Risk_no_haplos.sai Risk_no_haplos.txt > Risk_no_haplos.sam

    Step 3:
    ../../samtools-0.1.5c_x86_64-linux/samtools view -S -h Risk_no_haplos.sam \
    is giving
    missing header? Abort!

    ../../samtools-0.1.5c_x86_64-linux/samtools pileup -S -cf Final Risk_no_haplos.sam
    is giving
    [samopen] no @SQ lines in the header.
    [sam_read1] missing header? Abort!


    aargh

    EDIT: Woohoo, finally figured it out... Apparently i had to use faidx before i could use pileup straight away... The question remains if using BWA is a wise thing for the presented problem...
    Last edited by joa_ds; 08-10-2009, 07:10 AM. Reason: Woops

    Leave a comment:


  • nilshomer
    replied
    Originally posted by yasu View Post
    I have a quick question. How can I use 'samtools view' for converting bam file to sam file? I tried some times but I failed to do it...
    You can, but include the header ("-h").

    Leave a comment:


  • yasu
    replied
    I have a quick question. How can I use 'samtools view' for converting bam file to sam file? I tried some times but I failed to do it...

    Leave a comment:

Latest Articles

Collapse

  • SEQadmin2
    Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
    by SEQadmin2



    Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

    Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
    ...
    10-14-2026, 09:55 AM
  • SEQadmin2
    New Genomics Technologies Take Aim at Long-Standing Limits
    by SEQadmin2


    Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

    We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
    ...
    09-28-2026, 10:25 AM

ad_right_rmr

Collapse

News

Collapse

Topics Statistics Last Post
Started by SEQadmin2, 10-15-2026, 10:52 AM
0 responses
23 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 10-14-2026, 05:39 AM
0 responses
27 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 10-13-2026, 09:56 AM
0 responses
23 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 10-09-2026, 11:14 AM
0 responses
28 views
0 reactions
Last Post SEQadmin2  
Working...