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 when I save hubs #23

Open
muyixu opened this issue Feb 20, 2023 · 7 comments
Open

error when I save hubs #23

muyixu opened this issue Feb 20, 2023 · 7 comments

Comments

@muyixu
Copy link

muyixu commented Feb 20, 2023

I got an error when I run the function 'write_hub' function in R3.6.1.
image
However, the files are exported normally in the folder. However, in this case, the "DATASET_HEATMAP" annotation file did not work properly when imported into the iTOL. And the error information was as follows:
image

@TongZhou2017
Copy link
Owner

Could you share an example file of DATASET_HEATMAP without data part?

@muyixu
Copy link
Author

muyixu commented Feb 20, 2023

@TongZhou2017
Copy link
Owner

I tested the file and get the same error information.

I opened the file by TextEdit in macOS and copied the content. And I use Vim to write a new txt file by parsing the copied strings.

The new file worked.

image

I think the reason is the dependent function(might be write.table) in R3.6.1 is different from R4.
issue_23.txt

@TongZhou2017
Copy link
Owner

Is write_unit also not work for DATASET_HEATMAP?

@muyixu
Copy link
Author

muyixu commented Feb 20, 2023

When I used the function 'write_unit' to export the DATASET_HEATMAP alone, the output file is a temporary file in a non-plain text format. I got an error when I upload the file into iTOL.
image
The function I used is write_unit(unit_8,tempfile()).
And here is the output file.
image
image

@TongZhou2017
Copy link
Owner

When I used the function 'write_unit' to export the DATASET_HEATMAP alone, the output file is a temporary file in a non-plain text format. I got an error when I upload the file into iTOL. image The function I used is write_unit(unit_8,tempfile()). And here is the output file. image image

How about change the file name ending with .txt? and try again?

I found the CR and LF are specific in the Windows environment.
https://knowledge.digicert.com/solution/vmc-convert-cr-lf-to-lf-before-submitting-svg.html#:~:text=In%20Notepad%2B%2B%20go%20to,the%20CR%20LF%20characters%20visually.

Try to cover them in Unix format might work.

@TongZhou2017
Copy link
Owner

Please help me to check if write_hub works in itol.toolkit v1.1.2 under R 3.6.1?

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