コード例 #1
0
 def constructId(geSource):
     from gtrackcore.preprocess.PreProcessTracksJob import PreProcessTracksJob
     if geSource.hasOrigFile():
         origPath = os.path.dirname(geSource.getFileName()) if not geSource.isExternal() else geSource.getFileName()
         return TrackInfo.constructIdFromPath(geSource.getGenome(), origPath, \
                                              geSource.getVersion(), PreProcessTracksJob.VERSION)
     else:
         return geSource.getId()