Mercurial > repos > greg > cfsan_snp_pipeline_snp_matrix
comparison cfsan_snp_pipeline_snp_matrix.xml @ 0:6b0a13deae92 draft
Uploaded
| author | greg |
|---|---|
| date | Fri, 13 Oct 2023 20:26:32 +0000 |
| parents | |
| children | f3485a9e51a3 |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:6b0a13deae92 |
|---|---|
| 1 <tool id="cfsan_snp_pipeline_snp_matrix" name="CFSAN SNP Pipeline: create SNP matrix" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@"> | |
| 2 <description>and associated matrices</description> | |
| 3 <macros> | |
| 4 <import>macros.xml</import> | |
| 5 </macros> | |
| 6 <expand macro="requirements"/> | |
| 7 <command detect_errors="exit_code"><![CDATA[ | |
| 8 python '$__tool_directory__/snp_wind.py' ./ | |
| 9 #if str($input_type_cond.input_type) == 'single': | |
| 10 -n '$input_fasta.element_identifier' | |
| 11 -f '$input_fasta' | |
| 12 #else: | |
| 13 #for $fa in sorted($input_fasta_collection, key=lambda f: f.element_identifier) | |
| 14 -n '$fa.element_identifier' | |
| 15 -f '$fa' | |
| 16 #end for | |
| 17 #end if | |
| 18 -p 'consensus.fasta' > ./file && | |
| 19 cfsan_snp_pipeline snp_matrix -o '$output_snp_matrix_fasta' ./file && | |
| 20 cfsan_snp_pipeline distance -p '$output_snp_pairwise_matrix_tsv' -m '$output_snp_distance_matrix_tsv' '$output_snp_matrix_fasta' && | |
| 21 cfsan_snp_pipeline snp_reference | |
| 22 -l '$input_merged_snp_sites' | |
| 23 -o '$output_snp_reference_fasta' | |
| 24 #if str($reference_cond.reference_source) == 'cached' | |
| 25 '$reference_cond.reference.fields.path' | |
| 26 #else: | |
| 27 '$reference_cond.reference' | |
| 28 #end if | |
| 29 ]]></command> | |
| 30 <inputs> | |
| 31 <expand macro="input_type_cond"/> | |
| 32 <expand macro="reference_cond"/> | |
| 33 <param name="input_merged_snp_sites" type="data" format="tabular" label="Merged SNP sites tabular file"/> | |
| 34 </inputs> | |
| 35 <outputs> | |
| 36 <data name="output_snp_matrix_fasta" format="fasta" label="SNP matrix (fasta)"/> | |
| 37 <data name="output_snp_pairwise_matrix_tsv" format="tsv" label="SNP pairwise matrix (tsv)"/> | |
| 38 <data name="output_snp_distance_matrix_tsv" format="tsv" label="SNP distance matrix (tsv)"/> | |
| 39 <data name="output_snp_reference_fasta" format="fasta" label="SNP Reference (fasta)"/> | |
| 40 </outputs> | |
| 41 <tests> | |
| 42 <test> | |
| 43 <param name="input_type" value="collection"/> | |
| 44 <param name="input_fasta_collection"> | |
| 45 <collection type="list"> | |
| 46 <element name="sample1" value="input1.fasta"/> | |
| 47 <element name="sample2" value="input2.fasta"/> | |
| 48 <element name="sample3" value="input3.fasta"/> | |
| 49 <element name="sample4" value="input4.fasta"/> | |
| 50 </collection> | |
| 51 </param> | |
| 52 <param name="reference_source" value="history"/> | |
| 53 <param name="reference" value="lambda_virus.fasta"/> | |
| 54 <param name="input_merged_snp_sites" value="input_merged_snp_sites.tabular"/> | |
| 55 <output name="output_snp_matrix_fasta" value="output_snp_matrix.fasta"/> | |
| 56 <output name="output_snp_pairwise_matrix_tsv" value="output_snp_pairwise_matrix.tsv"/> | |
| 57 <output name="output_snp_distance_matrix_tsv" value="output_snp_distance_matrix.tsv"/> | |
| 58 <output name="output_snp_reference_fasta" value="output_snp_reference.fasta"/> | |
| 59 </test> | |
| 60 </tests> | |
| 61 <help><![CDATA[ | |
| 62 **What it does** | |
| 63 | |
| 64 Create the SNP matrix containing the consensus base for each of the samples at | |
| 65 the positions where high-confidence SNPs were found in any of the samples. The | |
| 66 matrix contains one row per sample and one column per SNP position. Non-SNP | |
| 67 positions are not included in the matrix. The matrix is formatted as a fasta | |
| 68 file, with each sequence (all of identical length) corresponding to the SNPs | |
| 69 in the correspondingly named sequence. | |
| 70 | |
| 71 **More information** | |
| 72 | |
| 73 CFSAN SNP Pipeline `create SNP matrix documentation <https://snp-pipeline.readthedocs.io/en/latest/cmd_ref.html#snp-matrix>`_ | |
| 74 ]]></help> | |
| 75 <expand macro="citations"/> | |
| 76 </tool> | |
| 77 |
