Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Bowtie option --best --strata for unique mapper in the genome

    Hi,

    I have some trouble with alignment using bowtie.
    I'm searching for reads that map at a unique place on the genome, so, i take 1 reads that i know it's a unique mapper and it map the genome 100%, and i try to align it with bowtie with the following command, allowing up to 2 mismatches (because for the other reads i want to allow up to 2 mismatches).

    For verification :
    Code:
    [B]bowtie -v 0 -m 1 -t droso_build -c ATGCGAGAGTGGT[/B]
    Time loading forward index: 00:00:01
    Time for 0-mismatch search: 00:00:00
    0	+	chr2L	5308	ATGCGAGAGTGGT	IIIIIIIIIIIII	0	
    # reads processed: 1
    # reads with at least one reported alignment: 1 (100.00%)
    # reads that failed to align: 0 (0.00%)
    Reported 1 alignments to 1 output stream(s)
    Time searching: 00:00:01
    Overall time: 00:00:01
    But, when i try to align the other reads (allowing up to 2mismatches), this reads have no hit :
    Code:
    [B]bowtie -m 1  -v 2 -t droso_build -c ATGCGAGAGTGGT[/B]
    Time loading forward index: 00:00:00
    Time loading mirror index: 00:00:01
    End-to-end 2/3-mismatch full-index search: 00:00:00
    # reads processed: 1
    # reads with at least one reported alignment: 0 (0.00%)
    # reads that failed to align: 0 (0.00%)
    # reads with alignments suppressed due to -m: 1 (100.00%)
    No alignments
    Time searching: 00:00:01
    Overall time: 00:00:01
    But,when i do:

    And whan i add -a --best --strata i get :
    Code:
    bowtie -a -v 2 -m 1 --best --strata -t droso_build -c ATGCGAGAGTGGT
    Time loading forward index: 00:00:00
    Time loading mirror index: 00:00:01
    End-to-end 2/3-mismatch full-index search: 00:00:00
    0	+	chr2L	5308	ATGCGAGAGTGGT	IIIIIIIIIIIII	0	
    # reads processed: 1
    # reads with at least one reported alignment: 1 (100.00%)
    # reads that failed to align: 0 (0.00%)
    Reported 1 alignments to 1 output stream(s)
    Time searching: 00:00:01
    Overall time: 00:00:01
    I'm really lost, is the -a --best --strata a good solution ?

    Thanks in advance for your reply.

  • #2
    Reporting uniquely mapped reads with bowtie

    I have a similar problem - I want bowtie to report only uniquely mapped reads. I figured using the flags -n 3 --best -m1 will accomplish this:
    --best should ensure that only the best alignments among the hits are considered, and -m 1 should ensure that the alignment is reported only when there is a unique best alignment.

    But, it doesn't seem to work that way.
    bowtie -n 3 -a returns two alignments for the read:
    Code:
    alignment1 CIGAR: 48M flags: XA:i:0	MD:Z:48	NM:i:0
    alignment2 CIGAR: 48M flags: XA:i:0	MD:Z:0C47	NM:i:1
    Clearly, the second alignment is not the same as the first.
    bowtie -n 3 --best returns only the first alignment:
    Code:
    alignment1 CIGAR: 48M flags: XA:i:0	MD:Z:48	NM:i:0
    Everything looks good so far. Now, I add the -m 1 flag, to report only unique reads, but:
    bowtie -n 3 --best -m 1 reports no alignments for this read:

    Code:
    # reads processed: 1
    # reads with at least one reported alignment: 0 (0.00%)
    # reads that failed to align: 0 (0.00%)
    # reads with alignments suppressed due to -m: 1 (100.00%)
    No alignments
    Am I doing anything wrong? Any help is appreciated.

    Comment

    Latest Articles

    Collapse

    • seqadmin
      Advancing Precision Medicine for Rare Diseases in Children
      by seqadmin




      Many organizations study rare diseases, but few have a mission as impactful as Rady Children’s Institute for Genomic Medicine (RCIGM). “We are all about changing outcomes for children,” explained Dr. Stephen Kingsmore, President and CEO of the group. The institute’s initial goal was to provide rapid diagnoses for critically ill children and shorten their diagnostic odyssey, a term used to describe the long and arduous process it takes patients to obtain an accurate...
      12-16-2024, 07:57 AM
    • seqadmin
      Recent Advances in Sequencing Technologies
      by seqadmin



      Innovations in next-generation sequencing technologies and techniques are driving more precise and comprehensive exploration of complex biological systems. Current advancements include improved accessibility for long-read sequencing and significant progress in single-cell and 3D genomics. This article explores some of the most impactful developments in the field over the past year.

      Long-Read Sequencing
      Long-read sequencing has seen remarkable advancements,...
      12-02-2024, 01:49 PM

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by seqadmin, 12-17-2024, 10:28 AM
    0 responses
    25 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 12-13-2024, 08:24 AM
    0 responses
    42 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 12-12-2024, 07:41 AM
    0 responses
    28 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 12-11-2024, 07:45 AM
    0 responses
    42 views
    0 likes
    Last Post seqadmin  
    Working...
    X