Skip to content

Format AlphaFold data error #2

Open
@shkrigunovtimur

Description

@shkrigunovtimur

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions