-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Hello,
I'm trying to run 01.script_priori_tree/b.GCN_tree.ipynb and I'm unable to make the initial tree seat = tree_utils.make_tree(fr_df)
I think the class definition of SEAT in pyseat is missing the self._validate_data() definition. At least I couldn't spot it in the pyseat src
Here's the error:
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
Cell In[12], line 2
1 # construct the tree by pyseat
----> 2 seat = tree_util.make_tree(fr_df)
3 newick_tree = seat.newick
4 subroot_nodes = seat.se_tree.optimal_subpopulation_node_ids
File /gpfs3/well/kir-ocms/users/ysa365/devel/FR_Hierarchy_Gut/01.script_priori_tree/../src/tree_util.py:11, in make_tree(fr_df)
6 def make_tree(fr_df):
7 seat = SEAT(affinity="gaussian_kernel",
8 sparsification="knn_neighbors",
9 objective="SE",
10 strategy="bottom_up")
---> 11 seat.fit(fr_df)
12 return seat
File /gpfs3/well/kir-ocms/users/ysa365/devel/venv/meta_fr/lib/python3.11/site-packages/pyseat/SEAT.py:913, in SEAT.fit(self, X, y)
911 def fit(self, X, y=None):
--> 913 X = self._validate_data(X, ensure_min_samples=2, estimator=self)
915 if self.min_k is not None and self.min_k <= 0:
916 raise ValueError("min_k should be an integer greater than 0."
917 " %s was provided." % str(self.min_k))
AttributeError: 'SEAT' object has no attribute '_validate_data'
Thanks so much for making all your code and analysis for your FR hierarchy paper to easy to follow! It's a real breath of fresh air in the microbiome informatics space.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels