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 while reading mlc file from CODEML #34

Open
MickAmest opened this issue Mar 26, 2020 · 2 comments
Open

Error while reading mlc file from CODEML #34

MickAmest opened this issue Mar 26, 2020 · 2 comments

Comments

@MickAmest
Copy link

MickAmest commented Mar 26, 2020

Hello everyone!!
I'm trying to read an mlc file (output from CODEML program) using the read.codeml_mlc function. However, I'm getting the following error:

 tree <- read.codeml_mlc("mlc")
Error in strsplit(., split = "[[:space:]]") : 
  non character argument 

Does anyone have an idea of what could be wrong? This is an ordinary mlc output from PAML, I have not modified or altered it, however, the error seems to be related to my file, because I have tried running the example from the tutorial (reading the mlc file provided with the package) and it works fine.

I guess another way to put the question is : to which part of the file is the strsplit(., split = "[[:space:]]") being applied to? Because that's clearly the part that is wrong with my file.

Thanks in advance for any help that could be provided!!

@MaximePolicarpo
Copy link

Hey Mick,

I have the exact same problem :/ Were you able to solve it ?

Thanks in advance,

Max

@MaximePolicarpo
Copy link

I actually found the problem I had :

I was trying to follow the tutorial here : https://bioc.ism.ac.jp/packages/3.6/bioc/vignettes/ggtree/inst/doc/treeImport.html
So I ran the commands :

mlcfile <- system.file("full_path_to_my_mlc_file", "mlc", package="treeio")
mlc <- read.codeml_mlc(mlcfile)
mlc

But those were not working. However, this worked :

mlcfile <- read.codeml_mlc("full_path_to_my_mlc_file")
mlc

I hope this can help :)

Max

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