Skip to content

Commit

Permalink
added qiime type registration for parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
hagenjp committed Jan 5, 2024
1 parent 8da8db1 commit a9f4ee4
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
2 changes: 1 addition & 1 deletion q2_diversity/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@
'core_metrics_phylogenetic', 'core_metrics',
'filter_distance_matrix', 'mantel', 'alpha_rarefaction',
'beta_rarefaction', 'procrustes_analysis', 'beta_correlation',
'adonis', 'partial_procrustes'
'adonis', 'partial_procrustes', 'ignore_missing_samples'
]
22 changes: 20 additions & 2 deletions q2_diversity/plugin_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,7 @@
'metadata': Metadata,
'with_replacement': Bool,
'n_jobs_or_threads': Int % Range(1, None) | Str % Choices(['auto']),
'ignore_missing_samples': Bool
},
outputs=[
('rarefied_table', FeatureTable[Frequency]),
Expand Down Expand Up @@ -436,7 +437,15 @@
'metadata': 'The sample metadata to use in the emperor plots.',
'with_replacement': with_replacement_description,
'n_jobs_or_threads': '[beta/beta-phylogenetic methods only] - %s'
% n_jobs_or_threads_description
% n_jobs_or_threads_description,
'ignore_missing_samples': 'If set to `True` samples and features '
'without metadata are included by '
'setting all metadata values to: '
'"This element has no metadata". By '
'default an exception will be raised if '
'missing elements are encountered. Note, '
'this flag only takes effect if there is at '
'least one overlapping element.'
},
output_descriptions={
'rarefied_table': 'The resulting rarefied feature table.',
Expand Down Expand Up @@ -490,6 +499,7 @@
'metadata': Metadata,
'with_replacement': Bool,
'n_jobs': Int % Range(1, None) | Str % Choices(['auto']),
'ignore_missing_samples': Bool
},
outputs=[
('rarefied_table', FeatureTable[Frequency]),
Expand All @@ -512,7 +522,15 @@
'rarefied to prior to computing diversity metrics.',
'metadata': 'The sample metadata to use in the emperor plots.',
'with_replacement': with_replacement_description,
'n_jobs': '[beta methods only] - %s' % n_jobs_description
'n_jobs': '[beta methods only] - %s' % n_jobs_description,
'ignore_missing_samples': 'If set to `True` samples and features '
'without metadata are included by '
'setting all metadata values to: '
'"This element has no metadata". By '
'default an exception will be raised if '
'missing elements are encountered. Note, '
'this flag only takes effect if there is at '
'least one overlapping element.'
},
output_descriptions={
'rarefied_table': 'The resulting rarefied feature table.',
Expand Down

0 comments on commit a9f4ee4

Please sign in to comment.