8000 warning when run bedtools bamtobed -bedpe · Issue #1 · alexyfyf/atac_nf · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

warning when run bedtools bamtobed -bedpe #1

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

Open
alexyfyf opened this issue Dec 8, 2021 · 0 comments
Open

warning when run bedtools bamtobed -bedpe #1

alexyfyf opened this issue Dec 8, 2021 · 0 comments

Comments

@alexyfyf
Copy link
Owner
alexyfyf commented Dec 8, 2021

The warning message says mate not found. But samtools flagstat show 100% paired.

24582834 + 0 in total (QC-passed reads + QC-failed reads)
0 + 0 secondary
2126 + 0 supplementary
0 + 0 duplicates
24582834 + 0 mapped (100.00% : N/A)
24580708 + 0 paired in sequencing
12292464 + 0 read1
12288244 + 0 read2
24580708 + 0 properly paired (100.00% : N/A)
24580708 + 0 with itself and mate mapped
0 + 0 singletons (0.00% : N/A)
0 + 0 with mate mapped to a different chr
0 + 0 with mate mapped to a different chr (mapQ>=5)
*****WARNING: Query A00611:74:HVLJGDRXX:2:2277:20482:12759 is marked as paired, but its mate does not occur next to it in your BAM file.  Skipping.
*****WARNING: Query A00611:74:HVLJGDRXX:2:2277:20871:27461 is marked as paired, but its mate does not occur next to it in your BAM file.  Skipping.
*****WARNING: Query A00611:74:HVLJGDRXX:2:2277:20961:24925 is marked as paired, but its mate does not occur next to it in your BAM file.  Skipping.
*****WARNING: Query A00611:74:HVLJGDRXX:2:2277:21151:34585 is marked as paired, but its mate does not occur next to it in your BAM file.  Skipping.
*****WARNING: Query A00611:74:HVLJGDRXX:2:2277:21160:4225 is marked as paired, but its mate does not occur next to it in your BAM file.  Skipping.
*****WARNING: Query A00611:74:HVLJGDRXX:2:2277:21368:23813 is marked as paired, but its mate does not occur next to it in your BAM file.  Skipping.

The underlying reason is that we first filtered out -q 30 and -F 1804.
So those paired reads from bwa-mem will still have a flag 99 or something similar, even their mate is removed due to low q score.
Don't think this is a bug, but might need to have a note here and think about which way makes more sense

  1. ignore
  2. remove the first reads when mates is removed.

One example here:

A00611:74:HVLJGDRXX:1:2101:1262:4147	99	chr13	23454035	60	65M	=	23454315	343
A00611:74:HVLJGDRXX:1:2101:1262:4147	147	chr13	23454315	21	2S63M	=	23454035	-343

after filtering, the first read is retained and the flag is still 99.

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
0