-
Notifications
You must be signed in to change notification settings - Fork 168
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
Bug in call-ataqc module #64
Comments
It looks like your BAM file is empty. Please provide error logs ( |
I'm not sure if either of these are the BAM file you're referring to: |
This will be fixed in v1.1.4. But if you want to fix it yourself then modify function def get_chr_m(sorted_bam_file):
'''
Get fraction of reads that are mitochondrial (chr M).
'''
logging.info('Getting mitochondrial chromosome fraction...')
chrom_list = pysam.idxstats(sorted_bam_file, split_lines=True)
tot_reads = 0
chr_m_reads = 0
for chrom in chrom_list:
chrom_stats = chrom.split('\t')
if chrom_stats[0] == 'chrM':
chr_m_reads = int(chrom_stats[2])
tot_reads += int(chrom_stats[2])
if tot_reads==0:
fract_chr_m = 0
else:
fract_chr_m = float(chr_m_reads) / tot_reads
return chr_m_reads, fract_chr_m |
That function is not in |
The
call-ataqc
module is failing with the following python variable assignment error:OS/Platform and dependencies
I'm happy to provide error logs if needed, but this seems pretty cut and dry.
The text was updated successfully, but these errors were encountered: