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

Format AlphaFold data error #2

Open
shkrigunovtimur opened this issue Jun 19, 2023 · 0 comments
Open

Format AlphaFold data error #2

shkrigunovtimur opened this issue Jun 19, 2023 · 0 comments

Comments

@shkrigunovtimur
Copy link

Dear colleagues,
I am writing to you regarding the published "Analysis of PTMs in their structural context using the StructureMap and AlphaMap Python packages" pipeline (please find processed code attached). "Prepare the environment" and "Download AlphaFold data" stages went smoothly, but I have an error in "Format AlphaFold data error":

Traceback (most recent call last):
File "script.py", line 39, in
alphafold_annotation = format_alphafold_data(directory=cif_dir,
File "/home/fox/.local/lib/python3.8/site-packages/structuremap/processing.py", line 255, in format_alphafold_data
df = pd.DataFrame({'protein_id': structure['_atom_site.pdbx_sifts_xref_db_acc'],
File "/home/fox/.local/lib/python3.8/site-packages/pandas/core/frame.py", line 709, in init
mgr = dict_to_mgr(data, index, columns, dtype=dtype, copy=copy, typ=manager)
File "/home/fox/.local/lib/python3.8/site-packages/pandas/core/internals/construction.py", line 481, in dict_to_mgr
return arrays_to_mgr(arrays, columns, index, dtype=dtype, typ=typ, consolidate=copy)
File "/home/fox/.local/lib/python3.8/site-packages/pandas/core/internals/construction.py", line 115, in arrays_to_mgr
index = _extract_index(arrays)
File "/home/fox/.local/lib/python3.8/site-packages/pandas/core/internals/construction.py", line 655, in _extract_index
raise ValueError("All arrays must be of the same length")
ValueError: All arrays must be of the same length

I would be very glad if you can suggest the solution for the issue.

Kind Regards,
Shkrigunov Timur
Screenshot 2023-06-19 at 14 00 40
script

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