Tarskin / LaCyTools

A high-throughput data extraction package for LC-MS data.
Apache License 2.0
9 stars 5 forks source link

Issues using it in negative mode (APTS-labeled glycans) #28

Closed GSMKammeijer closed 6 years ago

GSMKammeijer commented 6 years ago

While trying to use LaCyTools errors occured while trying to generate the combined results (just after one summed spectrum generation). The files are send via wetransfer.

Tarskin commented 6 years ago

The above bug is due to the filepath exceeding the maximum length specified by the Win32 API of 255 characters. I am currently investigating how we can fix this in the program using path normalization or similar methods.

Tarskin commented 6 years ago

Additionally, the above issue showed that if there are other '.raw' files in the folder (such as the raw data of a specific instrument) the program also stops.

Tarskin commented 6 years ago

The fix for the filelength is as follows, which has been applied to the creation of the xy files:

(old, new) = os.path.split(self.inputFile)
old = os.path.abspath(old)
new = os.path.splitext(new)[0]
new = "sumSpectrum_"+str(i)+"_"+str(new)+".xy"
new = os.path.join(old,new)
outFile = "\\\\?\\"+new