-
Notifications
You must be signed in to change notification settings - Fork 48
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
Fix liftover #5326
base: main
Are you sure you want to change the base?
Fix liftover #5326
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5326 +/- ##
=======================================
Coverage 84.46% 84.46%
=======================================
Files 326 326
Lines 19961 19958 -3
=======================================
- Hits 16860 16858 -2
+ Misses 3101 3100 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
@@ -10,23 +10,18 @@ | |||
LOG = logging.getLogger(__name__) | |||
|
|||
HEADERS = {"Content-type": "application/json"} | |||
RESTAPI_37 = "https://grch37.rest.ensembl.org" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Back in the day we had this distinction because we had more REST API functions. This is no longer needed now, I think
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah wait a sec, there is one functionality that is not liftover. I'll convert this to a draft again
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah no, it's just a test, nothing used in the code. I think I'll just remove it
|
@responses.activate | ||
def test_send_gene_request(ensembl_gene_response, ensembl_rest_client_37): | ||
"""Test send request with correct params and endpoint""" | ||
url = f"{RESTAPI_37}/overlap/id/ENSG00000103591?feature=gene" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This overlap functionality is not even used in Scout so the test is pointless
This PR adds a functionality or fixes a bug.
Testing on cg-vm1 server (Clinical Genomics Stockholm)
Prepare for testing
scout-stage
and the server iscg-vm1
.ssh <USER.NAME>@cg-vm1.scilifelab.se
sudo -iu hiseq.clinical
ssh localhost
podman ps
systemctl --user stop scout.target
systemctl --user start scout@<this_branch>
systemctl --user status scout.target
scout-stage
) to be used for testing by other users.Testing on hasta server (Clinical Genomics Stockholm)
Prepare for testing
ssh <USER.NAME>@hasta.scilifelab.se
us; paxa -u <user> -s hasta -r scout-stage
. You can also use the WSGI Pax app available at https://pax.scilifelab.se/.conda activate S_scout; pip freeze | grep scout-browser
bash /home/proj/production/servers/resources/hasta.scilifelab.se/update-tool-stage.sh -e S_scout -t scout -b <this_branch>
us; scout --version
paxa
procedure, which will release the allocated resource (scout-stage
) to be used for testing by other users.How to test:
Expected outcome:
The functionality should be working
Take a screenshot and attach or copy/paste the output.
Review: