Skip to content

Commit 847dee1

Browse files
Update db to 2023-11-09 (#16)
1 parent 095e350 commit 847dee1

File tree

10 files changed

+7421
-5166
lines changed

10 files changed

+7421
-5166
lines changed
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
signature contribution
2+
SBS1 0.003389830508474576
3+
SBS2 0.0
4+
SBS3 0.0
5+
SBS4 0.0
6+
SBS5 0.22372881355932203
7+
SBS6 0.0
8+
SBS7a 0.423728813559322
9+
SBS7b 0.0
10+
SBS7c 0.0
11+
SBS7d 0.0
12+
SBS8 0.0
13+
SBS9 0.0
14+
SBS10a 0.0
15+
SBS10b 0.11864406779661017
16+
SBS10c 0.0
17+
SBS10d 0.0
18+
SBS11 0.0
19+
SBS12 0.0
20+
SBS13 0.0
21+
SBS14 0.0
22+
SBS15 0.0
23+
SBS16 0.0
24+
SBS17a 0.0
25+
SBS17b 0.0
26+
SBS18 0.0
27+
SBS19 0.0
28+
SBS20 0.0
29+
SBS21 0.0
30+
SBS22 0.0
31+
SBS23 0.0
32+
SBS24 0.0
33+
SBS25 0.0
34+
SBS26 0.0
35+
SBS27 0.0
36+
SBS28 0.0
37+
SBS29 0.0
38+
SBS30 0.2305084745762712
39+
SBS31 0.0
40+
SBS32 0.0
41+
SBS33 0.0
42+
SBS34 0.0
43+
SBS35 0.0
44+
SBS36 0.0
45+
SBS37 0.0
46+
SBS38 0.0
47+
SBS39 0.0
48+
SBS40 0.0
49+
SBS41 0.0
50+
SBS42 0.0
51+
SBS43 0.0
52+
SBS44 0.0
53+
SBS45 0.0
54+
SBS46 0.0
55+
SBS47 0.0
56+
SBS48 0.0
57+
SBS49 0.0
58+
SBS50 0.0
59+
SBS51 0.0
60+
SBS52 0.0
61+
SBS53 0.0
62+
SBS54 0.0
63+
SBS55 0.0
64+
SBS56 0.0
65+
SBS57 0.0
66+
SBS58 0.0
67+
SBS59 0.0
68+
SBS60 0.0
69+
SBS84 0.0
70+
SBS85 0.0
71+
SBS86 0.0
72+
SBS87 0.0
73+
SBS88 0.0
74+
SBS89 0.0
75+
SBS90 0.0
76+
SBS91 0.0
77+
SBS92 0.0
78+
SBS93 0.0
79+
SBS94 0.0
80+
SBS95 0.0
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
Hugo_Symbol NCBI_Build Chromosome Start_position End_position Variant_Classification Reference_Allele Tumor_Seq_Allele1 Tumor_Seq_Allele2 Tumor_Sample_Barcode Matched_Norm_Sample_Barcode Annotation_Transcript Protein_Change t_alt_count t_ref_count
2-
PMPCA 37 9 139312448 139312449 Intron - - G example_tumor_profile example_normal_profile ENST00000371717.3 31 92
3-
C10orf2 37 10 102748300 102748301 Frame_Shift_Del TC TC - example_tumor_profile example_normal_profile ENST00000370228.1 p.L112fs 28 294
1+
Hugo_Symbol NCBI_Build Chromosome Start_position End_position Variant_Classification Variant_Type Reference_Allele Tumor_Seq_Allele1 Tumor_Seq_Allele2 Tumor_Sample_Barcode Matched_Norm_Sample_Barcode Annotation_Transcript Protein_Change t_alt_count t_ref_count
2+
PMPCA 37 9 139312448 139312449 Intron INS - - G example_tumor_profile example_normal_profile ENST00000371717.3 31 92
3+
C10orf2 37 10 102748300 102748301 Frame_Shift_Del DEL TC TC - example_tumor_profile example_normal_profile ENST00000370228.1 p.L112fs 28 294

example_data/example_patient.capture.somatic.snvs.maf

Lines changed: 300 additions & 300 deletions
Large diffs are not rendered by default.

moalmanac/annotator.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,14 +177,15 @@ class Almanac:
177177
implication = datasources.Almanac.implication
178178
implication_map = datasources.Almanac.implication_map
179179
description = datasources.Almanac.description
180-
preferred_assertion = datasources.Almanac.preferred_assertion
181180

182181
source_type = datasources.Almanac.source_type
183182
citation = datasources.Almanac.citation
184183
url = datasources.Almanac.url
185184
doi = datasources.Almanac.doi
186185
pmid = datasources.Almanac.pmid
187186
nct = datasources.Almanac.nct
187+
publication_date = datasources.Almanac.publication_date
188+
last_updated = datasources.Almanac.last_updated
188189

189190
predictive_implication_map = datasources.Almanac.predictive_implication_map
190191

@@ -820,8 +821,8 @@ def select_better_fusion_match(cls, list_of_matches):
820821

821822
@classmethod
822823
def sort_and_subset_matches(cls, table, results_same_ontology, results_diff_ontology):
823-
sort_columns = [cls.implication_map, cls.preferred_assertion]
824-
sort_ascending = [False, False]
824+
sort_columns = [cls.implication_map, cls.publication_date, cls.last_updated]
825+
sort_ascending = [False, False, False]
825826
if results_same_ontology.any():
826827
results_same_ontology_sorted = cls.sort_dataframe(table[results_same_ontology], sort_columns, sort_ascending)
827828
results_same_ontology_records = cls.convert_dataframe_to_records(results_same_ontology_sorted)

moalmanac/colnames.ini

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,14 +165,15 @@ resistance = therapy_resistance
165165
prognosis = favorable_prognosis
166166
implication = predictive_implication
167167
implication_map = predictive_implication_map
168-
preferred_assertion = preferred_assertion
169168
connections = connections
170169
source_type = source_type
171170
citation = citation
172171
url = url
173172
doi = doi
174173
pmid = pmid
175174
nct = nct
175+
publication_date = publication_date
176+
last_updated = last_updated
176177
exac_common = exac_common
177178
exac_af = exac_af
178179
exac_ac = exac_ac
@@ -459,7 +460,6 @@ implication = ${maps:implication}
459460
implication_map = ${maps:implication_map}
460461
connections = ${maps:connections}
461462
description = ${maps:description}
462-
preferred_assertion = ${maps:preferred_assertion}
463463
sensitive_oncotree_code = ${maps:sensitive_oncotree_code}
464464
sensitive_oncotree_term = ${maps:sensitive_oncotree_term}
465465
sensitive_context = ${maps:sensitive_context}
@@ -523,6 +523,8 @@ url = ${maps:url}
523523
doi = ${maps:doi}
524524
pmid = ${maps:pmid}
525525
nct = ${maps:nct}
526+
publication_date = ${maps:publication_date}
527+
last_updated = ${maps:last_updated}
526528
chr = ${maps:chr}
527529
start = ${maps:start}
528530
end = ${maps:end}

moalmanac/config.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ plot_mutational_signatures = on
1010
plot_preclinical_efficacy = on
1111

1212
[versions]
13-
interpreter = 0.4.6
14-
database = v.2023-02-02
13+
interpreter = 0.4.7
14+
database = v.2023-11-09
1515

1616
[exac]
1717
exac_common_af_threshold = 0.001

moalmanac/datasources.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,15 @@ class Datasources:
3737
implication_map = COLNAMES[datasources_section]['implication_map']
3838
connections = COLNAMES[datasources_section]['connections']
3939
description = COLNAMES[datasources_section]['description']
40-
preferred_assertion = COLNAMES[datasources_section]['preferred_assertion']
4140

4241
source_type = COLNAMES[datasources_section]['source_type']
4342
citation = COLNAMES[datasources_section]['citation']
4443
url = COLNAMES[datasources_section]['url']
4544
doi = COLNAMES[datasources_section]['doi']
4645
pmid = COLNAMES[datasources_section]['pmid']
4746
nct = COLNAMES[datasources_section]['nct']
47+
publication_date = COLNAMES[datasources_section]['publication_date']
48+
last_updated = COLNAMES[datasources_section]['last_updated']
4849

4950
sensitivity_matches = COLNAMES[datasources_section]['sensitivity_matches']
5051
resistance_matches = COLNAMES[datasources_section]['resistance_matches']
@@ -122,14 +123,15 @@ class Almanac:
122123
implication = Datasources.implication
123124
implication_map = Datasources.implication_map
124125
description = Datasources.description
125-
preferred_assertion = Datasources.preferred_assertion
126126

127127
source_type = Datasources.source_type
128128
citation = Datasources.citation
129129
url = Datasources.url
130130
doi = Datasources.doi
131131
pmid = Datasources.pmid
132132
nct = Datasources.nct
133+
publication_date = Datasources.publication_date
134+
last_updated = Datasources.last_updated
133135

134136
sensitivity_matches = Datasources.sensitivity_matches
135137
resistance_matches = Datasources.resistance_matches

moalmanac/datasources/moalmanac/create_almanac_db.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ def create_config():
2626
'disease', 'context', 'oncotree_term', 'oncotree_code',
2727
'therapy_name', 'therapy_strategy', 'therapy_type',
2828
'therapy_sensitivity', 'therapy_resistance', 'favorable_prognosis',
29-
'predictive_implication', 'description', 'last_updated', 'preferred_assertion'
29+
'predictive_implication', 'description', 'last_updated'
3030
]
3131

3232
SOURCE_FIELDS = [
33-
'source_type', 'citation', 'url', 'doi', 'pmid', 'nct', 'last_updated'
33+
'source_type', 'citation', 'url', 'doi', 'pmid', 'nct', 'publication_date', 'last_updated'
3434
]
3535

3636
VARIANT_FIELDS = [
@@ -59,7 +59,7 @@ def create_config():
5959
]
6060

6161
MUTATIONAL_SIGNATURE_FIELDS = [
62-
'cosmic_signature_number', 'cosmic_signature_version'
62+
'cosmic_signature'
6363
]
6464

6565
MICROSATELLITE_FIELDS = [
@@ -86,7 +86,7 @@ def copy_number(cls, record):
8686

8787
@classmethod
8888
def cosmic_mutational_signature(cls, record):
89-
return f"Cosmic signature (version {record['cosmic_signature_version']}) {record['cosmic_signature_number']}"
89+
return f"Cosmic signature {record['cosmic_signature']} (version 3.4)"
9090

9191
@classmethod
9292
def germline_variant(cls, record):

0 commit comments

Comments
 (0)