本文整理汇总了Python中quick.application.ExternalTrackManager.ExternalTrackManager.isVirtualTrack方法的典型用法代码示例。如果您正苦于以下问题:Python ExternalTrackManager.isVirtualTrack方法的具体用法?Python ExternalTrackManager.isVirtualTrack怎么用?Python ExternalTrackManager.isVirtualTrack使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类quick.application.ExternalTrackManager.ExternalTrackManager
的用法示例。
在下文中一共展示了ExternalTrackManager.isVirtualTrack方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __new__
# 需要导入模块: from quick.application.ExternalTrackManager import ExternalTrackManager [as 别名]
# 或者: from quick.application.ExternalTrackManager.ExternalTrackManager import isVirtualTrack [as 别名]
def __new__(cls, trackName):
if len(trackName) == 0 or trackName is None:
return None
else:
if ExternalTrackManager.isVirtualTrack(trackName):
return VirtualMinimalPlainTrack.__new__(VirtualMinimalPlainTrack)
else:
return object.__new__(cls)
示例2: _getBoundingRegionShelve
# 需要导入模块: from quick.application.ExternalTrackManager import ExternalTrackManager [as 别名]
# 或者: from quick.application.ExternalTrackManager.ExternalTrackManager import isVirtualTrack [as 别名]
def _getBoundingRegionShelve(self, trackName):
if trackName in [None, []] or ExternalTrackManager.isVirtualTrack(trackName):
brShelve = None
else:
brShelve = BoundingRegionShelve(self.genome, trackName, allowOverlaps=False)
if not brShelve.fileExists():
raise BoundingRegionsNotAvailableError('Bounding regions not available for track: ' + \
prettyPrintTrackName(trackName))
return brShelve