-
Notifications
You must be signed in to change notification settings - Fork 3
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
Finding normal cells and tumor cells in BAF module #16
Comments
#8 #8 (comment) |
Hi, Rongting @Rongtingting Thank you for your prompt answer last time. Sorry to bother you again. I wonder if the normal and tumor cells identified by this BAF module can be used as the result of the final comboine? Can I cluster with the results after the combine module? Will there be any difference between the combine and BAF results? In addition, does xclone have the ability to identify subclones? I am looking forward to hearing from you and I would appreciate it very much. Best regards! |
Hi @ShuaiManMan, Thank you for your questions. Here, BAF module clustering just provides an option for finding reference/normal cells. If there are LOH events (similar expression level as reference populations but loss allele), only Combine module can detect. Yes, XClone can detect subclones based on the Combine module's output. You may find the following codes helpful import xclone
import scanpy as sc
data_dir = "xxxxxx/BCH869_scRNA_trials/"
combine_final_file = data_dir + "data/combined_final.h5ad"
adata = sc.read(combine_final_file)
## explore the clusters numbers by UMAP visualization
xclone.al.exploreClustering(adata, ref_anno_key = "spot_anno", Xlayer = "prob1_merge", max_clusters = 5)
## explore the clustering by specify 2 clusters
adata_anno = xclone.al.OnestopBAFClustering(adata, Xlayer = "prob1_merge",
n_clusters = 2, ref_anno_key = "spot_anno", clone_anno_key = "clone(2)",
plot_title = "xxxx (XClone)",
file_save_path = "xxxx/analysis/", file_save_name = "xxx_2clones", complex_plot = True)
## Similarly, explore the clustering by specify 3 clusters
adata_anno = xclone.al.OnestopBAFClustering(adata, Xlayer = "prob1_merge",
n_clusters = 3, ref_anno_key = "spot_anno", clone_anno_key = "clone(3)",
plot_title = "xxxx (XClone)",
file_save_path = "xxxx/analysis/", file_save_name = "xxx_3clones", complex_plot = True) Bests, |
Hi Rongting, |
Hi @Rongtingting , I have some questions about the results of clustering after the Combine module. I ran the following code.
the results as follow: Bests, |
Hi @Mashuaiii, Thank you for your updates. Here, you have 2 clone labels; you can use that label to plot a combined module-derived heatmap to check the patterns of the 2 clones. Bests, |
Ok,Thank you ~ |
I am sorry for the late reply.
I have added functions for finding normal and tumor cells in XClone BAF module (latest version via github installation).
And XClone works well in Python 3.9 environment now.
Example
Bests,
Rongting
Originally posted by @Rongtingting in #5 (comment)
The text was updated successfully, but these errors were encountered: