Mercurial > repos > iuc > cnvkit_segment
annotate segment.xml @ 2:e1b32558547b draft default tip
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit bced16a45d19b243a244a093c3b3504b2640d5e0
author | iuc |
---|---|
date | Mon, 22 Apr 2024 17:44:27 +0000 |
parents | c4a22d0fdba5 |
children |
rev | line source |
---|---|
0
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
1 <tool id="cnvkit_segment" name="CNVkit Segment" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="21.05"> |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
2 <description>Infer copy number segments from the given coverage table</description> |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
3 <macros> |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
4 <import>macros.xml</import> |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
5 </macros> |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
6 <expand macro="xrefs"/> |
1
c4a22d0fdba5
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
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
8 <expand macro="requirements"/> |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
9 <command detect_errors="exit_code"><![CDATA[ |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
10 ln -s '$filename' ./tumor.cnr && |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
11 #if $additional_SNP_allelic_process.vcf |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
12 ln -s '$additional_SNP_allelic_process.vcf' ./vcf_file.vcf && |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
13 #end if |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
14 #import os |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
15 cnvkit.py segment |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
16 ./tumor.cnr |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
17 --output sample.cns |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
18 --processes \${GALAXY_SLOTS:-4} |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
19 #if $advanced_settings.dataframe |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
20 --dataframe '$advanced_settings.dataframe' |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
21 #end if |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
22 #if $advanced_settings.method == "cbs" |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
23 #set $method_val = "cbs" |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
24 --method '$method_val' |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
25 #else |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
26 --method '$advanced_settings.method' |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
27 #end if |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
28 #if str($advanced_settings.threshold) |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
29 --threshold $advanced_settings.threshold |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
30 #end if |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
31 $advanced_settings.drop_low_coverage |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
32 #if str($advanced_settings.drop_outliers) |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
33 --drop-outliers $advanced_settings.drop_outliers |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
34 #end if |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
35 $advanced_settings.smooth_cbs |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
36 #if $additional_SNP_allelic_process.vcf |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
37 --vcf ./vcf_file.vcf |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
38 #end if |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
39 #if $additional_SNP_allelic_process.sample_id |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
40 --sample-id '$additional_SNP_allelic_process.sample_id' |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
41 #end if |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
42 #if $additional_SNP_allelic_process.normal_id |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
43 --normal-id '$additional_SNP_allelic_process.normal_id' |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
44 #end if |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
45 #if str($additional_SNP_allelic_process.min_variant_depth) |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
46 --min-variant-depth $additional_SNP_allelic_process.min_variant_depth |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
47 #end if |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
48 #if str($additional_SNP_allelic_process.zygosity_freq) |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
49 --zygosity-freq $additional_SNP_allelic_process.zygosity_freq |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
50 #end if |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
51 ]]></command> |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
52 <inputs> |
1
c4a22d0fdba5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit e927b17a345b18c1b51dc1b112db5129278dcd22
iuc
parents:
0
diff
changeset
|
53 <param name="filename" type="data" format="tabular" label="Bin-Level log2 Ratios/Coverages cnr file" help="Use the output of the CNVkit fix" /> |
0
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
54 <section name="additional_SNP_allelic_process" title="additional process for SNP b_allele frequencies" expanded="false"> |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
55 <expand macro="additionally_SNP_process" /> |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
56 </section> |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
57 <section name="advanced_settings" title="Advanced settings" expanded="false"> |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
58 <expand macro="segment_optional" /> |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
59 </section> |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
60 </inputs> |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
61 <outputs> |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
62 <data name="out_sample_segment" format="tabular" label="${tool.name} on ${on_string}: Sample segment" from_work_dir="sample.cns" /> |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
63 </outputs> |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
64 <tests> |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
65 <test expect_num_outputs="1"> |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
66 <param name="filename" ftype="tabular" value="tumor.cnr" /> |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
67 <param name="method" value="hmm" /> |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
68 <param name="threshold" value="2" /> |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
69 <param name="drop_outliers" value="2" /> |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
70 <param name="drop_low_coverage" value="1" /> |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
71 <output name="out_sample_segment"> |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
72 <assert_contents><has_text text="chromosome"/></assert_contents> |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
73 </output> |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
74 </test> |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
75 </tests> |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
76 <help><![CDATA[ |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
77 Infer copy number segments from the given coverage table. Segmentation runs independently on |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
78 each chromosome arm, and can be parallelized with the processes option (except for the HMM methods), similar to batch |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
79 |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
80 Segmented log2 ratios (.cns) output file contains those columns |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
81 chromosome, Start, end, gene, log2, depth, weight and number of bins covered by the segment (probes) |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
82 ]]></help> |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
83 <expand macro="citations" /> |
9d9a8f230a2f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
84 </tool> |