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 fred (read_trinotate) problem. trinotateR #5

Open
berumeng opened this issue Dec 15, 2020 · 2 comments
Open

Error in fred (read_trinotate) problem. trinotateR #5

berumeng opened this issue Dec 15, 2020 · 2 comments

Comments

@berumeng
Copy link

berumeng commented Dec 15, 2020

Dear all:
I used Trinotate to annotate a transcriptome and I am trying to use trinotateR to manipulate the final product of Trinotate.
I have a Trinotate.xls file report (I used the .xls file, the .docx file is just to show the columns of the .xls file)
Trinity_example.docx

However when i used the read_trinotate function:
x <- read_trinotate("Trinotate.xls")

I get the following error:

Error in fread(file, sep = "\t", na.strings = ".", ...) :
embedded nul in string: '\xd0\xcf\021\u0871\032\xe1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0>\0\003\0\xfe\xff'

Could you please help me solve this?

Thanks in advance!!

@cstubben
Copy link
Owner

cstubben commented Dec 15, 2020

read_trinotate runs fread(file, sep="\t", na.strings=".") and a few extra steps. It requires a tab-delimited file as input and when I wrote this five years ago, the Trinotate.xls output was a text file with a .xls ending. That may have changed, so please check the file type - the null string seems like something Excel would add.

head -1 Trinotate_report.xls
#gene_id	transcript_id	sprot_Top_BLASTX_hit ...

@berumeng
Copy link
Author

Thanks, this help me a lot!

@berumeng berumeng reopened this Feb 16, 2021
@berumeng berumeng reopened this May 10, 2021
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