import psyco
psyco.full()
except:
- print 'psyco not running'
+ print "psyco not running"
print "altSpliceCounts: version 3.7"
stopDict = {}
resultDict = {}
- hitRDS = ReadDataset.ReadDataset(hitfile, verbose = True, cache=doCache)
+ hitRDS = ReadDataset.ReadDataset(hitfile, verbose=True, cache=doCache)
if cachePages > hitRDS.getDefaultCacheSize():
hitRDS.setDBcache(cachePages)
readlen = hitRDS.getReadSize()
hitDict = hitRDS.getSplicesDict(noSense=True)
- outfile = open(outfilename,'w')
+ outfile = open(outfilename, "w")
for chrom in hitDict:
startDict[chrom] = []
resultDict[chrom].sort()
for line in resultDict[chrom]:
- outfile.write('alt%d' % alternative + '\tchr%s\t%d\t%d\tchr%s\t%d\t%d\n' % line)
+ outfile.write("alt%d" % alternative + "\tchr%s\t%d\t%d\tchr%s\t%d\t%d\n" % line)
alternative += 1
print chrom, maxIndex, spliceEvent, altSpliceEvent