ethanbass/chromatographR

importing arw file

Closed this issue · 6 comments

I am importing an .arw file using chromConveter and I am getting the following message:

Warning messages:

1: In strsplit(readLines(file, n = 2), "\t") :
unable to translate '"PDA Exposure Time" "Processing Locked" "Sampling Rate" "Scale to V" "Source S/W Info" "Det. Units" "Data Start" "Data End" "Channel Type" "Channel Status" "Channel Id" "Channel Description" "Channel" "# of Results Stored"' to a wide string
2: In strsplit(readLines(file, n = 2), "\t") : input string 1 is invalid

Your help would be more than appreciated.
Carla

Hi Carla,
I'd be happy to take a look. Do you think you could send me the file in question? (The test files I have load fine so probably there's something a little different going on in your arw files than the ones I have access to that I would need to track down). You could attach it here or email it to me. Also what version of chromConverter are you running? You can check with packageVersion("chromConverter") in the R console.
Thanks!
Ethan

Siderophoros AIA1622.arw.zip

Hi Ethan,

Thanks for your prompt reply. I am attaching the file that we used with chromConverter version 0.2.1
Carla

Thank you very much for providing the file. It turns out there were actually a couple of problems. The error you were getting was caused by a stray unicode character, but also your file is from a PDA detector which wasn't supported by the parser up to now because I didn't have any example files to work with. I added a few lines to the parser that seem to resolve both issues.

You can try installing the new version of chromConverter from GitHub (ethanbass/chromConverter@f99f4b1) using the install_github function from the remotes package (e.g. remotes::install_github("ethanbass/chromConverter"). You will also need to restart your R session to clear the old package from the cache.

I think the new parser should be able to read your files correctly but please let me know if you run into any more issues or notice any problems with the output. The file you sent is the only example I have of an arw file from a PDA detector so it's possible there could be something else I'm missing.

all best,
Ethan

Curious if you got this working?

I am going to close this issue for now, as I believe it has been resolved by ethanbass/chromConverter@f99f4b1. Feel free to reopen if you're still having any issues. Thanks!
Ethan

Ethan,
Finally I was able to check into this and it worked! Thanks a lot. I have some questions but I will open a new issue.