Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code refactoring #4

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions scSLAT/viz/multi_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def __init__(self,dataset_A:pd.DataFrame,
set2 = list(set(self.dataset_B[meta]))
self.celltypes = set1 + [x for x in set2 if x not in set1]
self.celltypes.sort() # make sure celltypes are in the same order
overlap = [x for x in set2 if x in set1]
overlap = set(set2).intersection(set1)
print(f"dataset1: {len(set1)} cell types; dataset2: {len(set2)} cell types; \n\
Total :{len(self.celltypes)} celltypes; Overlap: {len(overlap)} cell types \n\
Not overlap :[{[y for y in (set1+set2) if y not in overlap]}]"
Expand Down Expand Up @@ -744,4 +744,4 @@ def matching_2d(matching:np.ndarray,

del src.obs['target_celltype']
del src.obs['target_region']
del src.obs['vis']
del src.obs['vis']