Skip to content

IndexError: index -1 is out of bounds for axis 0 with size 0 #28

@LiaSerrano

Description

@LiaSerrano

Hello @CCranney,

It looks like I'm getting a similar issue to issue #25. I pasted my console below. I'm trying to search a direct infusion DIA data against a human proteome library.

Thanks!
Lia

Executing process

Enter library dictionary upload:

6 days, 11:20:56.738240

Begin Grouping Scans by m/z Windows:

6 days, 11:20:56.741837

Number of Unpooled MS/MS Query Spectra: 616

Number of Pooled MS/MS Query Spectra/Mz Windows: 550

Begin Pooled Spectra Analysis:

6 days, 11:20:57.721855

Begin FDR Analysis:

6 days, 11:20:57.792408

Begin Correction Process:

6 days, 11:20:59.121492

Traceback (most recent call last):

File "C:\ProgramData\Anaconda3\envs\csod\Scripts\csodiaq-script.py", line 33, in

sys.exit(load_entry_point('csodiaq', 'console_scripts', 'csodiaq')())

File "c:\users\searcher\desktop\cso\csodiaq\csodiaq.py", line 36, in main

cif.perform_spectra_pooling_and_analysis( args['files'][i],

File "c:\users\searcher\desktop\cso\csodiaq\csodiaq_identification_functions.py", line 82, in perform_spectra_pooling_and_analysis

allSpectraMatches.filter_by_corrected_ppm_window(corrected, maccCutoff, histFile)

File "c:\users\searcher\desktop\cso\csodiaq\IdentificationSpectraMatcher.py", line 163, in filter_by_corrected_ppm_window

self.remove_sparse_matches_and_generate_scores()

File "c:\users\searcher\desktop\cso\csodiaq\IdentificationSpectraMatcher.py", line 151, in remove_sparse_matches_and_generate_scores

self.libraryTags, self.queryTags, self.libraryIntensities, self.queryIntensities, self.ppmMatches = [np.delete(x, remove_indices) for x in [self.libraryTags, self.queryTags, self.libraryIntensities, self.queryIntensities, self.ppmMatches]]

File "c:\users\searcher\desktop\cso\csodiaq\IdentificationSpectraMatcher.py", line 151, in

self.libraryTags, self.queryTags, self.libraryIntensities, self.queryIntensities, self.ppmMatches = [np.delete(x, remove_indices) for x in [self.libraryTags, self.queryTags, self.libraryIntensities, self.queryIntensities, self.ppmMatches]]

File "<array_function internals>", line 180, in delete

File "C:\ProgramData\Anaconda3\envs\csod\lib\site-packages\numpy\lib\function_base.py", line 5128, in delete

keep[obj,] = False

IndexError: index -1 is out of bounds for axis 0 with size 0

Process finished.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions