Comments (11)
@arpanda Where are these commands being ran import subprocess subprocess.Popen(["python3", "server.py"])
? Could you share what command was used to add the track or additional steps that were taken to configure the track?
The server provided by JBrowse has range request enabled. It is possible to view bw files with the server provided by JBrowse. Here is a screenshot of a bw file that i have in my local directory and have served using the JBrowse dev server and rendered in colab
from jbrowse-jupyter.
@arpanda Is there a specific reason why you are using that to run the python script vs just $ python serve.py?
from jbrowse-jupyter.
@arpanda I just replicated your steps with your script and your command, and I was able to get it to work with subprocess.
Any chance you have cookies blocked? If so you may need to enable cookies like this https://stackoverflow.com/questions/53581023/google-colab-file-download-failed-to-fetch-error/53582239#53582239
from jbrowse-jupyter.
That's great. But I am still getting similar errors.
Here is the code that I used to create tracks.
assembly_data = "https://jbrowse.org/genomes/CHM13/fasta/chm13v2.0.fa.gz"
ref_name_aliases = {
"adapter": {
"type": "RefNameAliasAdapter",
"location": {"uri": "https://hgdownload.soe.ucsc.edu/goldenPath/hs1/bigZips/hs1.chromAlias.txt"},
},
}
chm13 = create('LGV')
chm13.set_assembly(assembly_data, aliases=["chm13v2"], refname_aliases=ref_name_aliases)
chm13.set_location("chr10:100..350")
# add a track
track_data = "https://jbrowse.org/genomes/CHM13/gff/chm13v2.0.gff.gz"
chm13.add_track(track_data, name="test-demo", track_id="test-track")
track_data="http://127.0.0.1:8082/his_rd_p_10000.bw"
chm13.add_track(track_data, track_id="bw1")
chm13.set_default_session(['bw'], False)
new_conf = chm13.get_config()
launch(new_conf, port=3013, height=400)
Here is the link of my colab . https://colab.research.google.com/drive/15swbptXiCOoOAxZGnfb0Ve_urQbZ71RO?usp=sharing
I am using Mozilla and don't think there is any cookie block enabled.
from jbrowse-jupyter.
@arpanda is your his_rd_p_10000.bw in the same place where your serve.py gets created? Your fourth cell should output serve.py and his_rd_p_10000.bw under the directory listing. I ran your notebook and the only thing that I changed was the bw file since I do not have access to yours, and I uploaded it to the same directory where the serve.py exists. It ran fine for me. There is also a typo in your code chm13.add_track(track_data, track_id="bw1") chm13.set_default_session(['bw'], False)
where bw1 and bw should be the same but I am assuming it was fixed since it does not exist in your shared colab notebook. Another thing that you can do to get additional info, is to change launch(new_conf, port=3013, height=400, mode="external") then you will able to click the link and inspect or look at the console for more error messages.
from jbrowse-jupyter.
The path for his_rd_p_10000.bw
is in the same place where server.py
gets created and I also fixed the track_id. The only difference is with the bigwig file. I m not sure what's going on and still facing the issue.
Maybe sharing the bigwig file helps. but GitHub don't support bw file sharing directly. So I zipped it.
his_rd_p_10000.bw.zip
from jbrowse-jupyter.
@arpanda Have you tried running this on Chrome out of curiosity? I am attempting to debug, and it seems like it could be an issue with mixed content on Mozilla firefox. Before jumping into that conclusion, I wanted to make sure it also did not run in Chrome.
from jbrowse-jupyter.
@arpanda Just added your file and it is running on Chrome.
https://colab.research.google.com/drive/1pylspdKFvTQsuNu8dEip7XCRvO4Hc887?usp=sharing
from jbrowse-jupyter.
I tried with Chrome too but still facing the same issue. The error message is slightly different.
Chrome output
Firefox Mozila output
Note I enabled the third party cookies for chrome too.
It's probably something with system setting as you'r able to run the same google colab file with same input data.
from jbrowse-jupyter.
@arpanda
Do you have any blocking extensions on chrome? This is how my chrome is set up
from jbrowse-jupyter.
maybe close for now.... let me know if there are any updates @arpanda
from jbrowse-jupyter.
Related Issues (20)
- Binder support HOT 5
- Does this library need to be re-released to get new versions of @jbrowse/react-linear-genome-view HOT 4
- Add Dash JBrowse Circular Genome View
- 504 errors with binder and jupyter lab HOT 1
- werkzeug > 2.0.3 throws errors HOT 2
- JBrowseConfig class system and additional utility functions HOT 1
- Local file support HOT 2
- Integration with other bioinformatics libraries HOT 1
- Colab example, reason for using github for pip install? HOT 7
- Move pytest to tests_require in setup.py HOT 2
- Support callback functions HOT 1
- CHM13 genome configuration HOT 4
- Convert or add anywidget implementation(?) HOT 7
- Colab link failing with latest release of dash_jbrowse(?) HOT 3
- make the uri scheme a setting
- More example usages
- Add ability to use JBrowse 2 config file
- Add ability to use @jbrowse/react-app
- Programmatic control of the instance after launch HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jbrowse-jupyter.