-
Notifications
You must be signed in to change notification settings - Fork 7
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
Unable to open data file in firefox, chrome, and internet browser #32
Comments
Firefox should be fine, except for the most recent version. Up to version 67 should work without problems. |
@GuyBaele , is there any better methods for showing the results for phylogeographic analysis using beast? |
We mainly use SpreaD3 at the moment; other approaches may require more custom scripting/programming, but hopefully there will be more options (like Nextstrain) in the future. We have discussed many different visualisation options in a very recent review: https://www.frontiersin.org/articles/10.3389/fpubh.2019.00208/full |
@GuyBaele I tried Firefox 58.0.2 version but still the same problem. |
@GuyBaele, thank you, Spread3 using the map in D2 format, which is not good as google earth (my personal opinion), Nextstrain is difficult for coding, and hope we can see more powerful software to visualisation. |
@Muzaffar1234 E-mail me your data file? |
@Muzaffar1234 mine is okay. |
If you safari is okay, just use it. |
@GuyBaele share your email pls |
@LIXINGGUANG i dont have safari, My friend checked this on Safari, it was working fine |
@GuyBaele very interesting paper, is there more deep materials for phylogeography analysis, thanks. |
@Muzaffar1234, I suggest you use Mac for phylogeograpyic analysis, many softwares and webs are very nice for Mac. |
I just wrote this quick and (very!) dirty shell script to work around the problem. Please see the notes below before you use it. #!/bin/bash
set -Eeuo pipefail
(
head -n 149 < main.js
echo -n 'json = '
cat data.json
echo ';'
tail -n +156 main.js | awk 'NR != 107'
) > main-new.js
sed -e 's/main\.js/main-new.js/' < index.html > index-new.html You'll need to save it to a file (call it It will produce two new files, NOTE: this is extremely brittle. If the spread3 developers change what they write into If you don't see a map loaded in your browser, open the console and have a look for JavaScript errors. Then post them here & maybe I'll be able to help. The person I wrote this for tells me he is using version 0.9.7.1 of spread3. The above script is, I expect, highly unlikely to work on any other version. |
I put the above converter hack into a repo with a README, etc. https://github.com/VirologyCharite/convert-spread3 |
@terrycojones Thanks for your useful code, which help me to reconstruct the example figure, but, my data can't be converted well like the next figure, could you help me, thank you so much! |
@GuyBaele After I generate the index file (and convert it to index.new with the provided script), the lines representing the migration path are "fixed". What I mean is that they are present from time 0 to the end of the considered time period. |
Hi, otherwise, copy the the data.json into the src/renderer/D3 folder, then run A few years ago chrome had a --disable-web-security option for disabling CORS restriction, but it doesn't work anymore. |
I used the "simple-server" utility to look at SpreaD3 results but your solution allows to use only built-in tools, thanks! |
Data file created using the SPREAD software can not be opened in any firefox, chrome, and internet browser in window 10 system.
The opening file is blank.
Same file is fine when opened in safari (mac browser).
The text was updated successfully, but these errors were encountered: