feat(chaintools): add coverage module (nextflow + wdl) - #32
Merged
Conversation
Wraps `chaintools coverage --side <reference|query> --intervals <BED|GTF|GFF> --feature <cds|exon|intron|utr> --chains <chain...>` which measures annotation feature bases covered by chain blocks in forward genomic coordinates. Nextflow: process CHAINTOOLS_COVERAGE with inputs tuple val(meta), path(chains) + path intervals + val side + val feature, output *.coverage.txt (per-chrom + total). Follows existing chaintools modules (stats/compare) pattern with --threads and > prefix redirection. WDL: task coverage with Array[File] chains, File intervals, String side/feature, threads/extra_args/prefix, same CLI. No new dependency, uses ghcr.io/alejandrogzi/chaintools:latest.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Wraps
chaintools coverageCLI:chaintools coverage -hNextflow
modules/nextflow/chaintools/coverage/main.nf:CHAINTOOLS_COVERAGE(tag $meta.id,label process_low, containerghcr.io/alejandrogzi/chaintools:latest)tuple val(meta), path(chains)(single or List),path intervals,val side,val featurechaintools coverage --chains $chains --side $side --intervals $intervals --feature $feature --threads ${task.cpus} > ${prefix}.coverage.txttuple val(meta), path("*.coverage.txt"),versions.ymlstats/comparepattern (--threads, redirection, stub)WDL
modules/wdl/chaintools/coverage/main.wdl:coveragewithArray[File] chains,File intervals,String side,String feature,Int threads,extra_args,prefixchaintools coverage --chains ~{sep=" " chains} --side ~{side} --intervals ~{intervals} --feature ~{feature} --threads ~{threads} > ~{out_report}runwrapperNo new dependency. Reuses existing container.
Fix from #31 already in master, this branch builds on top.