X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=erange.git;a=blobdiff_plain;f=ReadDataset.py;h=850a5ec602a7b6d7a9a22ac98c4bf3eef4b873e5;hp=56e28a8995b734735ace06d1d990ac9b46753580;hb=a3c0e60eb30c924232d7baaa348a15c5554e3864;hpb=77dccd7c98d8cdb60caaf178b1123df71ea662c9 diff --git a/ReadDataset.py b/ReadDataset.py index 56e28a8..850a5ec 100644 --- a/ReadDataset.py +++ b/ReadDataset.py @@ -764,6 +764,7 @@ class ReadDataset(): def getSplicesCount(self, chrom="", rmin="", rmax="", restrict="", distinct=False): """ returns the number of row in the splices table. """ + # TODO: if the rds type is DNA should this just return zero? return self.getTableEntryCount("splices", chrom, rmin, rmax, restrict, distinct, startField="startL") @@ -1221,5 +1222,5 @@ class ReadDataset(): destinationEntries.append((row["readID"], row["chrom"], int(row["startL"]), int(row["stopL"]), int(row["startR"]), int(row["stopR"]), row["sense"], row["weight"], row["flag"], row["mismatch"])) - self.memcon.executemany("insert into splices(ID, readID, chrom, startL, stopL, startR, stopR, sense, weight, flag, mismatch) values (NULL,?,?,?,?,?,?,?,?)", destinationEntries) + self.memcon.executemany("insert into splices(ID, readID, chrom, startL, stopL, startR, stopR, sense, weight, flag, mismatch) values (NULL,?,?,?,?,?,?,?,?,?,?)", destinationEntries)