def create_nodegraph(args, ksize=None, multiplier=1.0, fp_rate=0.01):
 args = _check_fp_rate(args, fp_rate)
 if hasattr(args, u'force'):
  if (args.n_tables > 20):
   if (not args.force):
    print_error(u'\n** ERROR: khmer only supports number of tables <= 20.\n')
    sys.exit(1)
   else:
    log_warn(u'\n*** Warning: Maximum recommended number of tables is 20, discarded by force nonetheless!\n')
 if (ksize is None):
  ksize = args.ksize
 if (ksize > 32):
  print_error(u'\n** ERROR: khmer only supports k-mer sizes <= 32.\n')
  sys.exit(1)
 tablesize = calculate_graphsize(args, u'nodegraph', multiplier)
 return khmer.Nodegraph(ksize, tablesize, args.n_tables)

def create_nodegraph ( args , ksize = None , multiplier = 1.0 , fp_rate = 0.01 ) : args = _check_fp_rate ( args , fp_rate ) if hasattr ( args , u'force' ) : if ( args . n_tables > 20 ) : if ( not args . force ) : print_error ( u'\n** ERROR: khmer only supports number of tables <= 20.\n' ) sys . exit ( 1 ) else : log_warn ( u'\n*** Warning: Maximum recommended number of tables is 20, discarded by force nonetheless!\n' ) if ( ksize is None ) : ksize = args . ksize if ( ksize > 32 ) : print_error ( u'\n** ERROR: khmer only supports k-mer sizes <= 32.\n' ) sys . exit ( 1 ) tablesize = calculate_graphsize ( args , u'nodegraph' , multiplier ) return khmer . Nodegraph ( ksize , tablesize , args . n_tables )
create and return a nodegraph .