if not argv:
argv = sys.argv
- usage = "usage: python %s destinationRDS inputrds1 [inputrds2 ....] [-table table_name] [--init] [--initrna] [--index] [--cache pages]" % argv[0]
+ usage = "usage: python %s destinationRDS inputrds1 [inputrds2 ....] [--table table_name] [--init] [--initrna] [--index] [--cache pages]" % argv[0]
parser = makeParser(usage)
(options, args) = parser.parse_args(argv[1:])
for table in tableList:
print "importing table %s from file %s" % (table, inputfile)
dbColumns = "*"
- if table == "uniqs":
- dbColumns = "NULL, '%s' || readID, chrom, start, stop, sense, weight, flag, mismatch" % dbName
- elif table == "multi":
+ if table in ["uniqs", "multi"]:
dbColumns = "NULL, '%s' || readID, chrom, start, stop, sense, weight, flag, mismatch" % dbName
elif table == "splices":
dbColumns = "NULL, '%s' || readID, chrom, startL, stopL, startR, stopR, sense, weight, flag, mismatch" % dbName