jameshadfield / phandango

an interactive viewer for populations of bacterial genomes linked by a phylogeny
http://phandango.net
MIT License
113 stars 27 forks source link

TypeError: Cannot read property 'length' of undefined #139

Open MBinso opened 2 years ago

MBinso commented 2 years ago

Hi, I have recently started using the Roary dependency on Galaxy Eu. I have been able to visualize small datasets with the phandango webpage but when using a large dataset (540 MB) and I keep getting the same message on the screen :

Input error. File: Gene_Presence_Absence.csv TypeError: Cannot read property 'length' of undefined

The tree file loads well but I cant seem to load the .csv file . I have tried the minimiseROARY.py script but I also get this error:

(base) guillermo@guillermo-VirtualBox:~/phandango/scripts$ python minimiseROARY.py -i Gene_Presence_Absence.csv -o Small.csv /home/guillermo/phandango/scripts/minimiseROARY.py:30: DeprecationWarning: 'U' mode is deprecated with open(args.fileIn, "rU") as fhi: Traceback (most recent call last): File "/home/guillermo/phandango/scripts/minimiseROARY.py", line 40, in main() File "/home/guillermo/phandango/scripts/minimiseROARY.py", line 35, in main fho.write(','.join(splitLine(line)) + "\n"); File "/home/guillermo/phandango/scripts/minimiseROARY.py", line 23, in splitLine for idx in xrange(0, len(fields)): NameError: name 'xrange' is not defined

I am still quite new to the bioinfomatics world so I apologize in advance for any dumb questions and/ or mistakes. Thank you for your time

PS: I'm gonna leave here the links with my files in case it helps

https://drive.google.com/file/d/1Y9t_qz6SnRBYv6h8tCbNEmMK9kgbKiYY/view?usp=sharing https://drive.google.com/file/d/1PmnEq3WjwvCQY4pwpTqO12hx9YnydYqU/view?usp=sharing