Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • DrD2009
    Member
    • Oct 2009
    • 88

    #1

    Weird Bowtie Alignment Result (unaligned remaining in output file)

    Hello everyone.

    I'm getting a strange Bowtie output where the resulting sequence doesn't find a match to the genome, but remains included in my SAM output file. I only noticed this when running another process downstream and the number of alignments put in matched the number of inputs for Bowtie, although the inputs did not all align to the genome.

    Code:
    brandon@brandon:~/brachy/data/wt$ bowtie -t -p 4 --sam-nohead --sam-nosq -f -S -k 1 -v 0 ~/brachy/genome/brachygen wt.collapse.fq wt.collapse.sam
    Time loading forward index: 00:00:01
    Time for 0-mismatch search: 00:00:10
    # reads processed: 2009754
    # reads with at least one reported alignment: 1636731 (81.44%)
    # reads that failed to align: 373023 (18.56%)
    Reported 1636731 alignments to 1 output stream(s)
    Time searching: 00:00:13
    Overall time: 00:00:13
    All of the 3732023 reads that failed to align to the genome remain in the output file and are not given a chromosome assignment, but a "*" and the start and stop regions are reported as zero. See below:

    Code:
    813501-1	0	Bd1	17008793	255	24M	*	0	0	TGGAAAAGATTCTGGATCCTGTGC	IIIIIIIIIIIIIIIIIIIIIIII	XA:i:0	MD:Z:24	NM:i:0
    813504-1	4	*	0	0	*	*	0	0	GAACGGAATTACAGAACAAAATA	IIIIIIIIIIIIIIIIIIIIIII	XM:i:0
    813506-1	4	*	0	0	*	*	0	0	GATAACCGTAGTAATTCTAGAGCTGATACGTGC	IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII	XM:i:0
    813505-1	16	Bd1	30522658	255	24M	*	0	0	GCCACTGATTCCACCTGTAACCAA	IIIIIIIIIIIIIIIIIIIIIIII	XA:i:0	MD:Z:24	NM:i:0
    813503-1	16	Bd4	34965205	255	25M	*	0	0	CCCACTAAGTGTAGTTAATTTTAGG	IIIIIIIIIIIIIIIIIIIIIIIII	XA:i:0	MD:Z:25	NM:i:0
    813507-1	0	Bd2	11654350	255	24M	*	0	0	ACCCTGCCGATGGGACTCAGTGGA	IIIIIIIIIIIIIIIIIIIIIIII	XA:i:0	MD:Z:24	NM:i:0
    813510-1	4	*	0	0	*	*	0	0	CGCTATCAGATGAGCCTAGGTCGGATTA	IIIIIIIIIIIIIIIIIIIIIIIIIIII	XM:i:0
    813508-1	0	Bd3	3399363	255	24M	*	0	0	GCGGCTGATTCTGAATAATACCAA	IIIIIIIIIIIIIIIIIIIIIIII	XA:i:0	MD:Z:24	NM:i:0
    813509-1	16	Bd5	24802257	255	21M	*	0	0	ACGCCTTTGCTCAGGTGCCAT	IIIIIIIIIIIIIIIIIIIII	XA:i:0	MD:Z:21	NM:i:0
    813512-1	0	Bd4	36841227	255	24M	*	0	0	ATGGTCGAAATATTACATGACGCA	IIIIIIIIIIIIIIIIIIIIIIII	XA:i:0	MD:Z:24	NM:i:0
    When I discovered this I used gawk to filter out all alignments with a chromosome assignment = * and the remaining result of alignments was the number of alignments reported to have been aligned.

    Does anyone understand this problem? If so, is there a way to exclude these results from the output file other than using gawk or another utility to filter them out? I've used Bowtie quite a bit and I've never experienced a problem like this.

    Thanks.
  • sowmyai
    Member
    • Jan 2010
    • 27

    #2
    I think this is a feature rather than a problem.
    All my reads are usually written out to the SAM output by Bowtie, and the next step in my pipeline is to weed out reads that did not map by looking for a "*" in the third column (which would contain the name of the ref sequence where the read aligned, if it did) by gawk or some such utility.

    Comment

    • DrD2009
      Member
      • Oct 2009
      • 88

      #3
      Thanks.

      I used gawk before to filter them out:

      gawk '$3!="*"' in.sam > out.sam

      But, since Bowtie didn't find a region of alignment to the genome for these 'features' I'm unsure as to why it would still be contained within the alignment file.

      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
        ...
        Today, 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, Today, 05:39 AM
      0 responses
      10 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, Yesterday, 09:56 AM
      0 responses
      12 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 10-09-2026, 11:14 AM
      0 responses
      25 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 09-29-2026, 09:51 AM
      0 responses
      77 views
      0 reactions
      Last Post SEQadmin2  
      Working...