Mercurial > repos > iuc > artic_minion
view artic_minion.xml @ 3:94020e19b46c draft
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/artic commit 54e51c32ac2c1fdc5391ee44f749cf6617db5acb"
author | iuc |
---|---|
date | Tue, 29 Sep 2020 20:20:01 +0000 |
parents | 376a706dda11 |
children | a346730e5552 |
line wrap: on
line source
<tool id="artic_minion" name="ARTIC minion" version="1.1.3+galaxy1"> <description>Build consensus sequence and call variants from amplicon-based nanopore sequence data</description> <requirements> <requirement type="package" version="1.1.3">artic</requirement> </requirements> <command detect_errors="exit_code"><![CDATA[ mkdir -p 'scheme/name/version' && #if str( $primer_scheme_source.primer_scheme_source_selector ) == "tool_data_table": ln -s '${primer_scheme_source.primer_scheme_bedfile.fields.path}' 'scheme/name/version/name.scheme.bed' && #else: ln -s '${primer_scheme_source.primer_scheme_bedfile}' 'scheme/name/version/name.scheme.bed' && #end if #if str( $reference_source.reference_source_selector ) == "history": ln -s '${reference_source.reference}' 'scheme/name/version/name.reference.fasta' && samtools faidx 'scheme/name/version/name.reference.fasta' && #else: ln -s '${reference_source.reference.fields.path}' 'scheme/name/version/name.reference.fasta' && samtools faidx 'scheme/name/version/name.reference.fasta' && #end if artic minion --threads \${GALAXY_SLOTS:-1} #if $normalise > 0: --normalise ${normalise} #end if --read-file '${read_file}' --scheme-directory 'scheme' --medaka $bwa 'name/version' '${read_file.element_identifier}' && bgzip -f '${read_file.element_identifier}.fail.vcf' ]]></command> <inputs> <param argument="--read-file" type="data" format="fastq,fastqsanger,fastq.gz,fastqsanger.gz" label="Input Read File"/> <param argument="--normalise" type="integer" min="0" value="0" label="Coverage normalisation depth" help="Sample at most this number of reads per amplicon and strand. default=0 (use all reads)" /> <param argument="--bwa" type="boolean" truevalue="--bwa" falsevalue="" label="Use bwa aligner"/> <conditional name="primer_scheme_source"> <param name="primer_scheme_source_selector" type="select" label="Select a primer scheme from your history or use one from a tool data table?" help="Screening files must be stored in the 'primer_scheme_bedfiles' tool data table"> <option value="tool_data_table">From tool data table</option> <option value="history">From history</option> </param> <when value="tool_data_table"> <param name="primer_scheme_bedfile" type="select" format="tabular" label="Primer Scheme"> <options from_data_table="primer_scheme_bedfiles"> <validator type="no_options" message="No primer scheme .bed files are available" /> </options> </param> </when> <when value="history"> <param name="primer_scheme_bedfile" type="data" format="tabular" label="Primer Scheme" /> </when> </conditional> <conditional name="reference_source"> <param name="reference_source_selector" type="select" label="Will you select a reference genome from your history or use a built-in reference?" > <option value="cached">Use a built-in reference</option> <option value="history">Use a reference from history</option> </param> <when value="cached"> <param name="reference" type="select" label="Using reference genome" help="Select genome from the list"> <options from_data_table="all_fasta"> <filter type="sort_by" column="2" /> <validator type="no_options" message="No references are available" /> </options> </param> </when> <when value="history"> <param name="reference" type="data" format="fasta" label="Use the following dataset as the reference sequence" help="You can upload a FASTA sequence to the history and use it as reference" /> </when> </conditional> </inputs> <outputs> <data name="alignment_trimmed" format="bam" from_work_dir="*.primertrimmed.rg.sorted.bam" label="${tool.name} on ${on_string}: trimmed alignment" /> <data name="alignment_report" format="tabular" from_work_dir="*.alignreport.txt" label="${tool.name} on ${on_string}: alignment report" /> <data name="variants_merged_vcf" format="vcf_bgzip" from_work_dir="*.merged.vcf.gz" label="${tool.name} on ${on_string}: medaka variant calls" /> <data name="variants_fail_vcf" format="vcf_bgzip" from_work_dir="*.fail.vcf.gz" label="${tool.name} on ${on_string}: variants fail" /> <data name="variants_pass_vcf" format="vcf" from_work_dir="*.pass.vcf" label="${tool.name} on ${on_string}: variants pass" /> <data name="consensus_fasta" format="fasta" from_work_dir="*.consensus.fasta" label="${tool.name} on ${on_string}: consensus sequence" /> <data name="coverage_mask" format="tabular" from_work_dir="*.coverage_mask.txt" label="${tool.name} on ${on_string}: consensus coverage mask" /> <data name="analysis_log" format="txt" from_work_dir="*.minion.log.txt" label="${tool.name} on ${on_string}: analysis log" /> </outputs> <tests> <test> <param name="reference_source_selector" value="history" /> <param name="read_file" value="SRR11410539_seqtk_sample_500_1.fastq" /> <param name="reference" value="nCoV-2019.reference.fasta" /> <param name="primer_scheme_source_selector" value="tool_data_table" /> <param name="primer_scheme_bedfile" value="test_entry" /> <output name="consensus_fasta" file="SRR11410539_seqtk_sample_500_1.fastq.consensus.fasta" /> </test> <test> <param name="reference_source_selector" value="history" /> <param name="read_file" value="SRR11410539_seqtk_sample_500_1.fastq" /> <param name="reference" value="nCoV-2019.reference.fasta" /> <param name="primer_scheme_source_selector" value="history" /> <param name="primer_scheme_bedfile" value="nCoV-2019.scheme.V1.bed" /> <output name="consensus_fasta" file="SRR11410539_seqtk_sample_500_1.fastq.consensus.fasta" /> </test> <test> <param name="reference_source_selector" value="tool_data_table" /> <param name="read_file" value="SRR11410539_seqtk_sample_500_1.fastq" /> <param name="reference" value="test_entry" /> <param name="primer_scheme_source_selector" value="tool_data_table" /> <param name="primer_scheme_bedfile" value="test_entry" /> <output name="consensus_fasta" file="SRR11410539_seqtk_sample_500_1.fastq.consensus.fasta" /> </test> </tests> <help><![CDATA[ This tool aligns MinION reads that were generated from a tiling amplicon library against a viral reference sequence. It generates a consensus fasta file and a vcf variant file. This tool is configured to use the experimental 'medaka' variant caller. ]]></help> <citations> </citations> </tool>