X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=erange.git;a=blobdiff_plain;f=combinerds.py;fp=combinerds.py;h=d6960c2783908d67db405315b797aab3db5a02e9;hp=2695e6b512c677735fc61be2931108e947d0ab43;hb=4ad5495359e4322da39868020a7398676261679e;hpb=cfc5602b26323ad2365295145e3f6c622d912eb4 diff --git a/combinerds.py b/combinerds.py index 2695e6b..d6960c2 100755 --- a/combinerds.py +++ b/combinerds.py @@ -21,7 +21,7 @@ def main(argv=None): 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:]) @@ -98,9 +98,7 @@ def combinerds(datafile, infileList, tableList=[], withFlag="", doIndex=False, c 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