Skip to content
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

Caluclate deduplication rate #13

Open
priesgo opened this issue Nov 11, 2022 · 0 comments
Open

Caluclate deduplication rate #13

priesgo opened this issue Nov 11, 2022 · 0 comments
Assignees

Comments

@priesgo
Copy link
Collaborator

priesgo commented Nov 11, 2022

Do something like this


process DUPLICATION_RATE {
    cpus params.cpus
    memory params.memory
    tag "${name}"
    //publishDir "${params.output}/${name}/metrics/coverage", mode: "copy"
    //publishDir "${params.output}/${name}/", mode: "copy", pattern: "software_versions.*"

    conda (params.enable_conda ? "bioconda::samtools=1.15.1" : null)

    input:
        tuple val(name), file(bam), file(bai)

    output:
        file("${name}.duplication_rate.tsv")
        
    script:
    """
    samtools flagstat -@ ${task.cpus} ${bam} > output.txt
    parse_duplication_rate.py output.txt 
    """
}
@priesgo priesgo self-assigned this Nov 11, 2022
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