Skip to content

Instantly share code, notes, and snippets.

@wasade
Created August 1, 2013 17:34
Show Gist options
  • Save wasade/6133511 to your computer and use it in GitHub Desktop.
Save wasade/6133511 to your computer and use it in GitHub Desktop.
test, and incomplete filter samples from otu tables cli configuration
from qcli.interface.cli import CLOption, UsageExample, ParameterConversion
usage_examples = [
UsageExample(ShortDesc="Abundance filtering (low coverage)",
LongDesc="Filter samples with fewer than 150 observations from the otu table.",
Ex="%prog -i otu_table.biom -o otu_table_no_low_coverage_samples.biom -n 150"),
UsageExample(ShortDesc="Abundance filtering (high coverage)",
LongDesc="Filter samples with fewer than 150 observations from the otu table.",
Ex="%prog -i otu_table.biom -o otu_table_no_high_coverage_samples.biom -x 149")
]
param_conversion = {
'biom-table':ParameterConversion(ShortName="i",
LongName="input_fp",
CLType="existing_filepath"),
'min-count':ParameterConversion(ShortName="n",
LongName="min_count",
CLType="float")
}
additional_options = [
CLOption(Type='biom-table',
Help='the output otu table',
Name='biom-table',
Required=True,
LongName='output_fp',
CLType='new_filepath',
ShortName='o')
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment