-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Mihai Todor <todormihai@gmail.com>
- Loading branch information
1 parent
797ce2d
commit 4f17a4b
Showing
15 changed files
with
141 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
UTILITIES_DATA_VERSION=113c119 | ||
PYARD_DATABASE_VERSION=3580 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,5 @@ | |
__pycache__ | ||
.venv | ||
utilities/FASTA | ||
utilities/mongo_utilities.py | ||
utilities/mongo_utilities.py | ||
/data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3.11.6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
web: gunicorn run:app | ||
web: ./fetch_utilities_data.sh && gunicorn run:app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/sh | ||
|
||
set -eu | ||
|
||
. .env | ||
|
||
if [ -d ./data ]; then | ||
echo "files already fetched." | ||
exit 0 | ||
fi | ||
|
||
mkdir -p ./data/pyard | ||
( | ||
cd ./data/pyard | ||
|
||
echo "Downloading py-ard database..." | ||
|
||
curl -sLO https://github.com/FHIR/genomics-operations/releases/download/${UTILITIES_DATA_VERSION}/pyard.sqlite3.tar.gz | ||
|
||
echo "Extracting py-ard database..." | ||
|
||
tar -xzf pyard.sqlite3.tar.gz | ||
|
||
echo "Finished extracting py-ard database." | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"B14": { | ||
"G": "B*14:01:01G/B*14:01:02/B*14:01:03/B*14:01:04/B*14:01:05/B*14:01:06/B*14:01:07/B*14:01:08/B*14:01:12/B*14:01:13/B*14:01:14/B*14:01:15/B*14:02:01G/B*14:02:02/B*14:02:03/B*14:02:04/B*14:02:05/B*14:02:06/B*14:02:07/B*14:02:08/B*14:02:09/B*14:02:10/B*14:02:11/B*14:02:12/B*14:02:13/B*14:02:14/B*14:02:15/B*14:02:16/B*14:02:17/B*14:02:18/B*14:02:19/B*14:02:20/B*14:02:21/B*14:02:22/B*14:02:24/B*14:02:27/B*14:02:28/B*14:02:29/B*14:02:30/B*14:03/B*14:04/B*14:05/B*14:06:01/B*14:06:02/B*14:08:01/B*14:08:02/B*14:09/B*14:10/B*14:11/B*14:12/B*14:13/B*14:14/B*14:15/B*14:16/B*14:17/B*14:18/B*14:19/B*14:20/B*14:21:01/B*14:21:02/B*14:22/B*14:23/B*14:24/B*14:25/B*14:26/B*14:27/B*14:28/B*14:29/B*14:30/B*14:31/B*14:32/B*14:33/B*14:34/B*14:35/B*14:36/B*14:37/B*14:38/B*14:39/B*14:40/B*14:42:01/B*14:42:02/B*14:43/B*14:44/B*14:45/B*14:46/B*14:47/B*14:48/B*14:49/B*14:50/B*14:51/B*14:52/B*14:53/B*14:54/B*14:55/B*14:56/B*14:57/B*14:58/B*14:59/B*14:60/B*14:62/B*14:63/B*14:65/B*14:66/B*14:68/B*14:70Q/B*14:71/B*14:73/B*14:74/B*14:75/B*14:77/B*14:82/B*14:83/B*14:86/B*14:87/B*14:88/B*14:90/B*14:93/B*14:94/B*14:95/B*14:96/B*14:97/B*14:99/B*14:102/B*14:105/B*14:106/B*14:107/B*14:108Q/B*14:110/B*14:111/B*14:112/B*14:114/B*14:116/B*14:117/B*14:118/B*14:119/B*14:120/B*14:122/B*14:123/B*14:124/B*14:125/B*14:127/B*14:128/B*14:129/B*14:130/B*14:133/B*14:134", | ||
"P": "B*14:01P/B*14:02P/B*14:03/B*14:04/B*14:05/B*14:06P/B*14:08P/B*14:09/B*14:10/B*14:11/B*14:12/B*14:13/B*14:14/B*14:15/B*14:16/B*14:17/B*14:18/B*14:19/B*14:20/B*14:21P/B*14:22/B*14:23/B*14:24/B*14:25/B*14:26/B*14:27/B*14:28/B*14:29/B*14:30/B*14:31/B*14:32/B*14:33/B*14:34/B*14:35/B*14:36/B*14:37/B*14:38/B*14:39/B*14:40/B*14:42P/B*14:43/B*14:44/B*14:45/B*14:46/B*14:47/B*14:48/B*14:49/B*14:50/B*14:51/B*14:52/B*14:53/B*14:54/B*14:55/B*14:56/B*14:57/B*14:58/B*14:59/B*14:60/B*14:62/B*14:63/B*14:65/B*14:66/B*14:68/B*14:70Q/B*14:71/B*14:73/B*14:74/B*14:75/B*14:77/B*14:82/B*14:83/B*14:86/B*14:87/B*14:88/B*14:90/B*14:93/B*14:94/B*14:95/B*14:96/B*14:97/B*14:99/B*14:102/B*14:105/B*14:106/B*14:107/B*14:108Q/B*14:110/B*14:111/B*14:112/B*14:114/B*14:116/B*14:117/B*14:118/B*14:119/B*14:120/B*14:122/B*14:123/B*14:124/B*14:125/B*14:127/B*14:128/B*14:129/B*14:130/B*14:133/B*14:134", | ||
"lg": "B*14:01g/B*14:02g/B*14:03g/B*14:04g/B*14:05g/B*14:06g/B*14:08g/B*14:09g/B*14:10g/B*14:11g/B*14:12g/B*14:13g/B*14:14g/B*14:15g/B*14:16g/B*14:17g/B*14:18g/B*14:19g/B*14:20g/B*14:21g/B*14:22g/B*14:23g/B*14:24g/B*14:25g/B*14:26g/B*14:27g/B*14:28g/B*14:29g/B*14:30g/B*14:31g/B*14:32g/B*14:33g/B*14:34g/B*14:35g/B*14:36g/B*14:37g/B*14:38g/B*14:39g/B*14:40g/B*14:42g/B*14:43g/B*14:44g/B*14:45g/B*14:46g/B*14:47g/B*14:48g/B*14:49g/B*14:50g/B*14:51g/B*14:52g/B*14:53g/B*14:54g/B*14:55g/B*14:56g/B*14:57g/B*14:58g/B*14:59g/B*14:60g/B*14:62g/B*14:63g/B*14:65g/B*14:66g/B*14:68g/B*14:70Qg/B*14:71g/B*14:73g/B*14:74g/B*14:75g/B*14:77g/B*14:82g/B*14:83g/B*14:86g/B*14:87g/B*14:88g/B*14:90g/B*14:93g/B*14:94g/B*14:95g/B*14:96g/B*14:97g/B*14:99g/B*14:102g/B*14:105g/B*14:106g/B*14:107g/B*14:108Qg/B*14:110g/B*14:111g/B*14:112g/B*14:114g/B*14:116g/B*14:117g/B*14:118g/B*14:119g/B*14:120g/B*14:122g/B*14:123g/B*14:124g/B*14:125g/B*14:127g/B*14:128g/B*14:129g/B*14:130g/B*14:133g/B*14:134g", | ||
"lgx": "B*14:01/B*14:02/B*14:03/B*14:04/B*14:05/B*14:06/B*14:08/B*14:09/B*14:10/B*14:11/B*14:12/B*14:13/B*14:14/B*14:15/B*14:16/B*14:17/B*14:18/B*14:19/B*14:20/B*14:21/B*14:22/B*14:23/B*14:24/B*14:25/B*14:26/B*14:27/B*14:28/B*14:29/B*14:30/B*14:31/B*14:32/B*14:33/B*14:34/B*14:35/B*14:36/B*14:37/B*14:38/B*14:39/B*14:40/B*14:42/B*14:43/B*14:44/B*14:45/B*14:46/B*14:47/B*14:48/B*14:49/B*14:50/B*14:51/B*14:52/B*14:53/B*14:54/B*14:55/B*14:56/B*14:57/B*14:58/B*14:59/B*14:60/B*14:62/B*14:63/B*14:65/B*14:66/B*14:68/B*14:70Q/B*14:71/B*14:73/B*14:74/B*14:75/B*14:77/B*14:82/B*14:83/B*14:86/B*14:87/B*14:88/B*14:90/B*14:93/B*14:94/B*14:95/B*14:96/B*14:97/B*14:99/B*14:102/B*14:105/B*14:106/B*14:107/B*14:108Q/B*14:110/B*14:111/B*14:112/B*14:114/B*14:116/B*14:117/B*14:118/B*14:119/B*14:120/B*14:122/B*14:123/B*14:124/B*14:125/B*14:127/B*14:128/B*14:129/B*14:130/B*14:133/B*14:134", | ||
"W": "B*14:01:01:01/B*14:01:01:02/B*14:01:01:03/B*14:01:01:04/B*14:01:01:05/B*14:01:01:06/B*14:01:01:07/B*14:01:01:08/B*14:01:01:09/B*14:01:01:10/B*14:01:01:11/B*14:01:01:12/B*14:01:02/B*14:01:03/B*14:01:04/B*14:01:05/B*14:01:06/B*14:01:07/B*14:01:08/B*14:01:09/B*14:01:10/B*14:01:11/B*14:01:12/B*14:01:13/B*14:01:14/B*14:01:15/B*14:02:01:01/B*14:02:01:02/B*14:02:01:03/B*14:02:01:04/B*14:02:01:05/B*14:02:01:06/B*14:02:01:07/B*14:02:01:08/B*14:02:01:09/B*14:02:01:10/B*14:02:01:11/B*14:02:01:12/B*14:02:01:13/B*14:02:01:14/B*14:02:01:15/B*14:02:01:16/B*14:02:01:17/B*14:02:01:18/B*14:02:01:19/B*14:02:01:20/B*14:02:01:21/B*14:02:01:22/B*14:02:01:23/B*14:02:01:24/B*14:02:01:25Q/B*14:02:01:26/B*14:02:01:27/B*14:02:01:28/B*14:02:01:29/B*14:02:01:30/B*14:02:02/B*14:02:03/B*14:02:04/B*14:02:05/B*14:02:06/B*14:02:07/B*14:02:08/B*14:02:09/B*14:02:10/B*14:02:11/B*14:02:12/B*14:02:13/B*14:02:14/B*14:02:15/B*14:02:16/B*14:02:17/B*14:02:18/B*14:02:19/B*14:02:20/B*14:02:21/B*14:02:22/B*14:02:23/B*14:02:24/B*14:02:25/B*14:02:26/B*14:02:27/B*14:02:28/B*14:02:29/B*14:02:30/B*14:02:31:01/B*14:02:31:02/B*14:03/B*14:04/B*14:05/B*14:06:01/B*14:06:02/B*14:08:01/B*14:08:02/B*14:09/B*14:10/B*14:11/B*14:12/B*14:13/B*14:14/B*14:15/B*14:16/B*14:17/B*14:18/B*14:19/B*14:20/B*14:21:01/B*14:21:02/B*14:22/B*14:23/B*14:24/B*14:25/B*14:26/B*14:27/B*14:28/B*14:29/B*14:30/B*14:31/B*14:32/B*14:33/B*14:34/B*14:35/B*14:36/B*14:37/B*14:38/B*14:39/B*14:40/B*14:42:01/B*14:42:02/B*14:43/B*14:44/B*14:45/B*14:46/B*14:47/B*14:48/B*14:49/B*14:50/B*14:51/B*14:52/B*14:53/B*14:54/B*14:55/B*14:56/B*14:57/B*14:58/B*14:59/B*14:60/B*14:61/B*14:62/B*14:63/B*14:64/B*14:65/B*14:66/B*14:67/B*14:68/B*14:70Q/B*14:71/B*14:73/B*14:74/B*14:75/B*14:77/B*14:78/B*14:80/B*14:81/B*14:82/B*14:83/B*14:84/B*14:86/B*14:87/B*14:88/B*14:89/B*14:90/B*14:91/B*14:92/B*14:93/B*14:94/B*14:95/B*14:96/B*14:97/B*14:98/B*14:99/B*14:102/B*14:103/B*14:104/B*14:105/B*14:106/B*14:107/B*14:108Q/B*14:109/B*14:110/B*14:111/B*14:112/B*14:114/B*14:115/B*14:116/B*14:117/B*14:118/B*14:119/B*14:120/B*14:121/B*14:122/B*14:123/B*14:124/B*14:125/B*14:126/B*14:127/B*14:128/B*14:129/B*14:130/B*14:132/B*14:133/B*14:134", | ||
"exon": "B*14:01:01/B*14:01:02/B*14:01:03/B*14:01:04/B*14:01:05/B*14:01:06/B*14:01:07/B*14:01:08/B*14:01:09/B*14:01:10/B*14:01:11/B*14:01:12/B*14:01:13/B*14:01:14/B*14:01:15/B*14:02:01/B*14:02:01Q/B*14:02:02/B*14:02:03/B*14:02:04/B*14:02:05/B*14:02:06/B*14:02:07/B*14:02:08/B*14:02:09/B*14:02:10/B*14:02:11/B*14:02:12/B*14:02:13/B*14:02:14/B*14:02:15/B*14:02:16/B*14:02:17/B*14:02:18/B*14:02:19/B*14:02:20/B*14:02:21/B*14:02:22/B*14:02:23/B*14:02:24/B*14:02:25/B*14:02:26/B*14:02:27/B*14:02:28/B*14:02:29/B*14:02:30/B*14:02:31/B*14:03/B*14:04/B*14:05/B*14:06:01/B*14:06:02/B*14:08:01/B*14:08:02/B*14:09/B*14:10/B*14:11/B*14:12/B*14:13/B*14:14/B*14:15/B*14:16/B*14:17/B*14:18/B*14:19/B*14:20/B*14:21:01/B*14:21:02/B*14:22/B*14:23/B*14:24/B*14:25/B*14:26/B*14:27/B*14:28/B*14:29/B*14:30/B*14:31/B*14:32/B*14:33/B*14:34/B*14:35/B*14:36/B*14:37/B*14:38/B*14:39/B*14:40/B*14:42:01/B*14:42:02/B*14:43/B*14:44/B*14:45/B*14:46/B*14:47/B*14:48/B*14:49/B*14:50/B*14:51/B*14:52/B*14:53/B*14:54/B*14:55/B*14:56/B*14:57/B*14:58/B*14:59/B*14:60/B*14:61/B*14:62/B*14:63/B*14:64/B*14:65/B*14:66/B*14:67/B*14:68/B*14:70Q/B*14:71/B*14:73/B*14:74/B*14:75/B*14:77/B*14:78/B*14:80/B*14:81/B*14:82/B*14:83/B*14:84/B*14:86/B*14:87/B*14:88/B*14:89/B*14:90/B*14:91/B*14:92/B*14:93/B*14:94/B*14:95/B*14:96/B*14:97/B*14:98/B*14:99/B*14:102/B*14:103/B*14:104/B*14:105/B*14:106/B*14:107/B*14:108Q/B*14:109/B*14:110/B*14:111/B*14:112/B*14:114/B*14:115/B*14:116/B*14:117/B*14:118/B*14:119/B*14:120/B*14:121/B*14:122/B*14:123/B*14:124/B*14:125/B*14:126/B*14:127/B*14:128/B*14:129/B*14:130/B*14:132/B*14:133/B*14:134", | ||
"U2": "B*14:01/B*14:02/B*14:02Q/B*14:03/B*14:04/B*14:05/B*14:06/B*14:08/B*14:09/B*14:10/B*14:11/B*14:12/B*14:13/B*14:14/B*14:15/B*14:16/B*14:17/B*14:18/B*14:19/B*14:20/B*14:21/B*14:22/B*14:23/B*14:24/B*14:25/B*14:26/B*14:27/B*14:28/B*14:29/B*14:30/B*14:31/B*14:32/B*14:33/B*14:34/B*14:35/B*14:36/B*14:37/B*14:38/B*14:39/B*14:40/B*14:42/B*14:43/B*14:44/B*14:45/B*14:46/B*14:47/B*14:48/B*14:49/B*14:50/B*14:51/B*14:52/B*14:53/B*14:54/B*14:55/B*14:56/B*14:57/B*14:58/B*14:59/B*14:60/B*14:61/B*14:62/B*14:63/B*14:64/B*14:65/B*14:66/B*14:67/B*14:68/B*14:70Q/B*14:71/B*14:73/B*14:74/B*14:75/B*14:77/B*14:78/B*14:80/B*14:81/B*14:82/B*14:83/B*14:84/B*14:86/B*14:87/B*14:88/B*14:89/B*14:90/B*14:91/B*14:92/B*14:93/B*14:94/B*14:95/B*14:96/B*14:97/B*14:98/B*14:99/B*14:102/B*14:103/B*14:104/B*14:105/B*14:106/B*14:107/B*14:108Q/B*14:109/B*14:110/B*14:111/B*14:112/B*14:114/B*14:115/B*14:116/B*14:117/B*14:118/B*14:119/B*14:120/B*14:121/B*14:122/B*14:123/B*14:124/B*14:125/B*14:126/B*14:127/B*14:128/B*14:129/B*14:130/B*14:132/B*14:133/B*14:134", | ||
"S": "B14/B64/B65" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import tests.utilities as tu | ||
|
||
""" | ||
Normalize HLA Utility Tests | ||
-------------------------------- | ||
""" | ||
|
||
|
||
def test_normalize_hla_utility(client): | ||
url = tu.normalize_hla_utility_query('allele=B14') | ||
response = client.get(url) | ||
|
||
assert response.status_code == 200 | ||
|
||
# This utility is not deterministic for a few output items such as `exon` and `U2` | ||
# tu.compare_actual_and_expected_output(f'{tu.NORMALIZE_HLA_OUTPUT_DIR}1.json', response.json) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters