Mercurial > repos > iuc > cnvkit_coverage
annotate coverage.xml @ 1:5602cbf1153b draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit e927b17a345b18c1b51dc1b112db5129278dcd22
author | iuc |
---|---|
date | Fri, 29 Sep 2023 15:41:04 +0000 |
parents | 283ab3112eea |
children |
rev | line source |
---|---|
0
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
1 <tool id="cnvkit_coverage" name="CNVkit Coverage" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="21.05"> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
2 <description>Calculate coverage in the given regions from BAM read depths</description> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
3 <macros> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
4 <import>macros.xml</import> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
5 </macros> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
6 <expand macro="xrefs"/> |
1
5602cbf1153b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit e927b17a345b18c1b51dc1b112db5129278dcd22
iuc
parents:
0
diff
changeset
|
7 <expand macro="creators"/> |
0
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
8 <expand macro="requirements"/> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
9 <command detect_errors="exit_code"><![CDATA[ |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
10 ln -s '$input_bam_file' ./tumor.bam && |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
11 ln -s '$input_interval_bed' ./capture.split.bed && |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
12 #if $reference_source.fasta |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
13 #if str($reference_source.ref_selector) == 'history': |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
14 ln -s '$reference_source.fasta' ./genome.fa && |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
15 samtools faidx ./genome.fa 2>&1 || echo 'Error running samtools faidx for indexing fasta reference for CNVkit' >&2 && |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
16 #else |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
17 ln -s '$reference_source.fasta.fields.path' ./genome.fa && |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
18 ln -s '${reference_source.fasta.fields.path}.fai' ./genome.fa.fai && |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
19 #end if |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
20 #end if |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
21 #import os |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
22 cnvkit.py coverage |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
23 ./tumor.bam |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
24 ./capture.split.bed |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
25 --output sample.targetcoverage.cnn |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
26 --processes \${GALAXY_SLOTS:-4} |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
27 $count |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
28 #if str($min_mapq) |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
29 --min-mapq $min_mapq |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
30 #end if |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
31 ]]></command> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
32 <inputs> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
33 <param name="input_bam_file" type="data" format="bam" label="Sample BAM file" help="" /> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
34 <param name="input_interval_bed" type="data" format="bed" label="Interval BED file" help="" /> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
35 <expand macro="reference_interface"/> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
36 <param argument="--count" type="boolean" checked="false" truevalue="--count" falsevalue="" label="Get read depths by counting read midpoints within each bin" help="" /> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
37 <param argument="--min-mapq" optional="true" type="integer" label="Minimum mapping quality score to count a read for coverage depth" min="0" max="60" value="0" help="" /> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
38 </inputs> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
39 <outputs> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
40 <data name="out_capture_target_coverage" format="tabular" label="${tool.name} on ${on_string}: Sample Target coverage" from_work_dir="sample.targetcoverage.cnn" /> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
41 </outputs> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
42 <tests> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
43 <test expect_num_outputs="1"> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
44 <conditional name="reference_source"> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
45 <param name="ref_selector" value="history"/> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
46 <param name="fasta" ftype="fasta" value="genome.fasta" /> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
47 </conditional> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
48 <param name="input_bam_file" ftype="bam" value="tumor.bam" /> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
49 <param name="input_interval_bed" ftype="bed" value="capture.split.bed" /> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
50 <output name="out_capture_target_coverage" file="sample.targetcoverage.cnn" /> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
51 </test> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
52 <test expect_num_outputs="1"> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
53 <conditional name="reference_source"> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
54 <param name="ref_selector" value="cached"/> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
55 <param name="fasta" value="test_buildid"/> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
56 </conditional> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
57 <param name="input_bam_file" ftype="bam" value="tumor.bam" /> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
58 <param name="input_interval_bed" ftype="bed" value="capture.split.bed" /> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
59 <output name="out_capture_target_coverage" file="sample.targetcoverage.cnn" /> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
60 </test> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
61 </tests> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
62 <help><![CDATA[ |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
63 Summary statistics of read counts and their binning are printed to standard error |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
64 when CNVkit finishes calculating the coverage of each sample (through either the |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
65 batch or coverage commands) |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
66 |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
67 Target and antitarget bin-level coverages (.cnn) output file contains those columns |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
68 chromosome, Start, end, gene, log2 and depth |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
69 ]]></help> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
70 <expand macro="citations" /> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
71 </tool> |