-
Notifications
You must be signed in to change notification settings - Fork 20
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
BAM error #36
Comments
I am using DCC version 0.4.7 and I have this exact issue. I have single-end stranded data. My BAM file list: My sample sheet: The head of my first BAM file in my BAM list (using samtools view <file.bam> | head): I see that this issue is resolved, but I have been unable to overcome this error and am unsure of how to proceed. I glanced at the fix for this and do not think it applies in my case. Any insight or help would be greatly appreciated. |
The issue may be related to the fact that you are employing single stranded data, as the old fix only may have worked for the paired-end mode I normally use. I will look into it. |
Hi @MaxHills, are the Cheers, |
Hi @tjakobi, If I use samtools view Aligned.sortedByCoord.out.bam | head I wish I could provide you with a key to understanding my issue, but I am also perplexed. Best regards, |
Dear @MaxHills, would it be possible to upload one of the bam files (the first few 100 lines + head are probably enough) for further debugging? I have a suspicion but would need to run more tests. Cheers, |
Dear @tjakobi, |
Hi @MaxHills, lets try something: instead of
use
in the DCC call. Cheers, |
Okay, I am no longer receiving the BAM error. Thank you. |
Added CLI check to make sure BAM file list is either binary or ASCII multi line with @. |
Problem occurs when -G and -B is specified:
Traceback (most recent call last):
File "/home/sstrohbuecker/.local/bin/DCC", line 9, in
load_entry_point('DCC==0.4.4', 'console_scripts', 'DCC')()
File "build/bdist.linux-x86_64/egg/DCC/main.py", line 408, in main
File "build/bdist.linux-x86_64/egg/DCC/main.py", line 675, in checkBAMsorting
File "pysam/libcalignmentfile.pyx", line 351, in pysam.libcalignmentfile.AlignmentFile.cinit (pysam/libcalignmentfile.c:5200)
File "pysam/libcalignmentfile.pyx", line 584, in pysam.libcalignmentfile.AlignmentFile._open (pysam/libcalignmentfile.c:7797)
ValueError: file has no sequences defined (mode='rb') - is it SAM/BAM format? Consider opening with check_sq=False
The text was updated successfully, but these errors were encountered: