+ def printRDSInfo(self, datafile, reportCount, initialize):
+ if initialize:
+ print "INITIALIZED dataset %s" % datafile
+ else:
+ print "dataset %s" % datafile
+
+ metadata = self.getMetadata()
+ print "metadata:"
+ pnameList = metadata.keys()
+ pnameList.sort()
+ for pname in pnameList:
+ print "\t" + pname + "\t" + metadata[pname]
+
+ if reportCount and not initialize:
+ self.printReadCounts()
+
+ print "default cache size is %d pages" % self.getDefaultCacheSize()
+ if self.hasIndex():
+ print "found index"
+ else:
+ print "not indexed"
+
+
+ def printReadCounts(self):
+ ucount = self.getUniqsCount()
+ mcount = self.getMultiCount()
+ if self.dataType == "DNA":
+ print "\n%d unique reads and %d multireads" % (ucount, mcount)
+ elif self.dataType == "RNA":
+ scount = self.getSplicesCount()
+ print "\n%d unique reads, %d spliced reads and %d multireads" % (ucount, scount, mcount)
+
+