Skip to content

Problem with reading results into pd.dataframe during BiG-MAP.map #17

@flashton2003

Description

@flashton2003

Hello,

I'm running BiG-MAP.map on a collection of ~140 metagenome samples. During the section where it prints out "Dealing with sample 32712-5#8", there were three times when it said "Unable to run bowtie" after the "Dealing with..." message.

Then, I got this error:

Traceback (most recent call last):
  File "/home/phil/programs/BiG-MAP/src/BiG-MAP.map.py", line 1129, in <module>
    main()
  File "/home/phil/programs/BiG-MAP/src/BiG-MAP.map.py", line 1043, in main
    df = pd.DataFrame(results)
  File "/home/phil/miniconda3/envs/BiG-MAP_process/lib/python3.6/site-packages/pandas/core/frame.py", line 330, in __init__
    mgr = self._init_dict(data, index, columns, dtype=dtype)
  File "/home/phil/miniconda3/envs/BiG-MAP_process/lib/python3.6/site-packages/pandas/core/frame.py", line 461, in _init_dict
    return _arrays_to_mgr(arrays, data_names, index, columns, dtype=dtype)
  File "/home/phil/miniconda3/envs/BiG-MAP_process/lib/python3.6/site-packages/pandas/core/frame.py", line 6163, in _arrays_to_mgr
    index = extract_index(arrays)
  File "/home/phil/miniconda3/envs/BiG-MAP_process/lib/python3.6/site-packages/pandas/core/frame.py", line 6211, in extract_index
    raise ValueError('arrays must all be same length')
ValueError: arrays must all be same length

When I removed the three samples that seemed to spark the "Unable to run bowtie" message, the program executed successfully.

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