Skip to content
This repository has been archived by the owner on May 7, 2019. It is now read-only.

Add HSMetrics #19

Open
marchoeppner opened this issue Apr 26, 2018 · 0 comments
Open

Add HSMetrics #19

marchoeppner opened this issue Apr 26, 2018 · 0 comments

Comments

@marchoeppner
Copy link

marchoeppner commented Apr 26, 2018

Picard tools includes comprehensive metrics for exome analysis (target coverage, off target reads etc) - CollectHsMetrics.

Include this as a MultiQC input after duplicate marking

Example code (report attached): sample_custom_targets_only.html.zip

process runHybridCaptureMetrics {

    tag "${indivID}|${sampleID}"
    publishDir "${OUTDIR}/Common/${indivID}/${sampleID}/Processing/Picard_Metrics", mode: 'copy'

    input:
    set indivID, sampleID, file(bam), file(bai) from runPrintReadsOutput_for_HC_Metrics

    output:
    file(outfile) into HybridCaptureMetricsOutput mode flatten

    script:
    outfile = sampleID + ".hybrid_selection_metrics.txt"

    """
        java -XX:ParallelGCThreads=1 -Xmx${task.memory.toGiga()-mem_adjust}G -Djava.io.tmpdir=tmp/ -jar $PICARD CollectHsMetrics \
                INPUT=${bam} \
                OUTPUT=${outfile} \
                TARGET_INTERVALS=${TARGETS} \
                BAIT_INTERVALS=${BAITS} \
                REFERENCE_SEQUENCE=${REF} \
                TMP_DIR=tmp
        """
}
@apeltzer apeltzer added this to the ExoSeq V1.0 "Black Fox" milestone Aug 15, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants