Skip to content

Commit

Permalink
patch idmapper
Browse files Browse the repository at this point in the history
  • Loading branch information
cactuskid committed Aug 29, 2024
1 parent eb4db74 commit 39e9f20
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/HogProf/profiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,13 @@ def __init__(self,lshforestpath = None, hashes_h5=None, mat_path= None, oma = Fa
self.tax_filter = [ self.idmapper[tax] for tax in taxfilter ]
if taxmask:
self.tax_mask = self.idmapper[taxmask]
else:
self.idmapper = None
self.tax_filter = taxfilter
self.tax_mask = taxmask
self.tree_string = self.tree.write(format=1)


self.taxaIndex, self.ReverseTaxaIndex = files_utils.generate_taxa_index(self.tree)
self.treeweights = hashutils.generate_treeweights(self.tree , self.taxaIndex , None, None )
self.swap2taxcode = swap2taxcode
Expand Down

0 comments on commit 39e9f20

Please sign in to comment.