comparison humann2_strain_profiler.xml @ 0:eb13789029de draft

planemo upload for repository https://github.com/ASaiM/galaxytools/tree/master/tools/humann2/ commit 6753a2c0fec9222f5977cab43a855c63fa9f7bee
author iuc
date Tue, 01 Aug 2017 07:55:36 -0400
parents
children 1595f7cadbf9
comparison
equal deleted inserted replaced
-1:000000000000 0:eb13789029de
1 <tool id="humann2_strain_profiler" name="Make strain profiles" version="@WRAPPER_VERSION@.0">
2 <description></description>
3 <macros>
4 <import>humann2_macros.xml</import>
5 </macros>
6 <expand macro="requirements"/>
7 <expand macro="version"/>
8 <command detect_errors="exit_code"><![CDATA[
9 humann2_strain_profiler
10 --input '$input'
11 --critical_mean '$critical_mean'
12 --critical_count '$critical_count'
13 --pinterval '$pinterval_1' '$pinterval_2'
14 --critical_samples '$critical_samples'
15 #if str($limit) != ''
16 --limit '$limit'
17 #end if
18 ]]></command>
19 <inputs>
20 <param argument="--input" type="data" format="tsv,tabular,biom1" label="Merged gene families output for two or more samples"/>
21 <param argument="--critical_mean" type="float" value="10.0" label="Default mean non-zero gene abundance for inclusion"/>
22 <param argument="--critical_count" type="integer" value="500" label="Default non-zero number of genes for inclusion"/>
23 <param name="pinterval_1" type="float" value="1e-10" label="Low prevalence threshold" help="Only genes with prevalence higher than the threshold are allowed"/>
24 <param name="pinterval_2" type="float" value="1" label="High prevalence threshold" help="Only genes with prevalence lower than the threshold are allowed"/>
25 <param argument="--critical_samples" type="integer" value="2" label="Threshold number of samples having strain"/>
26 <param argument="--limit" type="text" value="" optional="true" label="Limit output to species matching a particular pattern?" help="e.g. 'Streptococcus'"/>
27 </inputs>
28 <outputs>
29 <collection name="output" type="list" label="${tool.name} on ${on_string}">
30 <discover_datasets pattern="(?P&lt;designation&gt;.+)-strain_profile.tsv" format="tsv" directory="."/>
31 </collection>
32 </outputs>
33 <tests>
34 <test>
35 <param name="input" value="strain_profiler-input.txt"/>
36 <param name="critical_mean" value="1"/>
37 <param name="critical_count" value="2"/>
38 <param name="pinterval_1" value="1e-10"/>
39 <param name="pinterval_2" value="1"/>
40 <param name="critical_samples" value="2"/>
41 <output_collection name="output" type="list">
42 <element name="s1" md5="09b0645f058ecdaccb3af12f655198a0"/>
43 <element name="s2" md5="935698addd30312500b3cb1139c7d24b"/>
44 </output_collection>
45 </test>
46 </tests>
47 <help><![CDATA[
48 @HELP_HEADER@
49
50 This script is currently at an experimental stage. Please use with caution.
51
52 The HUMAnN2 script humann2_strain_profiler can help explore strain-level variation in your data. This approach assumes you have run HUMAnN2 on a series of samples and then merged the resulting genefamilies.tsv tables with humann2_merge_tables. Cases will arise in which the same species was detected in two or more samples, but gene families within that species were not consistently present across samples. For example, four samples may contain the species Dialister invisus, but only two samples contain the gene family UniRef50_Q5WII6 within Dialister invisus. This is a form of strain-level variation in the Dialister invisus species: one which we can connect directly to function based on annotations of the UniRef50_Q5WII6 gene family.
53
54 humann2_strain_profiler first looks for (species, sample) pairs where (i) a large number of gene families within the species were identified (default: 500) and (ii) the mean abundance of detected genes was high (default: mean > 10 RPK). For species that meet these criteria, we can infer that absent gene families are likely to be truly absent, as opposed to undersampled. Simulations suggest that the cutoff of 10 RPK results in a false negative rate below 0.001 (i.e. for every 1000 genes identified as absent, at most one would be present but missed due to undersampling). For a given species, if at least two samples pass these criteria, the species and passing samples are sliced from the merged table and saved as a strain profile.
55
56 Strain profiles can be additionally restricted to a subset of species (e.g. those from a particular genus) or to gene families with a high level of variability in the population (e.g. present in fewer than 80% of samples but more than 20% of samples). Additional thresholds (e.g. the minimum non-zero mean) can be configured with command line parameters.
57 ]]></help>
58 <expand macro="citations"/>
59 </tool>