コード例 #1
0
 def load(self, BlobDb_f):
     blobDict = BtIO.readJson(BlobDb_f)
     self.title = blobDict['title']
     self.assembly_f = blobDict['assembly_f']
     self.nodesDB_f = blobDict['nodesDB_f']
     self.lineages = blobDict['lineages']
     self.set_of_taxIds = blobDict['lineages'].keys()
     self.order_of_blobs = blobDict['order_of_blobs']
     self.dict_of_blobs = blobDict['dict_of_blobs']
     self.length = int(blobDict['length'])
     self.seqs = int(blobDict['seqs'])
     self.n_count = int(blobDict['n_count'])
     self.covLibs = blobDict['covLibs']
     self.hitLibs = blobDict['hitLibs']
     self.taxrules = blobDict['taxrules']
コード例 #2
0
ファイル: BtCore.py プロジェクト: hyphaltip/blobtools
 def load(self, BlobDb_f):
     blobDict = BtIO.readJson(BlobDb_f)
     self.title = blobDict['title']
     self.assembly_f = blobDict['assembly_f']
     self.nodesDB_f = blobDict['nodesDB_f']
     self.lineages = blobDict['lineages']
     self.set_of_taxIds = blobDict['lineages'].keys()
     self.order_of_blobs = blobDict['order_of_blobs']
     self.dict_of_blobs = blobDict['dict_of_blobs'] 
     self.length = int(blobDict['length'])
     self.seqs = int(blobDict['seqs'])
     self.n_count = int(blobDict['n_count'])
     self.covLibs = blobDict['covLibs']
     self.hitLibs = blobDict['hitLibs']
     self.taxrules = blobDict['taxrules']
コード例 #3
0
 def load(self, BlobDb_f):
     blobDict = BtIO.readJson(BlobDb_f)
     for k, v in blobDict.items():
         setattr(self, k, v)
     self.set_of_taxIds = blobDict['lineages'].keys()