-
Notifications
You must be signed in to change notification settings - Fork 97
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
MAGIC on RNA + ATAC data #210
Comments
@YamamotoRyo this is a totally valid use case, yes. You can pass the distance matrix to a |
@scottgigante Thank you so much! |
Hi @scottgigante, I could make a magic operator using the graph. But transformation failed.
Error magic_op_g = magic_op_g.fit(X=df, graph=graph) X_magic = magic_op_g.transform() File "/var/folders/59/cxr2yt4926jc95n5w2mtz32r0000gn/T/ipykernel_34361/2648698257.py", line 1, in File "/Users/jack/opt/anaconda3/envs/py310/lib/python3.10/site-packages/magic/magic.py", line 607, in transform File "/Users/jack/opt/anaconda3/envs/py310/lib/python3.10/site-packages/magic/utils.py", line 167, in convert_to_same_format File "/Users/jack/opt/anaconda3/envs/py310/lib/python3.10/site-packages/pandas/core/generic.py", line 5588, in setattr File "pandas/_libs/properties.pyx", line 70, in pandas._libs.properties.AxisProperty.set File "/Users/jack/opt/anaconda3/envs/py310/lib/python3.10/site-packages/pandas/core/generic.py", line 769, in _set_axis File "/Users/jack/opt/anaconda3/envs/py310/lib/python3.10/site-packages/pandas/core/internals/managers.py", line 214, in set_axis File "/Users/jack/opt/anaconda3/envs/py310/lib/python3.10/site-packages/pandas/core/internals/base.py", line 69, in _validate_set_axis ValueError: Length mismatch: Expected axis has 1729 elements, new values have 21470 elements The default function without a graph worked.
Any help would be appreciated. Thank you, |
Looks like a bug, but you can work around it with |
Thanks, @scottgigante . Instead, I tried this.
I think it works. |
Hi @scottgigante
Thank you for the great tool. I want to impute data of 10X genomics scMultiome dataset. Applying MAGIC on ATAC-seq has been benchmarked here. https://doi.org/10.1093/bib/bbab442
I'm considering applying the distance matrix from the weighted nearest neighbour distance in Seurat to MAGIC. Is it reasonable?
The text was updated successfully, but these errors were encountered: