kuwisdelu / Cardinal

Mass spectrometry imaging toolbox
http://www.cardinalmsi.org
Artistic License 2.0
42 stars 14 forks source link

Add the default value of representation in readImzML #28

Closed MASHUOA closed 11 months ago

MASHUOA commented 1 year ago

FYI otherwise, the NULL of representation will give error as below Error in if (representation == "centroid spectrum") { : argument is of length zero

MASHUOA commented 1 year ago

"MS:1000127" or "MS:1000128" wasn't found in my fileContent. Thus, the representation will have the NULL value.

fileContent Params list of length 4

IMS:1000080 - universally unique identifier = 719406e0-bc0... IMS:1000031 - processed
IMS:1000090 - ibd MD5 = 154A23003A08... MS:1000294 - mass spectrum