MASHUOA / HiTMaP

An R package of High-resolution Informatics Toolbox for Maldi-imaging Proteomics
GNU General Public License v3.0
15 stars 12 forks source link

subscript out of bounds #5

Closed GraceAHall closed 3 years ago

GraceAHall commented 3 years ago

Hi there,

Attempting to wrap HiT-MaP so it can be available on the Galaxy platform. Running into a number of issues during execution using your provided docker image. Here is the second:

Ranking mz feature: 50 unique candidates mz, 50 aligned mz feature
Start protein scoring...
Error in Protein_feature_result[[3]] : subscript out of bounds
Calls: imaging_identification -> IMS_data_process

I believe what is occuring is that Protein_feature_result is expected to have an array with multiple elements, but it gets none. Unfortunately this halts execution (after 1.5 hours of processing).

Would be good to catch this type of error and handle it, rather than cause the program to terminate. Maybe it is possible to check Protein_feature_result has the required data before trying to access specific elements which may or may not be present?

MASHUOA commented 3 years ago

HI, Grace, Thanks for your comments. Now the issue has been fixed in the latest update.