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

About snap2anndata #83

Open
nigred opened this issue Feb 28, 2021 · 0 comments
Open

About snap2anndata #83

nigred opened this issue Feb 28, 2021 · 0 comments

Comments

@nigred
Copy link

nigred commented Feb 28, 2021

Hello. I attempted to run snap2anndata following the tutorial (SnapATAC_to_anndata_March26th2020.ipynb) using sample data (atac_v1_adult_brain_fresh_5k.snap.rds). However, I received the error message below. How should I convert snap object to anndata object? I'm using python 3.7.1

Thank you for your help.


During startup - Warning messages:
1: Setting LC_COLLATE failed, using "C"
2: Setting LC_TIME failed, using "C"
3: Setting LC_MESSAGES failed, using "C"
4: Setting LC_MONETARY failed, using "C"
5: Setting LC_PAPER failed, using "C"
6: Setting LC_MEASUREMENT failed, using "C"
UserWarning:convert_to_anndata_2.py:111:
featurepartially excluded from the conversion.
GRanges are not currently fully transfered into the Anndata.

UserWarning:convert_to_anndata_2.py:111:
peakpartially excluded from the conversion.
GRanges are not currently fully transfered into the Anndata.

Traceback (most recent call last):
File "convert_to_anndata_2.py", line 332, in
save='/home/ubuntu/result_dir/scATAC_Seq/snapATAC/200514_project/test/atac_v1_adult_brain_fresh_5k.snap.h5ad')
File "convert_to_anndata_2.py", line 309, in snap2anndata
copy=True))
File "convert_to_anndata_2.py", line 185, in make_Anndata
if (extra in input_data.keys()) and (extra not in adata.obs.columns) and (len(input_data[extra][1].tolist()) == len(adata.obs_names.tolist())):
AttributeError: 'StrVector' object has no attribute 'tolist'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant