Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • davicim0
    Junior Member
    • Apr 2013
    • 2

    #1

    Difficulty with bowtie's output sam format

    Hello. I was wondering if I could get some help.

    I'm trying to use bowtie to align a fasta file using an index and output it in sam format. Later on, I'll need to process the output sam file using another script. Anyway, I called bowtie with these options

    bowtie -f -t -p 8 -n 3 -l 32 -k 1 -m 100 -S -y --chunkmbs 1024 --max FASTA_FILE.mm.fasta --best

    using input of the form

    >38-1
    TGGAACGGAACGGAATGGAAGGGAATGGAATGGAAT


    and got output of the form

    38-1 0 chrY:28807964-28808132 275 255 36M * 0 0 TGGAACGGAACGGAATGGAAGGGAATGGAATGGAAT IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII XA:i:2 MD:Z:5T14A15 NM:i:2

    Maybe I'm misunderstanding something, but this doesn't exactly appear to be in sam format. What I would like is for the coordinate of the leftmost position of the sequence to be in the fourth field (instead of 275--I'm not sure what that number represents, but given the label in field three, I don't think it's the coordinate) and for only the chromosome to be in the third field. I could manually modify the output, but I'm afraid to throw away that 275 because I have no idea what it is.

    Does anyone know what I'm doing wrong? Any help is appreciated. If you need more information, I'll do my best to provide it.

    Thanks,

    David
  • mastal
    Senior Member
    • Mar 2009
    • 666

    #2
    Difficulty with bowtie's output sam format

    Your parameters seem OK, I assume you did also include the name of your index.

    It does look like sam format, although as you say, the 275 seems difficult to explain.

    Have you compared your read sequence to the sequence of whatever is called chrY:28807964-28808132 in your reference to see if the alignment makes sense?

    Comment

    • GenoMax
      Senior Member
      • Feb 2008
      • 7142

      #3
      Check this: http://bowtie-bio.sourceforge.net/ma...-bowtie-output

      Comment

      • swbarnes2
        Senior Member
        • May 2008
        • 910

        #4
        I think that's all proper SAM format

        38-1 is the name of the read, 0 is the flag (the read maps forward) the reference is named " chrY:28807964-28808132", 275 is the position, 255 is the mapping quality (255 seems to mean that the mapping quality is not available), 36M is the CIGAR, etc

        Comment

        • davicim0
          Junior Member
          • Apr 2013
          • 2

          #5
          Thanks for the quick responses, everyone.

          Your parameters seem OK, I assume you did also include the name of your index.

          It does look like sam format, although as you say, the 275 seems difficult to explain.

          Have you compared your read sequence to the sequence of whatever is called chrY:28807964-28808132 in your reference to see if the alignment makes sense?
          I did include the name of the index when I called bowtie. I found the reference sequence in a fasta file off of which the index was based. The sequence corresonding to chrY:28807964-28808132 is

          >chrY:28807964-28808132
          NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNtgaagtggagtggagtgtaacgaaatggggtggaatgtaattgaatggagtggagtgtttggagtctactggagtggaatggaacggaatggaaaggaatggaatggaatggagtgaagtgcagtgcagtgaaatggagtggaaaggaatggaatggaatcaaatggaNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN


          This doesn't match exactly, but that can be acceptable from what I understand, so I believe this alignment makes sense. That being said...

          I think that's all proper SAM format

          38-1 is the name of the read, 0 is the flag (the read maps forward) the reference is named " chrY:28807964-28808132", 275 is the position, 255 is the mapping quality (255 seems to mean that the mapping quality is not available), 36M is the CIGAR, etc
          At first I was going to say that 275 can't be the position since I would expect the position to fall between 28807964 and 28808132. But then I realized that this number actually corresponds to position in the reference sequence, and sure enough when I checked these characters, they matched the ones given in the bowtie output!

          Anyway, I feel comfortable with making some manual adjustments now.

          Thanks again for your help.

          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-22-2026, 11:13 AM
          0 responses
          26 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-22-2026, 10:48 AM
          0 responses
          20 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-15-2026, 10:52 AM
          0 responses
          36 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-14-2026, 05:39 AM
          0 responses
          43 views
          0 reactions
          Last Post SEQadmin2  
          Working...