|
1 | | -from qiime2.plugin import (Plugin, Str, Properties, Choices, Int, Bool, Range, |
2 | | - Float, Set, Visualization, Metadata, MetadataColumn, |
3 | | - Categorical, Numeric, Citations) |
| 1 | +from qiime2.plugin import (Plugin, Str, Choices, Int, Bool, Range, Float, |
| 2 | + Citations) |
4 | 3 | from q2_types.feature_table import FeatureTable, Frequency |
5 | 4 | from q2_types.feature_data import FeatureData, Sequence |
6 | | -from q2_types.sample_data import SampleData |
7 | 5 | from q2_types.tree import Phylogeny, Rooted |
8 | 6 | import q2_picrust2 |
9 | 7 |
|
|
28 | 26 |
|
29 | 27 | inputs={'table': FeatureTable[Frequency], |
30 | 28 | 'seq': FeatureData[Sequence]}, |
31 | | - |
| 29 | + |
32 | 30 | parameters={'threads': Int % Range(1, None), |
33 | 31 | 'hsp_method': Str % Choices(HSP_METHODS), |
34 | | - 'max_nsti': Float % Range(0.0, None)}, |
| 32 | + 'min_align': Float % Range(0.0, 1.0), |
| 33 | + 'max_nsti': Float % Range(0.0, None), |
| 34 | + 'skip_minpath': Bool, |
| 35 | + 'no_gap_fill': Bool, |
| 36 | + 'skip_norm': Bool, |
| 37 | + 'highly_verbose': Bool}, |
35 | 38 |
|
36 | 39 | outputs=[('ko_metagenome', FeatureTable[Frequency]), |
37 | 40 | ('ec_metagenome', FeatureTable[Frequency]), |
|
46 | 49 | parameter_descriptions={ |
47 | 50 | 'threads': 'Number of threads/processes to use during workflow.', |
48 | 51 | 'hsp_method': 'Which hidden-state prediction method to use.', |
| 52 | + 'min_align': ('Proportion of the total length of an input query ' |
| 53 | + 'sequence that must align with reference sequences. ' |
| 54 | + 'Any sequences with lengths below this value after ' |
| 55 | + 'making an alignment with reference sequences will ' |
| 56 | + 'be excluded from the placement and all subsequent ' |
| 57 | + 'steps.'), |
49 | 58 | 'max_nsti': ('Max nearest-sequenced taxon index for an input ASV to ' |
50 | | - 'be output.')}, |
| 59 | + 'be output.'), |
| 60 | + 'skip_minpath': ('Do not run MinPath to identify which pathways are ' |
| 61 | + 'present as a first pass (on by default).'), |
| 62 | + 'no_gap_fill': ('Do not perform gap filling before predicting ' |
| 63 | + 'pathway abundances (gap filling is on otherwise by ' |
| 64 | + 'default).'), |
| 65 | + 'skip_norm': ('Skip normalizing sequence abundances by predicted ' |
| 66 | + 'marker gene copy numbers (typically 16S rRNA ' |
| 67 | + 'genes). The normalization step will be performed ' |
| 68 | + 'automatically unless this option is specified.'), |
| 69 | + 'highly_verbose': ('Print all commands being written as well as all ' |
| 70 | + 'standard output of wrapped tools. This can be ' |
| 71 | + 'especially useful for debugging. Note that this ' |
| 72 | + 'option requires that the --verbose option is also ' |
| 73 | + 'set (which is an internal QIIME 2 option that ' |
| 74 | + 'indicates that STDOUT and STDERR should be printed ' |
| 75 | + 'out).') |
| 76 | + }, |
51 | 77 |
|
52 | 78 | output_descriptions={'ko_metagenome': 'Predicted metagenome for KEGG orthologs', |
53 | 79 | 'ec_metagenome': 'Predicted metagenome for EC numbers', |
54 | 80 | 'pathway_abundance': 'Predicted MetaCyc pathway abundances'}, |
55 | 81 |
|
56 | 82 | name='Default 16S PICRUSt2 Pipeline', |
57 | 83 |
|
58 | | - description=("QIIME2 Plugin for default 16S PICRUSt2 pipeline"), |
| 84 | + description=("QIIME 2 plugin for default 16S PICRUSt2 pipeline"), |
59 | 85 |
|
60 | 86 | citations=[citations['Douglas2019bioRxiv']] |
61 | 87 | ) |
|
66 | 92 |
|
67 | 93 | inputs={'table': FeatureTable[Frequency], |
68 | 94 | 'tree': Phylogeny[Rooted]}, |
69 | | - |
| 95 | + |
70 | 96 | parameters={'threads': Int % Range(1, None), |
71 | 97 | 'hsp_method': Str % Choices(HSP_METHODS), |
72 | | - 'max_nsti': Float % Range(0.0, None)}, |
| 98 | + 'max_nsti': Float % Range(0.0, None), |
| 99 | + 'skip_minpath': Bool, |
| 100 | + 'no_gap_fill': Bool, |
| 101 | + 'skip_norm': Bool, |
| 102 | + 'highly_verbose': Bool}, |
73 | 103 |
|
74 | 104 | outputs=[ |
75 | 105 | ('ko_metagenome', FeatureTable[Frequency]), |
|
86 | 116 | 'threads': 'Number of threads/processes to use during workflow.', |
87 | 117 | 'hsp_method': 'Which hidden-state prediction method to use.', |
88 | 118 | 'max_nsti': ('Max nearest-sequenced taxon index for an input ASV to ' |
89 | | - 'be output.')}, |
| 119 | + 'be output.'), |
| 120 | + 'skip_minpath': ('Do not run MinPath to identify which pathways are ' |
| 121 | + 'present as a first pass (on by default).'), |
| 122 | + 'no_gap_fill': ('Do not perform gap filling before predicting ' |
| 123 | + 'pathway abundances (gap filling is on otherwise by ' |
| 124 | + 'default).'), |
| 125 | + 'skip_norm': ('Skip normalizing sequence abundances by predicted ' |
| 126 | + 'marker gene copy numbers (typically 16S rRNA ' |
| 127 | + 'genes). The normalization step will be performed ' |
| 128 | + 'automatically unless this option is specified.'), |
| 129 | + 'highly_verbose': ('Print all commands being written as well as all ' |
| 130 | + 'standard output of wrapped tools. This can be ' |
| 131 | + 'especially useful for debugging. Note that this ' |
| 132 | + 'option requires that the --verbose option is also ' |
| 133 | + 'set (which is an internal QIIME 2 option that ' |
| 134 | + 'indicates that STDOUT and STDERR should be printed ' |
| 135 | + 'out).') |
| 136 | + }, |
90 | 137 |
|
91 | 138 | output_descriptions={'ko_metagenome': 'Predicted metagenome for KEGG orthologs', |
92 | 139 | 'ec_metagenome': 'Predicted metagenome for E.C. numbers', |
93 | 140 | 'pathway_abundance': 'Predicted MetaCyc pathway abundances'}, |
94 | 141 |
|
95 | 142 | name='16S PICRUSt2 pipeline with custom tree', |
96 | 143 |
|
97 | | - description=("QIIME2 plugin for running PICRUSt2 pipeline based on a " + |
| 144 | + description=("QIIME 2 plugin for running PICRUSt2 pipeline based on a " + |
98 | 145 | "tree from a different pipeline. This was written to be " + |
99 | 146 | "used with the output of SEPP (q2-fragment-insertion) as a " + |
100 | 147 | "starting point."), |
101 | 148 |
|
102 | 149 | citations=[citations['Douglas2019bioRxiv']] |
103 | 150 | ) |
104 | | - |
|
0 commit comments