-
Notifications
You must be signed in to change notification settings - Fork 19
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
how to use original Dimension Reduction information from Seurat. #35
Comments
@aina91 you change the dimension reduction slot as well as the clustering slot to store the original information from Seurat (writing to loom files seems to work well):
Please let me know if you have any questions. |
Thx! You really helped me a great favor.
| |
艾娜
邮箱:[email protected]
|
签名由 网易邮箱大师 定制
On 06/08/2020 00:57, RegnerM2015 wrote:
@aina91 you change the dimension reduction slot as well as the clustering slot to store the original information from Seurat (writing to loom files seems to work well):
`
from SCCAF import SCCAF_assessment, plot_roc,SCCAF_optimize_all
import scanpy as sc
adata = sc.read_loom("/full/path/to/loom/file.loom")
adata.obs["L1_Round0"] = adata.obs["seurat_clusters"]#store the Seurat clusters in L1 Round0
adata.raw = adata
adata.obsm["X_pca"] = adata.obsm["pca_cell_embeddings"]#store Seurat PCA embeddings`
Please let me know if you have any questions.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Hello. I am also using a Seurat object. When I import my Seurat object as AnnData and check the obsm slop, I get this:
I have successfully used the
But I think, since I used Harmony embeddings for clustering, I should use them here too, no? When I try that, I get an error:
I get the following:
If you could tell me what I am doing improperly, I'd appreciate it. |
@achamess, have you try use harmony coordination replace pca coordination ? |
Hello ,I'm glad to use your softwork. I known SCCAF input file is 'pre-clustered anndata object in the SCANPY package'.I have changed rds object (by Seurat) to Anndata Object , hope to optimze clustering by SCCAF. However, the pre processed dimensional reduction information from Seurat has been add to 'obsm' slot. Therefore I can't use the original dimension reduction information by Seurat.
I would feel grateful if you can give me your personal advice at your convenience.
The text was updated successfully, but these errors were encountered: