Giter Site home page Giter Site logo

Comments (4)

leepc12 avatar leepc12 commented on June 2, 2024

It looks like your BAM file is empty. Please provide error logs (.tar.gz).

from atac-seq-pipeline.

nicolerg avatar nicolerg commented on June 2, 2024

I'm not sure if either of these are the BAM file you're referring to:
call-ataqc/shard-0/inputs/789850838/${SAMPLE}.trim.merged.bam is 1.5G
call-ataqc/shard-0/inputs/-623782124/${SAMPLE}.trim.merged.nodup.bam is 667M.

debug_64.tar.gz

from atac-seq-pipeline.

leepc12 avatar leepc12 commented on June 2, 2024

This will be fixed in v1.1.4. But if you want to fix it yourself then modify function get_chr_m() in line 203-221 of /users/nicolerg/anaconda2/envs/encode-atac-seq-pipeline/bin/encode_ataqc.py like the following.

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

from atac-seq-pipeline.

nicolerg avatar nicolerg commented on June 2, 2024

That function is not in encode_ataqc.py, but I modified it in /users/nicolerg/anaconda2/envs/encode-atac-seq-pipeline/bin/run_ataqc.py.

from atac-seq-pipeline.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.