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

2024 migration #52

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -145,3 +145,4 @@ opt/
TrainingScenarios/CaseFiles/*
TrainingScenarios/CaseFilesGeneBreaker.tar.gz

.DS_Store
4 changes: 2 additions & 2 deletions GeneBreaker/app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
app = Flask(__name__)
app.config.from_pyfile('config.py')
limiter = Limiter(
app,
app=app,
key_func=get_remote_address,
default_limits=["500 per day", "5 per second"]
)

cors = CORS(app, resources={r"/*":
{"origins": ["http://localhost:3000", "http://genebreaker.cmmt.ubc.ca"]}})
{"origins": ["http://localhost:3000", "http://genebreaker.test", "http://genebreaker.cmmt.ubc.ca", "https://genebreaker.test", "https://genebreaker.cmmt.ubc.ca"]}})

import GeneBreaker.app.routes

1 change: 1 addition & 0 deletions GeneBreaker/src/api_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def get_all_results(request_url):

def get_all_transcripts(gene_name, genome):
url = host + '/api/v1/' + genome + '/genes?names='+gene_name
print("request to GUD",url) # TEMP dev aid
# &sources=ncbiRefSeqSelect
refSeqSelect = get_all_results(url + '&sources=ncbiRefSeqSelect')
refSeq = get_all_results(url + '&sources=ncbiRefSeq')
Expand Down
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,19 @@ Downstream Benchmarking can either include full simulation of the variant(s) wit

For details on how to use the downstream benchmarking, please go to the [BenchmarkingTransition/](./BenchmarkingTransition) directory.


## dev notes

### config files:
- GeneBreaker/src/config.ini
```
[DEFAULT]
GUD_HOST = http://gud.host
```
- GeneBreaker/app/config.py
```
SECRET_KEY='a-secret-key'
GUD_HOST='http://gud.host'
```

`FLASK_APP=GeneBreaker.app python -m flask run`

Loading