Skip to content

Unknown error during alignment #1

Description

@YojanaGadiya

I followed the tutorial using my dataset, and I get this error on the alignment step, although the files for the previous steps are created (see screenshot). I have used the default parameters here.

Welcome to the untargeted metabolomics workflow.                                                                                                  low()"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Step 1: Preparing the workflow...
        Workflow is prepared.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Step 2: Processing individual files for feature detection...
        57 files to process out of 57 files.
        A total of 32 CPU cores are detected, 25 cores are used.
        Processing files from 0 to 57
^[[B    Individual file processing is completed.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Step 3: Aligning features...
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 57/57 [00:02<00:00, 26.51it/s]
/home/ubuntu/.pyenv/versions/3.9.17/lib/python3.9/site-packages/masscube/alignment.py:204: RuntimeWarning: invalid value encountered in scalar div█████████████████████████████████████████| 57/57 [00:02<00:00, 26.51it/s]
f.detection_rate = np.sum(f.feature_id_arr[v] != -1) / np.sum(v)
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/ubuntu/.pyenv/versions/3.9.17/lib/python3.9/site-packages/masscube/workflows.py", line 199, in untargeted_metabolomics_workflow
    features = feature_alignment(params.single_file_dir, params)
  File "/home/ubuntu/.pyenv/versions/3.9.17/lib/python3.9/site-packages/masscube/alignment.py", line 209, in feature_alignment
    features = merge_features(features, params)
  File "/home/ubuntu/.pyenv/versions/3.9.17/lib/python3.9/site-packages/masscube/alignment.py", line 297, in merge_features
    tmp = [features[0]]
IndexError: list index out of range

Screenshot 2025-01-09 at 15 46 47

The files inside single_files are all having features but then in project_files there is a file called features.msp which is empty.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions