Bowtie fails to align reads that appear in the reference sequence
0
0
Entering edit mode
7.7 years ago
AM • 0

Hi,

I want to check something about Bowtie so I tried to simulate NGS results by cutting my reference sequence into fragments (computationally) and extract paired-end reads to files.

I know the reads appear in the reference sequence (that's how I created them) but Bowtie fail to align some of them in paired-end mode, although I allowed mixed-mode and set the maximal distance to be very large (40000, larger then the reference sequence length).

When I tried to align the unaligned reads unpaired, Bowtie could align some of them but still not all of them. Why would Bowtie fail to align reads that appear within the reference sequence? (There is no YF tag in the result sam file) Why using the unpaired mode will align more reads than the mixed mode?

My code: paired-end mode -

bowtie2 -f -a --local -X 40000 -p 32 -x <reference sequence name> -1 <path to first-read-in-pair file> -2 <path to second-read-in-pair file> -S <path to output file>

unpaired mode-

bowtie2 -f -a --local -X 40000 -p 32 -x <reference sequence name> -U <path to first-read-in-pair file>,<path to second-read-in-pair file> -S <path to output file>

Example to unaligned reads from SAM file-

ref-1548...1847.1   4   *   0   0   *   *   0   0   CCGACCACAGGCACTACTGCCATGACTACCACTCAGCCCTGGAACGACACTTTTGGCCCTACTTCGACCGAATTGACCACGGTCACGGGTACCAAGGGTTT   IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII   YT:Z:UU
ref-1557...1856.1   4   *   0   0   *   *   0   0   GACACTACTGCCATGACTACCACTCAACCCTGGAACGACACTTTTAACCCTACTTCAACCGAATTGACCACAGTCACAGGTACCAAAGGTTTGCCAACTGA   IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII   YT:Z:UU
ref-1130...1429.1   4   *   0   0   *   *   0   0   TGTCATCAGAACTCCAACGACTGCGAGCACCATCATAACTACCACTGAGCCATGGAACGGCACTTTTACGTCTACTTCTACTGAAGTGACCACAGTCACTG   IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII   YT:Z:UU

Thanks, A

alignment bowtie sequencing • 2.9k views
ADD COMMENT
0
Entering edit mode

Can you share how you simulated your reads?

ADD REPLY
0
Entering edit mode

It's a long code, but basically...

I spliced my sequence to fragments of 300 bases. The first read is the first 101 bases of the fragment.

To create the second read I generated the complementary sequence of the last 101 bases in the fragment and than reversed the order (for example, if my fragment ends with TTCG the second read will start with CGAA)

ADD REPLY
0
Entering edit mode

Could you please share your reference sequence and unmapped reads? One idea is that there might be repetitive or low complexity regions and reads from such regions map to too many positions.

ADD REPLY
0
Entering edit mode

Hi,

My reference sequence is this:

NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
NNNNNNNNNNNNNNNNNNNNATGACAATGCCTCATCGCTATATGTTTTTGGCAGTCTTTA
CACTTCTGGCACTAACTAGTGTGGCCTCAGGAGCCACAGAGGCGTGCTTACCAGCAGGCC
AGAGGAAAAGTGGGATGAATATAAATTTTTACCAGTATTCATTGAAAGATTCCTCCACAT
ATTCGAATGCAGCATATATGGCTTATGGATATGCCTCAAAAACCAAACTAGGTTCTGTCG
GAGGACAAACTGATATCTCGATTGATTATAATATTCCCTGTGTTAGTTCATCAGGCACAT
TTCCTTGTCCTCAAGAAGATTCCTATGGAAACTGGGGATGCAAAGGAATGGGTGCTTGTT
CTAATAGTCAAGGAATTGCATACTGGAGTACTGATTTATTTGGTTTCTATACTACCCCAA
CAAACGTAACCCTAGAAATGACAGGTTATTTTTTACCACCACAGACGGGTTCTTACACAT
TCAAGTTTGCTACAGTTGACGACTCTGCAATTCTATCAGTAGGTGGTGCAACCGCGTTCA
ACTGTTGTGCTCAACAGCAACCGCCGATCACATCAACGAACTTTACCATTGACGGTATCA
AGCCATGGGGTGGAAGTTTGCCACCTAATATCGAAGGAACCGTCTATATGTACGCTGGCT
ACTATTATCCAATGAAGGTTGTTTACTCGAACGCTGTTTCTTGGGGTACACTTCCAATTA
GTGTGACACTTCCAGATGGTACCACTGTAAGTGATGACTTCGAAGGGTACGTCTATTCCT
TTGACGATGACCTAAGTCAATCTAACTGTACTGTCCCTGACCCTTCAAATTATGCTGTCA
GTACCACTACAACTACAACGGAACCATGGACCGGTACTTTCACTTCTACATCTACTGAAA
TGACCACCGTCACCGGTACCAACGGCGTTCCAACTGACGAAACCGTCATTGTCATCAGAA
CTCCAACNACTGCNAGCACCATCATAACTACCACTGANCCATGGAACGGCACTTTTACNT
CTACTTCTACTGAANTGACCACAGTCACTGGCACCAATGGTGTACCAACTGACGAAACCA
TCATTGTAATCAGAACACCAACAACAGCCACTACTGCCATAACTACCACTGAACCATGGA
ACGGCACTTTTACCTNTACTTCTACTGAAATGACCACCGTCACCGGTACCAATGGTTTGC
CAACTGATGAAACCATCATTNNCATCAGAACACCAACNACNGCCACTACTGCCATGACTA
CCACTCACCATGGAACGACACTTTTAACCTCTACCTCCACTGAAATGACCACCGTCACCG
GTACCAAGGGTTTGCCAACTGATGAAACCATCATTGTCATCAGAACACCNACCACAGNCA
CTACTGCCATGACTACCACTCANCCCTGGAACGACACTTTTNNCCCTACTTCNACCGAAT
TGACCACNGTCACNGGTACCAANGGTTTGCCAACTGATGANACCATCATTGTCATCANAA
CACCAACAACAGCNANTACTGNCNTGACTACNACTCANCCATGGAACGACACTTTTNCCT
CTACATCCNCTGAAATCACCACCGTCACCGGTACCAATGGTTTGCCAACTGANGAGACCA
TCATTGTCATCAGAACACCAACAACAGCCACTACTGCCATGACTACACCTCAGCCATGGA
ACGACACTTTTACCTCTACATCCACTGAAATGACCACCGTCACCGGTACCAACGGTTTGC
CAACTGATGAAACCATCATTGTCATCAGAACACCAACAACAGCCACTACTGCCATAACTA
CAACTGAGCCATGGAACAGCACTTTTACCTCTACATCCACTGAAATGACCACCGTCACCG
GTACCAACGGTTTGCCAACTGATGAAACCATCATTGTCATCAGAACACCAACAACAGCCA
CTACTGCCATATTGTCATCATCATCTTCAGGACAAATCACCAGCTCTATCACGTCTTCGC
GTCCAATTATTACCCCATTCTATCCTAGCAATGGAACTTCTGTGATTTCTTCCTCAGTAA
TTTCTTCCTCAGTCACTTCTTCTCTATTCACTTCTTCTCCAGTCATTTCTTCCTCAGTCA
TTTCTTCTTCTACAACAACCTCCACTTCTATATTTTCTGAATCATCTAAATCATCCGTCA
TTCCAACCAGTAGTTCCACCTCTGGTTCTTCTGAGAGCGAAACGAGTTCAGCTGGTTCTG
TCTCTTCTTCCTCTTTTATCTCTTCTGAATCATCAAAATCTCCTACATATTCTTCTTCAT
CATTACCACTTGTTACCAGTGCGACAACAAGCCAGGAAACTGCTTCTTCATTACCACCTG
CTACCACTACAGAGACAACAAAGCAAACCAAAGGGACAACAGAGCAAACCACAGAAACAA
CAAAACAAACCACGGTAGTTACAATTTCTTCTTGTGAATCTGACGTATGCTCTAAGACTG
CTTCTCCAGCCATTGTATCTACAAGCACTGCTACTATTAACGGCGTTACTACAGAATACA
CAACATGGTGTCCTATTTCCACCACAGAATCGAGGCAACAAACAACGCTAGTTACTGTTA
CTTCCTGCGAATCTGGTGTGTGTTCCGAAACTGCTTCACCTGCCATTGTTTCGACGGCCA
CGGCTACTGTGAATGATGTTGTTACGGTCTATCCTACATGGAGGCCACAGACTGCGAATG
AAGAGTCTGTCAGCTCTAAAATGAACAGTGCTACCGGTGAGACAACAACCAATACTTTAG
CTGCTGAAACGACTACCAATACTGTAGCTGCTGAGACGAAAACAGTAGTCACCTCTTCGC
TTTCAAGATCTAATCACGCTGAAACACAGACGGCTTCCGCGACCGATGTGATTGGTCACA
GCAGTAGTGTTGTTTCTGTATCCGAAACTGGCAACACCAAGAGTCTAACAAGTTCCGGGT
TGAGTACTATGTCGCAACAGCCTCGTAGCACACCAGCAAGCAGCATGGTAGGATATAGTA
CAGCTTCTTTAGAAATTTCAACGTATGCTGGCAGTGCCAACAGCTTACTGGCCGGTAGTG
GTTTAAGTGTCTTCATTGCGTCCTTATTGCTGGCAATTATTTAANNNNNNNNNNNNNNNN
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
NNNN

These are my reads (after I replaces the ambiguous characters with non-ambiguous ones). The numbers in the read name are the coordinates of the fragment it in the reference sequence.

>ref-1548...1847.1 CCGACCACAGGCACTACTGCCATGACTACCACTCAGCCCTGGAACGACACTTTTGGCCCTACTTCGACCGAATTGACCACGGTCACGGGTACCAAGGGTTT
>ref-1557...1856.1 GACACTACTGCCATGACTACCACTCAACCCTGGAACGACACTTTTAACCCTACTTCAACCGAATTGACCACAGTCACAGGTACCAAAGGTTTGCCAACTGA
>ref-1130...1429.1 TGTCATCAGAACTCCAACGACTGCGAGCACCATCATAACTACCACTGAGCCATGGAACGGCACTTTTACGTCTACTTCTACTGAAGTGACCACAGTCACTG
>ref-1548...1847.1 CCGACCACAGGCACTACTGCCATGACTACCACTCAGCCCTGGAACGACACTTTTGGCCCTACTTCGACCGAATTGACCACGGTCACGGGTACCAAGGGTTT
>ref-1548...1847.1 CCAACCACAGACACTACTGCCATGACTACCACTCAACCCTGGAACGACACTTTTAACCCTACTTCAACCGAATTGACCACAGTCACAGGTACCAAAGGTTT
>ref-1534...1833.1 TTGTCATCAGAACACCTACCACAGTCACTACTGCCATGACTACCACTCATCCCTGGAACGACACTTTTTTCCCTACTTCTACCGAATTGACCACTGTCACT
>ref-1130...1429.1 TGTCATCAGAACTCCAACGACTGCGAGCACCATCATAACTACCACTGAGCCATGGAACGGCACTTTTACGTCTACTTCTACTGAAGTGACCACAGTCACTG

Thanks in advance!

ADD REPLY
0
Entering edit mode

Interestingly, your non-mapping reads correspond to reference regions including several N's. Have a look at the Bowtie2 "--n-ceil" (func for max # non-A/C/G/Ts permitted in aln (L,0,0.15)) and "--np" (penalty for non-A/C/G/Ts in read/ref (1)) options. As you said, you replaced ambiguous characters with non-ambiguous ones. This may be the origin of your problem.

ADD REPLY

Login before adding your answer.

Traffic: 1660 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6