Skip to content

Commit

Permalink
update transcript segment element location
Browse files Browse the repository at this point in the history
  • Loading branch information
korikuzma committed Aug 22, 2024
1 parent 6c5c8a3 commit 29ecc8c
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 20 deletions.
26 changes: 13 additions & 13 deletions src/fusor/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,26 +170,26 @@ def check_exons(cls, values):
"label": "TPM3",
},
"elementGenomicStart": {
"id": "ga4gh:SL.2K1vML0ofuYrYncrzzXUQOISRFJldZrO",
"id": "ga4gh:SL.Q8vkGp7_xR9vI0PQ7g1IvUUeQ4JlJG8l",
"digest": "Q8vkGp7_xR9vI0PQ7g1IvUUeQ4JlJG8l",
"type": "SequenceLocation",
"sequenceReference": {
"id": "refseq:NC_000001.11",
"type": "SequenceReference",
"refgetAccession": "SQ.Ya6Rs7DHhDeg7YaOSg1EoNi3U_nQ9SvO",
},
"start": 154192135,
"end": 154192136,
"end": 154192135,
},
"elementGenomicEnd": {
"id": "ga4gh:SL.rtR6x2NnJEpROlxiT_DY9C-spf6ijYQi",
"id": "ga4gh:SL.Lnne0bSsgjzmNkKsNnXg98FeJSrDJuLb",
"digest": "Lnne0bSsgjzmNkKsNnXg98FeJSrDJuLb",
"type": "SequenceLocation",
"sequenceReference": {
"id": "refseq:NC_000001.11",
"type": "SequenceReference",
"refgetAccession": "SQ.Ya6Rs7DHhDeg7YaOSg1EoNi3U_nQ9SvO",
},
"start": 154170399,
"end": 154170400,
},
}
},
Expand Down Expand Up @@ -703,26 +703,26 @@ class CategoricalFusion(AbstractFusion):
"label": "TPM3",
},
"elementGenomicStart": {
"id": "ga4gh:SL.2K1vML0ofuYrYncrzzXUQOISRFJldZrO",
"id": "ga4gh:SL.Q8vkGp7_xR9vI0PQ7g1IvUUeQ4JlJG8l",
"digest": "Q8vkGp7_xR9vI0PQ7g1IvUUeQ4JlJG8l",
"type": "SequenceLocation",
"sequenceReference": {
"id": "refseq:NC_000001.11",
"refgetAccession": "SQ.Ya6Rs7DHhDeg7YaOSg1EoNi3U_nQ9SvO",
"type": "SequenceReference",
"refgetAccession": "SQ.Ya6Rs7DHhDeg7YaOSg1EoNi3U_nQ9SvO",
},
"start": 154192135,
"end": 154192136,
"end": 154192135,
},
"elementGenomicEnd": {
"id": "ga4gh:SL.m5_Spfzt1v4sfVw9u4kmuYn7dM7gyNeb",
"id": "ga4gh:SL.Lnne0bSsgjzmNkKsNnXg98FeJSrDJuLb",
"digest": "Lnne0bSsgjzmNkKsNnXg98FeJSrDJuLb",
"type": "SequenceLocation",
"sequenceReference": {
"id": "refseq:NC_000001.11",
"refgetAccession": "SQ.Ya6Rs7DHhDeg7YaOSg1EoNi3U_nQ9SvO",
"type": "SequenceReference",
"refgetAccession": "SQ.Ya6Rs7DHhDeg7YaOSg1EoNi3U_nQ9SvO",
},
"start": 154170398,
"end": 154170399,
"start": 154170399,
},
},
{
Expand Down
12 changes: 8 additions & 4 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,8 @@ def exhaustive_example(alk_gene, braf_gene, tpm3_gene):
"exonEndOffset": 0,
"gene": tpm3_gene,
"elementGenomicStart": {
"id": "ga4gh:SL.2K1vML0ofuYrYncrzzXUQOISRFJldZrO",
"id": "ga4gh:SL.Q8vkGp7_xR9vI0PQ7g1IvUUeQ4JlJG8l",
"digest": "Q8vkGp7_xR9vI0PQ7g1IvUUeQ4JlJG8l",
"description": None,
"xrefs": None,
"alternativeLabels": None,
Expand All @@ -757,7 +758,8 @@ def exhaustive_example(alk_gene, braf_gene, tpm3_gene):
"end": 154192135,
},
"elementGenomicEnd": {
"id": "ga4gh:SL.rtR6x2NnJEpROlxiT_DY9C-spf6ijYQi",
"id": "ga4gh:SL.Lnne0bSsgjzmNkKsNnXg98FeJSrDJuLb",
"digest": "Lnne0bSsgjzmNkKsNnXg98FeJSrDJuLb",
"description": None,
"xrefs": None,
"alternativeLabels": None,
Expand Down Expand Up @@ -866,7 +868,8 @@ def fusion_example():
"id": "hgnc:12012",
},
"elementGenomicStart": {
"id": "ga4gh:SL.2K1vML0ofuYrYncrzzXUQOISRFJldZrO",
"id": "ga4gh:SL.Q8vkGp7_xR9vI0PQ7g1IvUUeQ4JlJG8l",
"digest": "Q8vkGp7_xR9vI0PQ7g1IvUUeQ4JlJG8l",
"description": None,
"xrefs": None,
"alternativeLabels": None,
Expand All @@ -880,7 +883,8 @@ def fusion_example():
"end": 154192135,
},
"elementGenomicEnd": {
"id": "ga4gh:SL.rtR6x2NnJEpROlxiT_DY9C-spf6ijYQi",
"id": "ga4gh:SL.Lnne0bSsgjzmNkKsNnXg98FeJSrDJuLb",
"digest": "Lnne0bSsgjzmNkKsNnXg98FeJSrDJuLb",
"description": None,
"xrefs": None,
"alternativeLabels": None,
Expand Down
6 changes: 3 additions & 3 deletions tests/test_nomenclature.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def tx_seg_example():
exonEndOffset=0,
gene=Gene(id="hgnc:12012", label="TPM3"),
elementGenomicStart={
"id": "ga4gh:SL.2K1vML0ofuYrYncrzzXUQOISRFJldZrO",
"id": "ga4gh:SL.Q8vkGp7_xR9vI0PQ7g1IvUUeQ4JlJG8l",
"type": "SequenceLocation",
"sequenceReference": {
"id": "refseq:NC_000001.11",
Expand All @@ -156,7 +156,7 @@ def tx_seg_example():
"end": 154192135,
},
elementGenomicEnd={
"id": "ga4gh:SL.rtR6x2NnJEpROlxiT_DY9C-spf6ijYQi",
"id": "ga4gh:SL.Lnne0bSsgjzmNkKsNnXg98FeJSrDJuLb",
"type": "SequenceLocation",
"sequenceReference": {
"id": "refseq:NC_000001.11",
Expand All @@ -182,7 +182,7 @@ def junction_example():
"id": "hgnc:12012",
},
elementGenomicEnd={
"id": "ga4gh:SL.rtR6x2NnJEpROlxiT_DY9C-spf6ijYQi",
"id": "ga4gh:SL.Lnne0bSsgjzmNkKsNnXg98FeJSrDJuLb",
"type": "SequenceLocation",
"sequenceReference": {
"id": "refseq:NC_000001.11",
Expand Down

0 comments on commit 29ecc8c

Please sign in to comment.