本文整理汇总了Python中quick.util.GenomeInfo.GenomeInfo.getChrTrackName方法的典型用法代码示例。如果您正苦于以下问题:Python GenomeInfo.getChrTrackName方法的具体用法?Python GenomeInfo.getChrTrackName怎么用?Python GenomeInfo.getChrTrackName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类quick.util.GenomeInfo.GenomeInfo
的用法示例。
在下文中一共展示了GenomeInfo.getChrTrackName方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: extractTestGenomeAndPreProcess
# 需要导入模块: from quick.util.GenomeInfo import GenomeInfo [as 别名]
# 或者: from quick.util.GenomeInfo.GenomeInfo import getChrTrackName [as 别名]
def extractTestGenomeAndPreProcess(hbPath):
from config.Config import ORIG_DATA_PATH
from gold.origdata.PreProcessTracksJob import PreProcessAllTracksJob
from setup.InstallFunctions import executeShellCmd
from gold.util.CommonFunctions import createDirPath
from quick.util.GenomeInfo import GenomeInfo
from quick.application.ProcTrackOptions import ProcTrackOptions
from gold.description.TrackInfo import TrackInfo
import shutil
testGenomeFn = os.sep.join([hbPath, 'data', 'TestGenome.tar.gz'])
executeShellCmd('tar xfz %s --keep-newer-files -C %s' % (testGenomeFn, ORIG_DATA_PATH), \
pipe=False, printError=True, onError='exit')
print 'OK: Extracted TestGenome files.'
PreProcessAllTracksJob.PASS_ON_EXCEPTIONS = True
try:
PreProcessAllTracksJob('TestGenome').process()
PreProcessAllTracksJob('TestGenome', GenomeInfo.getChrTrackName('TestGenome')).process()
print 'OK: Finished preprocessing TestGenome.'
except Exception, e:
print 'FAILED: Error when preprocessing TestGenome. Error:'
print ' ' + str(e).strip()
sys.exit(1)