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

error in uploading data from DIA-NN #29

Closed
pejota66 opened this issue Oct 2, 2023 · 5 comments
Closed

error in uploading data from DIA-NN #29

pejota66 opened this issue Oct 2, 2023 · 5 comments
Assignees

Comments

@pejota66
Copy link

pejota66 commented Oct 2, 2023

Hello,

when trying to upload DIA-NN output, this error pops up:
"simpleWarning in readLines(inFile$datapath, n = 1): line 1 appears to contain an embedded nul"

How to fix it?

Thanks

@tbaccata tbaccata self-assigned this Oct 3, 2023
@tbaccata
Copy link
Owner

tbaccata commented Oct 3, 2023

Hello,

It seems like one of your files has a very special encoding.
Do you perhaps have any special characters in them?

Best,
Sebastian

@pejota66
Copy link
Author

pejota66 commented Oct 3, 2023

Hello,

thanks for your response.
I am using the protein groups output from DIA-NN. the file name normally is similar to this: F:\K562_trial\Data\K562vsHELA_Swathand30SPD\HELA2.wiff

Is it acceptable?

Best,
Pedro

@tbaccata
Copy link
Owner

tbaccata commented Oct 4, 2023

Hello Pedro,

amica is not able to read .wiff files, these are raw files.
Usually raw files come in strangely encoded and compressed formats, explaining the warning message.

For DIA-NN there should be a tsv file which filename usually ends with pg_matrix.tsv.
The pg_matrix file contains the quantified protein groups, and should contain following columns for amica to be able to parse it:

https://github.com/tbaccata/amica/wiki/00-Accepted-input-formats#dia-nn

Best,
Sebastian

@tbaccata tbaccata closed this as completed Oct 4, 2023
@pejota66
Copy link
Author

pejota66 commented Oct 4, 2023

Hello Sebastian,

There might have been a misunderstanding. The file used in AMICA is, of course, the pg_matrix.tsv from DIA-NN, not the WIFF file. However, you inquired if my table might contain any symbols, and I provided you with an example of a sample name from the protein groups table because the other things are the protein names and their abundance. Does this clarification make sense to you?

thanks,
Pedro

@tbaccata
Copy link
Owner

tbaccata commented Oct 5, 2023

Hey Pedro,

Ah I see, I misunderstood that.

After doing some digging, it is still a bit hard to tell what might went wrong...

Did you create your output using windows?
Was there any post-processing in excel involved?
After doing some digging the only explanation I can come up with, is that the file encoding might be a Windows UTF-16 encoding that R is struggling with reading in.

If you'd try to read in your pg_matrix in R using the read.delim function do you get the same warning message?

Best,
Sebastian

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