Commit 0778d387 by Aurélie Bonin

--no commit message

parent 6dd7725b
#!/usr/local/bin/python
'''
Created on 3 fevr. 2011
:py:mod:`obisort`: Sorts sequence records according to the value of a given attribute
=====================================================================================
.. codeauthor:: Eric Coissac <eric.coissac@metabarcoding.org>
:py:mod:`obisort` sorts sequence records according to the value of a given attribute, which can be either numeric or alphanumeric.
@author: coissac
'''
from obitools.format.options import addInOutputOption, sequenceWriterGenerator
from obitools.options import getOptionManager
def addSortOptions(optionManager):
optionManager.add_option('-k','--key',
group=optionManager.add_option_group('Obisort specific options')
group.add_option('-k','--key',
action="append", dest="key",
metavar="<TAG NAME>",
type="string",
default=[],
help="sequence attribute used as sort keys")
help="Attribute used to sort the sequence records.")
optionManager.add_option('-r','--reverse',
group.add_option('-r','--reverse',
action="store_true", dest="reverse",
default=False,
help="sort in reverse order")
help="Sorts in reverse order.")
def cmpGenerator(options):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment