-"""
-Created on Jul 1, 2010
-
-@author: sau
-"""
-
import sqlite3 as sqlite
import string
import tempfile
import shutil
import os
-from os import environ
from array import array
-from commoncode import getReverseComplement
-
-if environ.get("CISTEMATIC_TEMP"):
- cisTemp = environ.get("CISTEMATIC_TEMP")
-else:
- cisTemp = "/tmp"
+from commoncode import getReverseComplement, getConfigParser, getConfigOption
-tempfile.tempdir = cisTemp
-currentRDSVersion = "1.1"
+currentRDSVersion = "2.0"
class ReadDatasetError(Exception):
def cacheDB(self, filename):
""" copy geneinfoDB to a local cache.
"""
+ configParser = getConfigParser()
+ cisTemp = getConfigOption(configParser, "general", "cistematic_temp", default="/tmp")
+ tempfile.tempdir = cisTemp
self.cachedDBFile = "%s.db" % tempfile.mktemp()
shutil.copyfile(filename, self.cachedDBFile)
and which can be restricted by chromosome or custom-flag.
Returns unique reads by default, but can return multireads
with doMulti set to True.
+
+ Need to rethink original design 1: Cannot have pairID without exporting as a readIDDict
"""
whereClause = []
resultsDict = {}