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

Remove json resources in package #84

Merged
merged 9 commits into from
Dec 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: Ruff
on: [ push, pull_request ]
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: chartboost/ruff-action@v1
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
Expand All @@ -21,9 +21,9 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
Expand Down
19 changes: 9 additions & 10 deletions browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,16 @@
ix = "https://s3.amazonaws.com/jbrowse.org/genomes/GRCh38/trix/hg38.ix"
ixx = "https://s3.amazonaws.com/jbrowse.org/genomes/GRCh38/trix/hg38.ixx"
meta = "https://s3.amazonaws.com/jbrowse.org/genomes/GRCh38/trix/meta.json"
jbrowse_conf.set_assembly(assembly_data,
aliases=aliases,
refname_aliases=ref_name_aliases)
jbrowse_conf.set_assembly(
assembly_data, aliases=aliases, refname_aliases=ref_name_aliases
)

# add a track
track_data = "https://s3.amazonaws.com/jbrowse.org/genomes/" \
"GRCh38/ncbi_refseq/GCA_000001405.15_GRCh38_full" \
"_analysis_set.refseq_annotation.sorted.gff.gz"
track_data = (
"https://s3.amazonaws.com/jbrowse.org/genomes/"
"GRCh38/ncbi_refseq/GCA_000001405.15_GRCh38_full"
"_analysis_set.refseq_annotation.sorted.gff.gz"
)
jbrowse_conf.add_track(track_data, name="test-demo", track_id="test-track")
# deleting a track
jbrowse_conf.add_track(track_data, name="delete", track_id="test-delete-track")
Expand All @@ -50,10 +52,7 @@
component = create_component(config)

# launch the component
app.layout = html.Div(
[component],
id='test'
)
app.layout = html.Div([component], id="test")

if __name__ == "__main__":
app.run_server(port=3001, debug=True)
67 changes: 0 additions & 67 deletions jbrowse_jupyter/data/hg19.json

This file was deleted.

79 changes: 0 additions & 79 deletions jbrowse_jupyter/data/hg19_cgv.json

This file was deleted.

71 changes: 0 additions & 71 deletions jbrowse_jupyter/data/hg38.json

This file was deleted.

45 changes: 0 additions & 45 deletions jbrowse_jupyter/data/hg38_cgv.json

This file was deleted.

3 changes: 2 additions & 1 deletion jbrowse_jupyter/dev_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ def send_head(self):
last = file_len - 1
response_length = last - first + 1

self.send_header("Content-Range", "bytes %s-%s/%s" % (first, last, file_len))
self.send_header("Content-Range", "bytes %s-%s/%s" %
(first, last, file_len))
self.send_header("Content-Length", str(response_length))
self.send_header("Last-Modified", self.date_time_string(fs.st_mtime))
self.end_headers()
Expand Down
Loading