-
Notifications
You must be signed in to change notification settings - Fork 28
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
Failure to parse cell barcodes from bam files #5
Comments
Can you check if the bam file has empty CB reads? like this: jphe/scTE#7 (comment) As if you set -CB CB, while some reads has no CB:Z tag, scTE will report such warnning. |
Yes, there were reads without CB:Z tags. After removing those reads, everything ran fine. Thanks! |
Hi kevingmonahan, may I ask how do you filter the reads without barcodes? Thanks a lot! |
I filtered out those lines using samtools and awk. For example:
|
I appreciate it very much! I tried the same command, but got an error (please see below):
The samtools cannot open the bam file, which was produced from 10X Cellranger cloud analysis. |
it's just not finding your bam file - check your file name
…On Mon, Jan 30, 2023 at 1:24 PM lnrlz ***@***.***> wrote:
I filtered out those lines using samtools and awk.
For example:
samtools view possorted_genome_bam.bam -h | awk '/^@/ || /CB:/' | samtools
view -h -b > possorted_genome_bam.clean.bam
I appreciate it very much! I tried the same command, but got an error
(please see below):
samtools view possorted_genome_bam.bam -h | awk '/^@/ || /CB:/' |samtools
view -h -b > possorted_genome_CB_clean.bam [E::hts_hopen] Failed to open
file possorted_genome_bam.bam [E::hts_open_format] Failed to open file
possorted_genome_bam.bam samtools view: failed to open
"possorted_genome_bam.bam" for reading: Exec format error
The samtools cannot open the bam file, which was produced from 10X
Cellranger cloud analysis.
Do you have any idea about the reason for this?
Thanks again!
—
Reply to this email directly, view it on GitHub
<#5 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACHAHDLL6FD4KZJOLWNURRTWVABOJANCNFSM42JQJQ2A>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
scTE fails to find cell barcode information in bam files I generated using the cell ranger pipeline:
The bam files have CB and UB flags:
The text was updated successfully, but these errors were encountered: