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

Issue with visualization #12

Open
pavlo888 opened this issue Dec 7, 2018 · 10 comments
Open

Issue with visualization #12

pavlo888 opened this issue Dec 7, 2018 · 10 comments

Comments

@pavlo888
Copy link

pavlo888 commented Dec 7, 2018

So I know this is not the GitHub repository for the pan-genome-visualization package but I am super lost regarding how to make the visualization work.

What exactly are the arguments to be used for the link-to-server.py script???? I understand that argument -s needs to be the folder containing the files from the output of pan-genome-analysis. However, I do not know what the argument should be for -v. I have tried the absolute path of the pan-genome-visualization package, the relative path of the local host server 800, but to no avail.

Could you please help me out with this one? Thanks in advance.

Cheers,
Pablo

@rneher
Copy link
Member

rneher commented Dec 8, 2018

The -v argument is the path the folder of the visualization. All this script does is to copy the files generated by panX to the visualization such that they end up in pan-genome-visualization/public/dataset/species_name.

In addition, you need to create routes and views via the add-new-pages.py script:

https://github.com/neherlab/pan-genome-visualization/blob/master/add-new-pages.py

@pavlo888
Copy link
Author

pavlo888 commented Dec 8, 2018

Hi Richard,

Thanks a lot for your answer. I seem to be still lost. I am using this command:

/Users/pablovargas/pan-genome-analysis/link-to-server.py -s /Users/pablovargas/pan-genome-analysis/data/TestSet -v /Users/pablovargas/pan-genome-analysis/pan-genome-visualization

The TestSet folder contains all the output from a pan-genome-analysis run. and the argument for -v is the location of the pan-genome-visualization folder. However, there seems to be an error because I get this when I run the command:

rsync: link_stat "/Users/pablovargas/pan-genome-analysis/pan-genome-visualization/./data//Users/pablovargas/pan-genome-analysis/data/TestSet/vis/." failed: No such file or directory (2)
rsync: mkdir "/Users/pablovargas/pan-genome-analysis/pan-genome-visualization/public/dataset//Users/pablovargas/pan-genome-analysis/data/TestSet" failed: No such file or directory (2)
rsync error: error in file IO (code 11) at /BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-52/rsync/main.c(545) [receiver=2.6.9]
rsync: connection unexpectedly closed (8 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at /BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-52/rsync/io.c(453) [sender=2.6.9]

Then I check my localhost server http://localhost:8000/ and cannot find my data.

Do you have any idea what I am doing wrong??????

Thanks a lot for your help.

Cheers,
Pablo

@rneher
Copy link
Member

rneher commented Dec 9, 2018

The problem is that the -s flag is only supposed to be the name of your run, i.e. TestSet in your case. cd into /Users/pablovargas/pan-genome-analysis and then execute
./link-to-server.py -s TestSet -v /Users/pablovargas/pan-genome-analysis/pan-genome-visualization

@pavlo888
Copy link
Author

pavlo888 commented Dec 9, 2018 via email

@stheil15
Copy link

Same problem here !

@rneher
Copy link
Member

rneher commented Dec 20, 2018

Please check the following:

  • is the panX output in pan-genome-visulation/public/dataset?
  • is a .js file corresponding to your species in routes?
  • is a .jade file corresponding to your species in views?

The latter two are created from the TestSet.js and TestSet.jade templates in the respective folders. The former should be a copy of the vis folder from the pan-genome-analysis output -- the link-to-server.py script does that copying but you can copy it yourself as well.

@stheil15
Copy link

Works for me now.
I was expecting the TestSet to appear in the list of organisms. But I scroll down to your FAQ part and I saw that I need to type : localhost:8000/TestSet to visualise my data.
Thank for your answer.

@stheil15
Copy link

After the TestSet, i've tried to launch it on a part of my own data. The pan-analysis seems to be ok. but when I link it to the pan-visualization and I log into the localhost:8000/my_specie, everything is empty:
image

In the chrome dev tool, i see this errors :
image

And surprisingly, the file is filled with html code when visualized in Chrome, but with java code when open from the file system (pan-genome-visualization/public/dataset/my_specie/metaConfiguration.js)

@rneher
Copy link
Member

rneher commented Dec 21, 2018

that's weird. check which file the browser is actually requesting (and hit ctrl-U to check the exact path of the script -- somewhere at the bottom).

@rneher
Copy link
Member

rneher commented Dec 30, 2018

when you open the file in your browser and it doesn't exist, you'll the the server's error page which is html.

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

3 participants