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

No trees shown in PhyloWGS Witness #123

Open
SwaggerNiels opened this issue Apr 7, 2020 · 5 comments
Open

No trees shown in PhyloWGS Witness #123

SwaggerNiels opened this issue Apr 7, 2020 · 5 comments

Comments

@SwaggerNiels
Copy link

After installing a fresh git clone and compiling the mh file, im able to succesfully run the program using:

python2 multievolve.py --num-chains 4 --ssms ssm_data.txt --cnvs cnv_data.txt --burnin-samples 1 --mcmc-samples 1

however, viewing the results gives me an empty window (whenever I open the index.html), while earlier I did see trees there, now somehow it does not work anymore.

after the above succesfull run I use:

mkdir run_name
/usr/bin/python2 write_results.py run_name [mypath]/phylowgs/chains/trees.zip run_name.summ.json.gz run_name.muts.json.gz run_name.mutass.zip
mv ./run_name.* run_name
mv run_name [mypath]/phylowgs/witness/data
cd [mypath]/phylowgs/witness/
gunzip data/run_name/*.gz
python2 index_data.py 

What am i doing wrong? (I am on a remote terminal, so cannot view the http://127.0.0.1:8000 using a server)

Is there another way of opening the visualized output?

@serpei
Copy link

serpei commented Jul 23, 2021

Please,
can you suggest how to interpret output files without opening the html file? I have the same problem.
Thank you,
S

@SwaggerNiels
Copy link
Author

It has been quite a while, but I believe you can go into the results folder that you defined (in "data") and quite easily retrieve the output data from a json formatted file (ends in "summ.json" i believe).

if you are using python, this file can easily be converted to a dictionary, using the "json" module in python. Be careful and triple check the "negative log likelihood" values that have been defined for each tree, such that you pick the most accurate tree. All the information about the prevalences of the subpopulations and the connections should be in the data structure.

The structure of the json file is quite obvious if you have a look through it.

I hope that helps!

@serpei
Copy link

serpei commented Jul 23, 2021 via email

@SwaggerNiels
Copy link
Author

Correct

@serpei
Copy link

serpei commented Jul 24, 2021 via email

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