-
Notifications
You must be signed in to change notification settings - Fork 30
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
Extracting fragment count matrix #316
Comments
adata.obsm['fragment_paired'] stores single base resolution count matrix in a compact format as described here: https://kzhang.org/SnapATAC2/api/_autosummary/snapatac2.pp.import_data.html#snapatac2.pp.import_data. It is not easy to extract this matrix as it is huge. Instead, you can extract a low resolution version of it after calling |
so is there any other way to get around this so that fragment generated and annotation done using snapatac2 can be used for pycisTopic? |
What information exactly do you need? |
The starting input required in th pycisTopic tutorial are the fragment files and annotations from each cell. Since, both are already stored in the snapatac anndata, I was wondering if the fragments and cell_data could be extracted and used as an input for pycisTopic. |
Sorry for the late response. To get fragments, you can use |
Hello,
Thanks for the great package!
I am trying to extract the fragment count matrix to implement with the following notebook:
https://github.com/aertslab/pycisTopic/blob/old/notebooks/Toy_melanoma-RTD.ipynb
However, I cannot see where to extract the fragment count matrix.
I believe this is stored in adata.obsm['fragment_paired'], but I cannot see how to extract the fragment names.
Thank you for your help
The text was updated successfully, but these errors were encountered: