def build_graph_args(descr=None, epilog=None, parser=None, citations=None):
 if (parser is None):
  parser = KhmerArgumentParser(description=descr, epilog=epilog, citations=citations)
 parser.add_argument(u'--ksize', u'-k', type=int, default=DEFAULT_K, help=u'k-mer size to use')
 parser.add_argument(u'--n_tables', u'-N', type=int, default=DEFAULT_N_TABLES, help=u'number of tables to use in k-mer countgraph')
 parser.add_argument(u'-U', u'--unique-kmers', type=float, default=0, help=u'approximate number of unique kmers in the input set')
 parser.add_argument(u'--fp-rate', type=float, default=None, help=u'Override the automatic FP rate setting for the current script')
 group = parser.add_mutually_exclusive_group()
 group.add_argument(u'--max-tablesize', u'-x', type=float, default=DEFAULT_MAX_TABLESIZE, help=(u'upper bound on tablesize to use; overrides ' + u'--max-memory-usage/-M'))
 group.add_argument(u'-M', u'--max-memory-usage', type=memory_setting, help=(u'maximum amount of memory to use for data ' + u'structure'))
 return parser

def build_graph_args ( descr = None , epilog = None , parser = None , citations = None ) : if ( parser is None ) : parser = KhmerArgumentParser ( description = descr , epilog = epilog , citations = citations ) parser . add_argument ( u'--ksize' , u'-k' , type = int , default = DEFAULT_K , help = u'k-mer size to use' ) parser . add_argument ( u'--n_tables' , u'-N' , type = int , default = DEFAULT_N_TABLES , help = u'number of tables to use in k-mer countgraph' ) parser . add_argument ( u'-U' , u'--unique-kmers' , type = float , default = 0 , help = u'approximate number of unique kmers in the input set' ) parser . add_argument ( u'--fp-rate' , type = float , default = None , help = u'Override the automatic FP rate setting for the current script' ) group = parser . add_mutually_exclusive_group ( ) group . add_argument ( u'--max-tablesize' , u'-x' , type = float , default = DEFAULT_MAX_TABLESIZE , help = ( u'upper bound on tablesize to use; overrides ' + u'--max-memory-usage/-M' ) ) group . add_argument ( u'-M' , u'--max-memory-usage' , type = memory_setting , help = ( u'maximum amount of memory to use for data ' + u'structure' ) ) return parser
build an argumentparser with args for bloom filter based scripts .