Skip to content

Instantly share code, notes, and snippets.

View jsstevenson's full-sized avatar

James Stevenson jsstevenson

View GitHub Profile
@jsstevenson
jsstevenson / Default.sublime-theme
Created September 23, 2017 19:18 — forked from MrDrews/Default.sublime-theme
Solarized (dark) -- Complement the stock Solarized (dark) theme in sublime text 3 by placing this `Default.sublime-theme` inside the `Packages/User` folder. It will recolor the sidebar.
[
{
"class": "sidebar_container",
// $base02: #839496
"layer0.tint": [131,148,150],
"layer0.opacity": 1.0,
"layer0.draw_center": false,
"layer0.inner_margin": [0, 0, 1.5, 0],
"content_margin": [0, 0, 1, 0]
@jsstevenson
jsstevenson / MathTables.java
Created April 28, 2018 19:41
CSC 142 program assignment 4 -- help?
import java.io.*;
import java.util.*;
public class MathTables {
public static void main(String[] args) throws FileNotFoundException{
Scanner input;
input = new Scanner(new File("500names.txt")).useDelimiter("\\n");
for (int i = 1; i <= 8; i++) {
@jsstevenson
jsstevenson / schemas-scratch.py
Last active February 1, 2021 14:08
response schemas scratch
class NormalizationService(BaseModel):
query: str
warnings: Optional[Dict]
match_type: MatchType
record: Optional[MergedMatch]
meta_: NormalizationMeta
class NormalizationMeta(BaseModel):
Sources: Optional[List[SourceMeta]],
# either
@jsstevenson
jsstevenson / disease-norm-missing-concepts.txt
Created February 24, 2021 15:17
logs for missing concepts in disease normalization
[2021-02-24 09:46:35,622] ERROR : generate_merged_record could not retrieve record for ncit:C3134 in {'mondo:0007547', 'ncit:C3134'}
[2021-02-24 09:46:35,814] ERROR : generate_merged_record could not retrieve record for ncit:C39594 in {'DOID:0050486', 'ncit:C39594', 'mondo:0006547'}
[2021-02-24 09:46:38,084] ERROR : generate_merged_record could not retrieve record for ncit:C35463 in {'ncit:C35463', 'mondo:0006410'}
[2021-02-24 09:46:38,579] ERROR : generate_merged_record could not retrieve record for ncit:C35530 in {'mondo:0002249', 'ncit:C35530', 'DOID:2228'}
[2021-02-24 09:46:40,443] ERROR : generate_merged_record could not retrieve record for ncit:C98923 in {'ncit:C98923', 'mondo:0019759'}
[2021-02-24 09:46:40,896] ERROR : generate_merged_record could not retrieve record for ncit:C34440 in {'DOID:12129', 'ncit:C34440', 'mondo:0005452'}
[2021-02-24 09:46:41,279] ERROR : generate_merged_record could not retrieve record for ncit:C34525 in {'DOID:8725', 'ncit:C34525', 'mondo:0004648'}
[2021-02-24 09:46:42,275]
@jsstevenson
jsstevenson / vod_disease.json
Created March 4, 2021 21:24
disease descriptor example
{
"query": "leukemia",
"value_object_descriptor": {
"id": "normalize:leukemia",
"type": "DiseaseDescriptor",
"value": {
"type": "Disease",
"disease_id": "ncit:C3161"
},
"label": "Leukemia",
Installing 'disease'
$ ['/home/runner/.local/share/virtualenvs/disease-normalization-8woWQCgP/bin/pip', 'install', '--verbose', '--upgrade', '--no-deps', '--exists-action=i', '-r', '/tmp/pipenv-s4bq127h-requirements/pipenv-w6lzd_to-requirement.txt', '-i', 'https://pypi.org/simple']
Using source directory: '/home/runner/.local/share/virtualenvs/disease-normalization-8woWQCgP/src'
Using pip 21.0.1 from /home/runner/.local/share/virtualenvs/disease-normalization-8woWQCgP/lib/python3.8/site-packages/pip (python 3.8)
Non-user install by explicit request
Created temporary directory: /tmp/pip-ephem-wheel-cache-ttkklpp3
Created temporary directory: /tmp/pip-req-tracker-xa3ram68
Initialized build tracking at /tmp/pip-req-tracker-xa3ram68
Created build tracker: /tmp/pip-req-tracker-xa3ram68
Entered build tracker: /tmp/pip-req-tracker-xa3ram68
@jsstevenson
jsstevenson / normalization_misses.txt
Created April 7, 2021 14:42
Log output from CIVIC, MOA transforms
[2021-04-07 09:49:50,948] WARNING : variant-normalizer does not support moa:vid1.
[2021-04-07 09:49:50,948] WARNING : Variant BCR--ABL1 Fusion could not be found in variant normalizer.
[2021-04-07 09:49:51,027] WARNING : variant-normalizer does not support moa:vid2.
[2021-04-07 09:49:51,027] WARNING : Variant BCR--ABL1 Fusion could not be found in variant normalizer.
[2021-04-07 09:49:51,091] WARNING : variant-normalizer does not support moa:vid3.
[2021-04-07 09:49:51,091] WARNING : Variant BCR--ABL1 Fusion could not be found in variant normalizer.
[2021-04-07 09:49:51,155] WARNING : variant-normalizer does not support moa:vid4.
[2021-04-07 09:49:51,155] WARNING : Variant BCR--ABL1 Fusion could not be found in variant normalizer.
[2021-04-07 09:49:51,221] WARNING : variant-normalizer does not support moa:vid5.
[2021-04-07 09:49:51,221] WARNING : Variant BCR--ABL1 Fusion could not be found in variant normalizer.
TALL and T-Cell Acute Lymphoid Leukemia, 6
T-Cell Acute Lymphoid Leukemia, 6
@jsstevenson
jsstevenson / hemonc-no-normalize.txt
Created April 21, 2021 12:45
HemOnc.org conditions terms that fail to normalize
5 [2021-04-21 08:41:52,076] WARNING : Normalization of condition id: 672 , Thrombocytopenia in liver disease, failed.
6 [2021-04-21 08:41:55,704] WARNING : Normalization of condition id: 46090 , CNS cancer, failed.
7 [2021-04-21 08:41:55,899] WARNING : Normalization of condition id: 587 , Cutaneous basal cell carcinoma, failed.
8 [2021-04-21 08:42:01,069] WARNING : Normalization of condition id: 46076 , Gastrointestinal cancer, failed.
9 [2021-04-21 08:42:02,548] WARNING : Normalization of condition id: 682 , Waldenstroem macroglobulinemia, failed.
10 [2021-04-21 08:42:04,615] WARNING : Normalization of condition id: 46090 , CNS cancer, failed.
11 [2021-04-21 08:42:04,771] WARNING : Normalization of condition id: 672 , Thrombocytopenia in liver disease, failed.
12 [2021-04-21 08:42:08,360] WARNING : Normalization of condition id: 25309 , Non-small cell lung cancer Nonsquamous, failed.
13 [2021-04-21 08:42:08,377] WARNING : Normalization of condition id: 25316 , Non-sma
@jsstevenson
jsstevenson / vod_with_hemonc_extensions.json
Created April 22, 2021 12:46
VOD example w/ HemOnc.org extension data
{
"query": "rxcui:2555",
"warnings": null,
"match_type": 100,
"value_object_descriptor": {
"id": "normalize.therapy:rxcui%3A2555",
"type": "TherapyDescriptor",
"value": {
"type": "Therapy",
"id": "rxcui:2555"