Skip to content

Commit

Permalink
Fixed the .str error in cytotrace2 (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
Starlitnightly committed Sep 25, 2024
1 parent 30d7564 commit 7833649
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions omicverse/externel/cytotrace2/gen_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ def predict(ranked_data, cell_names, model_dir, batch_size = 10000):
all_order_test = []

all_models_path = pd.Series(np.array([os.path.join(dp, f) for dp, dn, fn in os.walk(os.path.expanduser(model_dir)) for f in fn]))
all_models_path = all_models_path.astype(str) # 确保所有元素都是字符串
all_models_path = all_models_path[all_models_path.str.endswith('.pt')]


Expand Down
2 changes: 1 addition & 1 deletion omicverse/externel/flowsig/plotting/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
from ._plotting import plot_intercellular_flows_from_inflows, plot_intercellular_flows_from_gems, plot_intercellular_flows_from_outflows
from ._plotting import subset_for_flow_type,plot_intercellular_flows_from_inflows, plot_intercellular_flows_from_gems, plot_intercellular_flows_from_outflows
2 changes: 1 addition & 1 deletion omicverse/externel/flowsig/plotting/_plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def subset_for_flow_type(adata: sc.AnnData,

if var_type != 'all':

adata_subset = adata_subset[:, adata_subset.var['Type'].isin(list(var_type))]
adata_subset = adata_subset[:, adata_subset.var['Type'].isin([var_type])]

return adata_subset

Expand Down
1 change: 1 addition & 0 deletions omicverse_guide/docs/Release_notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,7 @@ Support Raw Windows platform

- Fixed the error of `get_results` and `get_results_rfc` in `cNMF` module. (#143) (#139)
- Added `sccaf` to obtain the best clusters.
- Fixed the `.str` error in cytotrace2 (#146)

### Bulk Module

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ classifiers = [
]
dependencies = [
'numpy>=1.23',
'scanpy>=1.10',
'scanpy>=1.9',
'pandas>=1.5',
'matplotlib<3.7',
'scikit-learn>=1.2',
Expand Down

0 comments on commit 7833649

Please sign in to comment.