itol.toolkit icon indicating copy to clipboard operation
itol.toolkit copied to clipboard

error when I save hubs

Open muyixu opened this issue 3 years ago • 7 comments

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

muyixu avatar Feb 20 '23 02:02 muyixu

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

TongZhou2017 avatar Feb 20 '23 03:02 TongZhou2017

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 avatar Feb 20 '23 03:02 TongZhou2017

Is write_unit also not work for DATASET_HEATMAP?

TongZhou2017 avatar Feb 20 '23 03:02 TongZhou2017

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

muyixu avatar Feb 20 '23 11:02 muyixu

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 avatar Feb 20 '23 12:02 TongZhou2017

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

TongZhou2017 avatar Mar 21 '23 17:03 TongZhou2017