Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nvBowtie unmapped R2 replaced by reverse-compliment of R1 #47

Open
tsp-kucbd opened this issue Jul 5, 2022 · 0 comments
Open

nvBowtie unmapped R2 replaced by reverse-compliment of R1 #47

tsp-kucbd opened this issue Jul 5, 2022 · 0 comments

Comments

@tsp-kucbd
Copy link

While extracting the unmapped reads from a nvBowtie bam file, the unmapped R2 is always replaced by a reverse-compliment version of R1.
This is very similar to an issue raised in 2015 https://groups.google.com/g/nvbio-users/c/is28EEvm2QE

Here is an example to reproduce the error.
A tar file with minimal reference file and fq files is available at https://sid.erda.dk/share_redirect/hMPcixT4XT

wget "https://sid.erda.dk/share_redirect/hMPcixT4XT" -O dbg.tgz
tar xvzf dbg.tgz
cd dbg
nvBWT ref.fna ref.nvBWT.index
nvBowtie -1 test_1.fq -2 test_2.fq -S test_nvbio.bam -x ref.nvBWT.index

samtools view test_nvbio.bam|grep A00627:307:H22MGDSX3:1:1101:1325|cut -f10
cat test_*.fq|grep -A2 A00627:307:H22MGDSX3:1:1101:1325|grep AA

This results in

# R1 read from bam file
CAAATGTATCTCTCTCTCTCACACACAGTATCCAGATAACTGATTACTGGAATGTGTGATAGAATAATACTACTGCAGCCACGAATGGTATCTATTTGAAAAGTCTTCCTTGAATAGAAGTCTAATGCCGTCTACAGGATGTAGTAGATG
# R2 read from bam file, which is reverse_complement of R1
CATCTACTACATCCTGTAGACGGCATTAGACTTCTATTCAAGGAAGACTTTTCAAATAGATACCATTCGTGGCTGCAGTAGTATTATTCTATCACACATTCCAGTAATCAGTTATCTGGATACTGTGTGTGAGAGAGAGAGATACATTTG
# R1 read from test_1.fq
CAAATGTATCTCTCTCTCTCACACACAGTATCCAGATAACTGATTACTGGAATGTGTGATAGAATAATACTACTGCAGCCACGAATGGTATCTATTTGAAAAGTCTTCCTTGAATAGAAGTCTAATGCCGTCTACAGGATGTAGTAGATG
# R2 read from test_2.fq
AACTTAGAGTTCACTCTGTACAGATAGATAGATACAAGTTACCACAGAGATCATACTACATCTACTACATACTGTAAACGGCATTAGACTTCTATTCAAGGACGACGATTCAAATAGATACCATTCGTGGCTGCAGAACTATAATTCTAA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant