Mercurial > repos > ftouzain > vvv2_display
annotate vvv2_display.xml @ 20:882318c1e5b7 draft default tip
Uploaded, try correct vcf output def with conditional input
| author | ftouzain |
|---|---|
| date | Fri, 06 Feb 2026 08:19:34 +0000 |
| parents | 9b62ec237326 |
| children |
| rev | line source |
|---|---|
| 17 | 1 <tool id="vvv2_display" name="vvv2_display: Display SNP proportions and CDS of an assembly in png image" version="0.2.5.0" python_template_version="3.9"> |
| 1 | 2 <requirements> |
| 17 | 3 <requirement type="package" version="0.2.5.0">vvv2_display</requirement> |
| 0 | 4 </requirements> |
| 5 <command detect_errors="exit_code"><![CDATA[ | |
|
20
882318c1e5b7
Uploaded, try correct vcf output def with conditional input
ftouzain
parents:
19
diff
changeset
|
6 vvv2_display.py -f '$vadr_fail_annotation' -p '$vadr_pass_annotation' -s '$vadr_seqstat' -n '$vardict_vcf' -r '$snp_img' -w '$var_significant_thres' -o '$cov_depth' -e '$cov_depth_corr' -t '$snp_loc' -u '$snp_loc_summary' -j '$json_annot' -k '$bed_annot' -l '$correct_vcf' -m '$contig_limits' -N '$contig_names' $cov_depth_scale |
|
882318c1e5b7
Uploaded, try correct vcf output def with conditional input
ftouzain
parents:
19
diff
changeset
|
7 ## vcf significant output file option |
|
882318c1e5b7
Uploaded, try correct vcf output def with conditional input
ftouzain
parents:
19
diff
changeset
|
8 #if str($option_snp_vcf_summary.boolean) == '2': |
|
882318c1e5b7
Uploaded, try correct vcf output def with conditional input
ftouzain
parents:
19
diff
changeset
|
9 -x '${option_snp_vcf_summary.snp_vcf_summary_f}' |
|
882318c1e5b7
Uploaded, try correct vcf output def with conditional input
ftouzain
parents:
19
diff
changeset
|
10 #end if |
| 0 | 11 ]]></command> |
| 12 <inputs> | |
| 13 <param type="data" name="vadr_fail_annotation" format="tabular" /> | |
| 14 <param type="data" name="vadr_pass_annotation" format="tabular" /> | |
| 3 | 15 <param type="data" name="vadr_seqstat" format="txt" /> |
| 0 | 16 <param type="data" name="vardict_vcf" format="vcf" /> |
| 3 | 17 <param type="integer" name="var_significant_thres" value="7" min="0" max="100" label="min int threshold to keep significant variant (%age)" format="int" /> |
| 18 <param type="select" name="cov_depth_scale" label="tells if cov depth scale (ordinate) is displayed with log10 (default) or linear scale" help="tells if cov depth scale (ordinate) is displayed with log10 (default) or linear scale"> | |
| 19 <option value="">log10 scale</option> | |
| 20 <option value="-y">linear scale</option> | |
| 21 </param> | |
| 1 | 22 <param type="data" name="cov_depth" format="txt" /> |
|
20
882318c1e5b7
Uploaded, try correct vcf output def with conditional input
ftouzain
parents:
19
diff
changeset
|
23 <conditional name="option_snp_vcf_summary"> |
|
882318c1e5b7
Uploaded, try correct vcf output def with conditional input
ftouzain
parents:
19
diff
changeset
|
24 <param type="select" name="boolean" label="tells if vcf summary output file is created" help="tells if vcf summary output file is created"> |
|
882318c1e5b7
Uploaded, try correct vcf output def with conditional input
ftouzain
parents:
19
diff
changeset
|
25 <option value="1">no summary vcf output</option> |
|
882318c1e5b7
Uploaded, try correct vcf output def with conditional input
ftouzain
parents:
19
diff
changeset
|
26 <option value="2">additional vcf summary output</option> |
|
882318c1e5b7
Uploaded, try correct vcf output def with conditional input
ftouzain
parents:
19
diff
changeset
|
27 </param> |
|
882318c1e5b7
Uploaded, try correct vcf output def with conditional input
ftouzain
parents:
19
diff
changeset
|
28 <when value="2"> |
|
882318c1e5b7
Uploaded, try correct vcf output def with conditional input
ftouzain
parents:
19
diff
changeset
|
29 <param type="data" name="snp_vcf_summary" format="vcf" argument="-x" help="provide the vcf summary output file name"/> |
|
882318c1e5b7
Uploaded, try correct vcf output def with conditional input
ftouzain
parents:
19
diff
changeset
|
30 <expand macro="snp_vcf_summary_f"/> |
|
882318c1e5b7
Uploaded, try correct vcf output def with conditional input
ftouzain
parents:
19
diff
changeset
|
31 </param> |
|
882318c1e5b7
Uploaded, try correct vcf output def with conditional input
ftouzain
parents:
19
diff
changeset
|
32 </when> |
|
882318c1e5b7
Uploaded, try correct vcf output def with conditional input
ftouzain
parents:
19
diff
changeset
|
33 </conditional> |
| 0 | 34 </inputs> |
| 35 <outputs> | |
| 13 | 36 <data name="snp_img" format="png" label="png image showing variants"/> |
|
14
c7d8f0ae15cc
Uploaded 0.2.3.9 wrapper, address bad number of parameters for output in galaxy wrapper
ftouzain
parents:
13
diff
changeset
|
37 <data name="snp_loc_summary" format="tabular" label="tsv file of significant variants only"/> |
| 18 | 38 <!-- present only if ask for summary vcf output--> |
|
20
882318c1e5b7
Uploaded, try correct vcf output def with conditional input
ftouzain
parents:
19
diff
changeset
|
39 <data name="option_snp_vcf_summary|snp_vcf_summary" format="vcf" label="vcf file of significant variants only" optional="true"> |
|
882318c1e5b7
Uploaded, try correct vcf output def with conditional input
ftouzain
parents:
19
diff
changeset
|
40 <filter>option_snp_vcf_summary['boolean'] == "1"</filter> |
| 18 | 41 </data> |
| 0 | 42 <!-- intermediate output files added for Galaxy compatibility --> |
|
15
d8470052fbb4
Uploaded: add missing contig_names parameter (file) needed only by galaxy (because galaxy is not able to handle hidden non declared file/parameter)
ftouzain
parents:
14
diff
changeset
|
43 <data name="snp_loc" format="txt" hidden="true" label="tsv file of all variants"/> |
|
d8470052fbb4
Uploaded: add missing contig_names parameter (file) needed only by galaxy (because galaxy is not able to handle hidden non declared file/parameter)
ftouzain
parents:
14
diff
changeset
|
44 <data name="json_annot" format="json" hidden="true" label="json file of annotations"/> |
|
d8470052fbb4
Uploaded: add missing contig_names parameter (file) needed only by galaxy (because galaxy is not able to handle hidden non declared file/parameter)
ftouzain
parents:
14
diff
changeset
|
45 <data name="bed_annot" format="bed" hidden="true" label="bed file of of annotations"/> |
|
d8470052fbb4
Uploaded: add missing contig_names parameter (file) needed only by galaxy (because galaxy is not able to handle hidden non declared file/parameter)
ftouzain
parents:
14
diff
changeset
|
46 <data name="correct_vcf" format="vcf" hidden="true" label="vcf file of variants corrected for positions when multi contigs"/> |
|
d8470052fbb4
Uploaded: add missing contig_names parameter (file) needed only by galaxy (because galaxy is not able to handle hidden non declared file/parameter)
ftouzain
parents:
14
diff
changeset
|
47 <data name="contig_limits" format="txt" hidden="true" label="txt file with contig limits"/> |
|
d8470052fbb4
Uploaded: add missing contig_names parameter (file) needed only by galaxy (because galaxy is not able to handle hidden non declared file/parameter)
ftouzain
parents:
14
diff
changeset
|
48 <data name="contig_names" format="txt" hidden="true" label="txt file with contig names"/> |
|
d8470052fbb4
Uploaded: add missing contig_names parameter (file) needed only by galaxy (because galaxy is not able to handle hidden non declared file/parameter)
ftouzain
parents:
14
diff
changeset
|
49 <data name="cov_depth_corr" format="txt" hidden="true" label="txt file with pos and cov depth, pos corrected when multi contigs"/> |
| 0 | 50 <!-- end intermediate output files added for Galaxy compatibility --> |
| 51 </outputs> | |
| 52 <tests> | |
| 53 <test> | |
|
20
882318c1e5b7
Uploaded, try correct vcf output def with conditional input
ftouzain
parents:
19
diff
changeset
|
54 <param name="vadr_fail_annotation" value="test_vvv2_display/res_vadr_fail.tbl" ftype="tabular"/> |
|
882318c1e5b7
Uploaded, try correct vcf output def with conditional input
ftouzain
parents:
19
diff
changeset
|
55 <param name="vadr_pass_annotation" value="test_vvv2_display/res_vadr_pass.tbl" ftype="tabular"/> |
|
882318c1e5b7
Uploaded, try correct vcf output def with conditional input
ftouzain
parents:
19
diff
changeset
|
56 <param name="vadr_seqstat" value="test_vvv2_display/res_vadr.seqstat" ftype="txt"/> |
|
882318c1e5b7
Uploaded, try correct vcf output def with conditional input
ftouzain
parents:
19
diff
changeset
|
57 <param name="vardict_vcf" value="test_vvv2_display/res_vardict.vcf" ftype="vcf"/> |
| 3 | 58 <param name="var_significant_thres" value="7"/> |
|
14
c7d8f0ae15cc
Uploaded 0.2.3.9 wrapper, address bad number of parameters for output in galaxy wrapper
ftouzain
parents:
13
diff
changeset
|
59 <param name="cov_depth_scale" value="-y" /> |
|
c7d8f0ae15cc
Uploaded 0.2.3.9 wrapper, address bad number of parameters for output in galaxy wrapper
ftouzain
parents:
13
diff
changeset
|
60 <param name="cov_depth" value="test_vvv2_display/res_covdepth.txt" /> |
|
20
882318c1e5b7
Uploaded, try correct vcf output def with conditional input
ftouzain
parents:
19
diff
changeset
|
61 <param name="option_snp_vcf_summary|boolean" value="2"> |
| 13 | 62 <output name="snp_img" file="test_vvv2_display/res_snp.png" ftype="png"/> |
|
14
c7d8f0ae15cc
Uploaded 0.2.3.9 wrapper, address bad number of parameters for output in galaxy wrapper
ftouzain
parents:
13
diff
changeset
|
63 <output name="snp_loc_summary" file="test_vvv2_display/res_snp_summary.tsv" ftype="tabular"/> |
|
20
882318c1e5b7
Uploaded, try correct vcf output def with conditional input
ftouzain
parents:
19
diff
changeset
|
64 <output name="option_snp_vcf_summary|snp_vcf_summary" file="test_vvv2_display/res_snp_summary.vcf" ftype="vcf"/> |
| 0 | 65 <!-- intermediate output files --> |
| 13 | 66 <output name="snp_loc" file="test_vvv2_display/res_snp.txt" ftype="txt"/> |
| 67 <output name="json_annot" file="test_vvv2_display/res_vadr.json" ftype="json"/> | |
| 68 <output name="bed_annot" file="test_vvv2_display/res_vadr.4vardict.bed" ftype="bed"/> | |
| 69 <output name="correct_vcf" file="test_vvv2_display/res_correct.vcf" ftype="vcf"/> | |
| 70 <output name="contig_limits" file="test_vvv2_display/contig_limits.txt" ftype="txt"/> | |
|
15
d8470052fbb4
Uploaded: add missing contig_names parameter (file) needed only by galaxy (because galaxy is not able to handle hidden non declared file/parameter)
ftouzain
parents:
14
diff
changeset
|
71 <output name="contig_names" file="test_vvv2_display/contig_names.txt" ftype="txt"/> |
| 13 | 72 <output name="cov_depth_corr" file="test_vvv2_display/res_covdepth_corrected.txt" ftype="txt"/> |
| 0 | 73 <!-- end intermediate output files --> |
| 3 | 74 </test> |
| 0 | 75 </tests> |
| 76 <help><![CDATA[ | |
| 77 [vvv2_display.py] | |
| 78 Aim: Display of SNP proportions, annotations, for an assembly | |
| 79 in: | |
| 80 - vardict variant calling output | |
| 81 - vadr assembly annotations | |
| 82 out: | |
| 83 - png file (image of SNP proportion alongside the assembly with CDS positions) | |
| 84 - txt file with variant calling summary, location in CDS and surround DNA sequence. | |
| 85 | |
| 86 usage: vvv2_display.py [-h] [-p FILE] [-f FILE] [-s FILE] [-n FILE] [-r FILE] | |
| 87 | |
| 88 optional arguments: | |
| 89 -h, --help show this help message and exit | |
| 90 -p FILE, --pass_tbl_f FILE | |
| 91 in: tabular file of vadr annotations, with pass status | |
| 92 -f FILE, --fail_tbl_f FILE | |
| 93 in: tabular file of vadr annotations, with fail status | |
| 94 -s FILE, --seq_stat_f FILE | |
| 95 in: seq stat file of vadr annotator | |
| 96 -n FILE, --vcf_f FILE | |
| 97 in: vcf variant file provided by vardict | |
| 98 -r FILE, --png_var_f FILE | |
| 99 out: png file with variant proportions and annotations | |
| 1 | 100 -o FILE, --cov_depth_f FILE |
| 101 [optional] in: text file of coverage depths (given by samtools depth) | |
| 0 | 102 ]]></help> |
| 103 <citations> | |
| 104 <citation type="bibtex"> | |
| 105 @misc{githubvvv2_display, | |
| 106 author = {Touzain, Fabrice}, | |
| 107 year = {2022}, | |
| 108 title = {vvv2_display}, | |
| 109 publisher = {GitHub}, | |
| 110 journal = {GitHub repository}, | |
| 111 url = {https://github.com/ANSES-Ploufragan/vvv2_display}, | |
| 112 }</citation> | |
| 113 <citation type="doi">10.1016/j.virusres.2020.198201</citation> | |
| 114 </citations> | |
| 115 </tool> |
