[ADD] option groups for ecopcr related options
This commit is contained in:
@ -16,49 +16,53 @@ except ImportError:
|
||||
|
||||
def addTaxonomyDBOptions(optionManager):
|
||||
# addEcoBarcodeDBOption(optionManager)
|
||||
optionManager.add_option('-d','--database',
|
||||
action="store", dest="taxonomy",
|
||||
metavar="<FILENAME>",
|
||||
type="string",
|
||||
help="ecoPCR taxonomy Database "
|
||||
"name")
|
||||
optionManager.add_option('-t','--taxonomy-dump',
|
||||
action="store", dest="taxdump",
|
||||
metavar="<FILENAME>",
|
||||
type="string",
|
||||
help="NCBI Taxonomy dump repository "
|
||||
|
||||
group = optionManager.add_option_group('Taxonomy loading options')
|
||||
group.add_option('-d','--database',
|
||||
action="store", dest="taxonomy",
|
||||
metavar="<FILENAME>",
|
||||
type="string",
|
||||
help="ecoPCR taxonomy Database "
|
||||
"name")
|
||||
group.add_option('-t','--taxonomy-dump',
|
||||
action="store", dest="taxdump",
|
||||
metavar="<FILENAME>",
|
||||
type="string",
|
||||
help="NCBI Taxonomy dump repository "
|
||||
"name")
|
||||
|
||||
|
||||
def addTaxonomyFilterOptions(optionManager):
|
||||
addTaxonomyDBOptions(optionManager)
|
||||
optionManager.add_option('--require-rank',
|
||||
action="append",
|
||||
dest='requiredRank',
|
||||
metavar="<RANK_NAME>",
|
||||
type="string",
|
||||
default=[],
|
||||
help="select sequence with taxid tag containing "
|
||||
"a parent of rank <RANK_NAME>")
|
||||
group = optionManager.add_option_group('Taxonomy-related selection options')
|
||||
|
||||
group.add_option('--require-rank',
|
||||
action="append",
|
||||
dest='requiredRank',
|
||||
metavar="<RANK_NAME>",
|
||||
type="string",
|
||||
default=[],
|
||||
help="select sequence with taxid tag containing "
|
||||
"a parent of rank <RANK_NAME>")
|
||||
|
||||
optionManager.add_option('-r','--required',
|
||||
action="append",
|
||||
dest='required',
|
||||
metavar="<TAXID>",
|
||||
type="int",
|
||||
default=[],
|
||||
help="Select the sequences having "
|
||||
"the ancestor of taxid <TAXID>. If several ancestors are specified "
|
||||
"(with \n'-r taxid1 -r taxid2'), the sequences "
|
||||
"having at least one of them are selected")
|
||||
group.add_option('-r','--required',
|
||||
action="append",
|
||||
dest='required',
|
||||
metavar="<TAXID>",
|
||||
type="int",
|
||||
default=[],
|
||||
help="Select the sequences having "
|
||||
"the ancestor of taxid <TAXID>. If several ancestors are specified "
|
||||
"(with \n'-r taxid1 -r taxid2'), the sequences "
|
||||
"having at least one of them are selected")
|
||||
|
||||
optionManager.add_option('-i','--ignore',
|
||||
action="append",
|
||||
dest='ignored',
|
||||
metavar="<TAXID>",
|
||||
type="int",
|
||||
default=[],
|
||||
help="ignored taxid")
|
||||
group.add_option('-i','--ignore',
|
||||
action="append",
|
||||
dest='ignored',
|
||||
metavar="<TAXID>",
|
||||
type="int",
|
||||
default=[],
|
||||
help="ignored taxid")
|
||||
|
||||
|
||||
def loadTaxonomyDatabase(options):
|
||||
|
Reference in New Issue
Block a user