Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

importing arw file #26

Closed
crestre opened this issue Jul 19, 2023 · 6 comments
Closed

importing arw file #26

crestre opened this issue Jul 19, 2023 · 6 comments

Comments

@crestre
Copy link

crestre commented Jul 19, 2023

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

@ethanbass
Copy link
Owner

ethanbass commented Jul 19, 2023

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

@crestre
Copy link
Author

crestre commented Jul 19, 2023

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

@ethanbass
Copy link
Owner

ethanbass commented Jul 20, 2023

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

@ethanbass
Copy link
Owner

Curious if you got this working?

@ethanbass
Copy link
Owner

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

@crestre
Copy link
Author

crestre commented Sep 3, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants