Mercurial > repos > greg > plant_tribes_assembly_post_processor
diff assembly_post_processor.xml @ 4:b0d9dc3c8535 draft
Uploaded
author | greg |
---|---|
date | Mon, 30 Oct 2017 09:51:13 -0400 |
parents | 07ee186ba16e |
children | 2732db7dd0ef |
line wrap: on
line diff
--- a/assembly_post_processor.xml Thu Aug 24 13:10:29 2017 -0400 +++ b/assembly_post_processor.xml Mon Oct 30 09:51:13 2017 -0400 @@ -1,11 +1,14 @@ -<tool id="plant_tribes_assembly_post_processor" name="AssemblyPostProcessor" version="@WRAPPER_VERSION@.2"> +<tool id="plant_tribes_assembly_post_processor" name="AssemblyPostProcessor" version="@WRAPPER_VERSION@.3.0"> <description>post-processes de novo transcriptome assembly</description> <macros> <import>macros.xml</import> </macros> - <expand macro="requirements_assembly_post_processor" /> + <requirements> + <requirement type="package" version="1.0.3">plant_tribes_assembly_post_processor</requirement> + </requirements> <command detect_errors="exit_code"><![CDATA[ -python '$__tool_directory__/assembly_post_processor.py' +#set output_dir = 'assemblyPostProcessing_dir' +AssemblyPostProcessor --transcripts '$input' --prediction_method $prediction_method_cond.prediction_method #if str($prediction_method_cond.prediction_method) == 'estscan': @@ -15,27 +18,36 @@ #set target_gene_family_assembly_cond = $options_type.target_gene_family_assembly_cond #if str($target_gene_family_assembly_cond.target_gene_family_assembly) == 'yes': --gene_family_search '$target_gene_family_assembly_cond.orthogroups' - --output_pttgf '$output_pttgf' - --output_pttgf_dir '$output_pttgf.files_path' --scaffold '$target_gene_family_assembly_cond.scaffold.fields.path' --method '$target_gene_family_assembly_cond.method' --gap_trimming $target_gene_family_assembly_cond.gap_trimming + #if str($target_gene_family_assembly_cond.min_coverage) != '0.0': + --min_coverage $target_gene_family_assembly_cond.min_coverage + #end if #end if #if str($options_type.strand_specific) == 'yes': - --strand_specific true + --strand_specific #end if #if str($options_type.dereplicate) == 'yes': - --dereplicate true - --output_cleaned_nr_cds '$output_cleaned_nr_cds' - --output_cleaned_nr_pep '$output_cleaned_nr_pep' + --dereplicate #end if --min_length $options_type.min_length #end if --num_threads \${GALAXY_SLOTS:-4} ---output_cds '$output_cds' ---output_cleaned_cds '$output_cleaned_cds' ---output_cleaned_pep '$output_cleaned_pep' ---output_pep '$output_pep' +&>proc.log +&& mv $output_dir/transcripts.cds '$output_cds' +&& mv $output_dir/transcripts.pep '$output_pep' +&& mv $output_dir/transcripts.cleaned.cds '$output_cleaned_cds' +&& mv $output_dir/transcripts.cleaned.pep '$output_cleaned_pep' +#if str($options_type.options_type_selector) == 'advanced': + #if str($target_gene_family_assembly_cond.target_gene_family_assembly) == 'yes': + && mv $output_dir/targeted_gene_family_assemblies.stats '$output_targeted_gene_families_stats' + #end if + #if str($options_type.dereplicate) == 'yes': + && mv $output_dir/transcripts.cleaned.nr.cds '$output_cleaned_nr_cds' + && mv $output_dir/transcripts.cleaned.nr.pep '$output_cleaned_nr_pep' + #end if +#end if ]]></command> <inputs> <param name="input" format="fasta" type="data" label="Transcriptome assembly fasta file"/> @@ -74,6 +86,7 @@ <option value="orthomcl">OrthoMCL</option> </param> <param name="gap_trimming" type="float" value="0.1" min="0" max="1.0" label="Trim alignments"/> + <param name="min_coverage" type="float" value="0" min="0" max="1.0" label="Minimum alignment coverage"/> </when> </conditional> <param name="strand_specific" type="select" label="Strand-specific assembly?"> @@ -89,9 +102,13 @@ </conditional> </inputs> <outputs> - <data name="output_pttgf" format="pttgf" label="Targeted gene families: ${tool.name} on ${on_string}"> + <data name="output_targeted_gene_families_stats" format="tabular" label="Targeted gene families statistics: ${tool.name} on ${on_string}"> <filter>options_type['options_type_selector'] == 'advanced' and options_type['target_gene_family_assembly_cond']['target_gene_family_assembly'] == 'yes'</filter> </data> + <collection name="output_targeted_gene_families" type="list" label="Targeted gene families: ${tool.name} on ${on_string}"> + <discover_datasets pattern="__name__" directory="assemblyPostProcessing_dir/targeted_gene_family_assemblies" format="fasta" /> + <filter>options_type['options_type_selector'] == 'advanced' and options_type['target_gene_family_assembly_cond']['target_gene_family_assembly'] == 'yes'</filter> + </collection> <data name="output_pep" format="fasta" label="transcripts.pep: ${tool.name} on ${on_string}"/> <data name="output_cleaned_pep" format="fasta" label="transcripts.cleaned.pep: ${tool.name} on ${on_string}"/> <data name="output_cleaned_nr_pep" format="fasta" label="transcripts.cleaned.nr.pep: ${tool.name} on ${on_string}"> @@ -134,7 +151,9 @@ <param name="scaffold" value="22Gv1.1"/> <param name="method" value="orthomcl"/> <param name="dereplicate" value="yes"/> - <output name="output_pttgf" file="output.pttgf" ftype="pttgf"/> + <output_collection name="output_targeted_gene_families" type="list"> + </output_collection> + <output name="output_targeted_gene_families_stats" file="output_targeted_gene_families_stats.tabular" ftype="tabular"/> <output name="output_cds" file="transcripts_tgf.cds" ftype="fasta"/> <output name="output_cleaned_cds" file="transcripts.cleaned_tgf.cds" ftype="fasta"/> <output name="output_cleaned_nr_cds" file="transcripts_tgf.cleaned.nr.cds" ftype="fasta"/> @@ -163,10 +182,11 @@ * **Perform targeted gene assembly?** - selecting 'Yes' enables local assembly of one or more targeted gene families in a specific scaffold. Scaffolds are defined in PlantTribes as clusters of paralogous/orthologous sequences from a specified set of proteomes[5-7]. - * **Targeted gene families** - select a history item containing a list of targeted orthogroup identifiers corresponding to the gene family classification from a specified scaffold. Gene family identifiers can be obtained from the function annotation table ("Orthogroup ID" field of .summary file) of scaffold data installed into Galaxy via the PlantTribes Scaffolds Download Data Manager tool, and also available at the PlantTribes github repository (https://github.com/dePamphilis/PlantTribes/tree/master/config). + * **Targeted gene families** - select a history item containing a list of targeted orthogroup identifiers corresponding to the gene family classification from a specified scaffold. Gene family identifiers can be obtained from the function annotation table ("Orthogroup ID" field of .summary file) of scaffold data installed into Galaxy via the PlantTribes Scaffolds Download Data Manager tool, and are also available in the PlantTribes "annotation" directory of the scaffold data download. * **Gene family scaffold** - one of the PlantTribes gene family scaffolds (installed into Galaxy by the PlantTribes Scaffolds Download Data Manager tool) whose orthogroup(s) are targeted for the localized assembly. * **Protein clustering method** - gene family scaffold protein clustering method. Each PlantTribes scaffold data has up to three sets of clusters - GFam[8] (clusters of consensus domain architecture), OrthoFinder[9] (broadly defined clusters) or OrthoMCL[10] (narrowly defined clusters). You can also install your own data scaffold created using a different clustering method as long as it conforms to the PlantTribes scaffold data format. * **Trim alignments** - trim gene family multiple sequence alignments that include scaffold backbone genes and locally assembled transcripts to remove non-conserved regions (gappy sites)[11]. The trimmed alignments are used in assigning scores to locally assembled transcripts to determine how well they compare to the backbone gene models. The default setting of 0.1 removes sites that have gaps in 90% or more of the sequences in the multiple sequence alignment. This option is restricted to the range 0.0 - 1.0. + * **Minimum alignment coverage** - allowable sequence coverage in the orthogroup trimmed protein multiple sequence alignments. Selecting transcripts with coverage of at least the average of the backbone orthogroup gene models is recommended. Details are shown in the targeted gene family assembly statistics history item. * **Strand-specific assembly?** - select 'Yes' if transcriptome library sequences were strand-specific. If 'Yes" is selected, transcripts from the minority strand (antisense) are removed. * **Remove duplicate sequences?** - select 'Yes' to remove duplicated and exact subsequences[12].