Skip to content
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!: SequenceLocation start/end for TranscriptSegmentElement #172

Merged
merged 94 commits into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
94 commits
Select commit Hold shift + click to select a range
442083c
build!: remove vrsatile
katiestahl Jul 17, 2024
4a538bb
wip: remove gene descriptor
katiestahl Jul 17, 2024
c0e8626
wip: remove gene descriptor
katiestahl Jul 17, 2024
24e1a4c
progress updating models and adding back gene element wrapper
katiestahl Jul 17, 2024
3e52ff2
adding back gene element
katiestahl Jul 17, 2024
12ee931
Revert "progress updating models and adding back gene element wrapper"
katiestahl Jul 17, 2024
6120473
Revert "adding back gene element"
katiestahl Jul 17, 2024
6573780
converting descriptors
katiestahl Jul 18, 2024
44e0574
remove todo
katiestahl Jul 18, 2024
7796732
wip: adding back GeneElement wrapper, updating to camelCase, removing…
katiestahl Jul 18, 2024
c67d588
updating models
katiestahl Jul 18, 2024
6ad8e33
fix: gene element type
katiestahl Jul 18, 2024
c1e8fad
wip: update constructors with updated param names from models
katiestahl Jul 18, 2024
42d1224
Merge branch 'main' into issue-95-take2
katiestahl Jul 18, 2024
7eabc25
update constructors from model changes
katiestahl Jul 18, 2024
6cd7cfa
Merge branch 'issue-95-take2' of https://github.com/cancervariants/fu…
katiestahl Jul 18, 2024
1e18144
minor fixes
katiestahl Jul 18, 2024
76ef031
fix: updating variable casing
katiestahl Jul 18, 2024
6f740e9
updating docstring
katiestahl Jul 18, 2024
c928b35
fix: variable casing and error messages
katiestahl Jul 18, 2024
a2d2e10
revert featureId back to string
katiestahl Jul 18, 2024
fe85297
Update src/fusor/models.py
katiestahl Jul 19, 2024
eb9da54
Update pyproject.toml
katiestahl Jul 19, 2024
bbae4bc
Update pyproject.toml
katiestahl Jul 19, 2024
7634327
Update src/fusor/models.py
katiestahl Jul 19, 2024
a593c3b
fixes from pr comments
katiestahl Jul 19, 2024
1c3959b
fixes from pr comments
katiestahl Jul 19, 2024
c8c90a7
Merge branch 'issue-95-take2' of https://github.com/cancervariants/fu…
katiestahl Jul 19, 2024
838e2a2
wip: updating test examples with new models
katiestahl Jul 19, 2024
f5f5689
adding back unreachable else because ruff will complain otherwise
katiestahl Jul 19, 2024
c3136ce
fix: update example models with placeholders for sequence location an…
katiestahl Jul 19, 2024
686b000
fix: casing for data to/from cool-seq-tool
katiestahl Jul 22, 2024
1ce7f23
Update src/fusor/fusor.py
katiestahl Jul 22, 2024
485035c
Update src/fusor/fusor.py
katiestahl Jul 22, 2024
9f1ee60
fix: minimal gene response when creating gene
katiestahl Jul 22, 2024
5bbc77c
fix: naming
katiestahl Jul 22, 2024
5a8bea2
Update src/fusor/models.py
katiestahl Jul 22, 2024
ca97171
Update src/fusor/models.py
katiestahl Jul 22, 2024
92fe98f
Update src/fusor/models.py
katiestahl Jul 22, 2024
43f347f
Update src/fusor/models.py
katiestahl Jul 22, 2024
dba14ca
Update src/fusor/fusor.py
katiestahl Jul 22, 2024
a3e67d1
Update src/fusor/models.py
katiestahl Jul 22, 2024
74db34c
updating constructor for SequenceLocation and adding SequenceReference
katiestahl Jul 22, 2024
9cd280c
Merge branch 'issue-95-take2' of https://github.com/cancervariants/fu…
katiestahl Jul 22, 2024
cce6159
removing comment
katiestahl Jul 22, 2024
58b0899
wip: start updates to nomenclature using new models
katiestahl Jul 22, 2024
634ad7f
wip: progress on sequence location constructor
katiestahl Jul 22, 2024
7334ac8
fix: tests and add sequence location id
katiestahl Jul 22, 2024
9d08adf
wip: update test examples
katiestahl Jul 22, 2024
fc649b5
removing incorrect test cases- adding placeholders for now
katiestahl Jul 22, 2024
1e0c7df
fix constructing sequence location
katiestahl Jul 22, 2024
33e932b
fix: casing for sequencelocation
katiestahl Jul 22, 2024
091e23a
updating sequence locations examples
katiestahl Jul 22, 2024
1fbee7c
updating tests
katiestahl Jul 22, 2024
c873d6a
updating tests and adding option to getch gene id from alternate field
katiestahl Jul 22, 2024
ac72ecd
fix: json schema examples
katiestahl Jul 22, 2024
3a9c20a
wip: updating fusor tests
katiestahl Jul 22, 2024
ab3de62
update nomenclature to use new models
katiestahl Jul 22, 2024
6bf5f01
remove completed todo
katiestahl Jul 22, 2024
b952c9c
wip: updating fusor tests
katiestahl Jul 23, 2024
16def6b
Update locations for mane transcript segment fixture/tests
jarbesfeld Jul 23, 2024
a624de5
wip: update tests with new models
katiestahl Jul 23, 2024
620dc1a
Merge branch 'issue-95-take2' of https://github.com/cancervariants/fu…
katiestahl Jul 24, 2024
6a6211b
update tests and examples with new models
katiestahl Jul 24, 2024
3fd9615
update tests and examples with new models
katiestahl Jul 24, 2024
9af8c72
update tests and examples with new models
katiestahl Jul 24, 2024
871c3d9
update tests and examples with new models
katiestahl Jul 24, 2024
01ef722
refactor: moving around logic to make more readable
katiestahl Jul 24, 2024
b811599
model updates
katiestahl Jul 24, 2024
812a21b
Merge branch 'main' into issue-95-take2
katiestahl Jul 24, 2024
9c083b9
model updates
katiestahl Jul 24, 2024
db4d6cb
updating models and tests
katiestahl Jul 24, 2024
6c3b663
fix name
katiestahl Jul 24, 2024
c78ee2a
pin gene normalizer version where CURIE is still defined
katiestahl Jul 25, 2024
fb05793
updating json schema examples for models, removing labael from sequen…
katiestahl Jul 25, 2024
2572534
remove sequencelocation label
katiestahl Jul 25, 2024
62745b8
fix ruff errors
katiestahl Jul 25, 2024
8732135
pinning pydantic version to stop validation error in tests
katiestahl Jul 25, 2024
acab073
test: updating test to fail with unexpected sequence id provided
katiestahl Jul 25, 2024
a0a4529
Update test fixtures for correct use of start and end"
jarbesfeld Jul 25, 2024
f1b82a0
update comment
katiestahl Jul 25, 2024
e9a70b1
Revert "Update test fixtures for correct use of start and end""
katiestahl Jul 25, 2024
dd3f7c1
Update src/fusor/models.py
katiestahl Jul 29, 2024
774f559
Update src/fusor/fusor.py
katiestahl Jul 29, 2024
8fd8d3f
Update src/fusor/fusor.py
katiestahl Jul 29, 2024
c664b77
fix: example data
katiestahl Jul 29, 2024
f00ddb2
Merge branch 'issue-95-take2' of https://github.com/cancervariants/fu…
katiestahl Jul 29, 2024
81aaef2
wip: @jarbesfeld initial suggestsions for examples
korikuzma Jul 29, 2024
0627bb2
wip: update test examples with @jarbesfeld
korikuzma Jul 29, 2024
5d2317c
style: ruff format
korikuzma Jul 29, 2024
cccfc21
Merge branch 'main' into issue-171
korikuzma Aug 22, 2024
6c5c8a3
revert
korikuzma Aug 22, 2024
29ecc8c
update transcript segment element location
korikuzma Aug 22, 2024
406b717
revert examples
korikuzma Aug 22, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
20 changes: 10 additions & 10 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 @@ -754,11 +755,11 @@ def exhaustive_example(alk_gene, braf_gene, tpm3_gene):
"refgetAccession": "SQ.Ya6Rs7DHhDeg7YaOSg1EoNi3U_nQ9SvO",
"type": "SequenceReference",
},
"start": 154192135,
"end": 154192136,
"end": 154192135,
},
"elementGenomicEnd": {
"id": "ga4gh:SL.rtR6x2NnJEpROlxiT_DY9C-spf6ijYQi",
"id": "ga4gh:SL.Lnne0bSsgjzmNkKsNnXg98FeJSrDJuLb",
"digest": "Lnne0bSsgjzmNkKsNnXg98FeJSrDJuLb",
"description": None,
"xrefs": None,
"alternativeLabels": None,
Expand All @@ -770,7 +771,6 @@ def exhaustive_example(alk_gene, braf_gene, tpm3_gene):
"type": "SequenceReference",
},
"start": 154170399,
"end": 154170400,
},
},
{
Expand Down Expand Up @@ -868,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 @@ -879,11 +880,11 @@ def fusion_example():
"refgetAccession": "SQ.Ya6Rs7DHhDeg7YaOSg1EoNi3U_nQ9SvO",
"type": "SequenceReference",
},
"start": 154192135,
"end": 154192136,
"end": 154192135,
},
"elementGenomicEnd": {
"id": "ga4gh:SL.rtR6x2NnJEpROlxiT_DY9C-spf6ijYQi",
"id": "ga4gh:SL.Lnne0bSsgjzmNkKsNnXg98FeJSrDJuLb",
"digest": "Lnne0bSsgjzmNkKsNnXg98FeJSrDJuLb",
"description": None,
"xrefs": None,
"alternativeLabels": None,
Expand All @@ -895,7 +896,6 @@ def fusion_example():
"type": "SequenceReference",
},
"start": 154170399,
"end": 154170400,
},
},
{
Expand Down
16 changes: 8 additions & 8 deletions tests/test_fusor.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,27 +194,27 @@ def transcript_segment_element():
"type": "Gene",
},
"transcript": "refseq:NM_152263.3",
"elementGenomicEnd": {
"id": "ga4gh:SL.Lnne0bSsgjzmNkKsNnXg98FeJSrDJuLb",
"digest": "Lnne0bSsgjzmNkKsNnXg98FeJSrDJuLb",
"elementGenomicStart": {
"id": "ga4gh:SL.Q8vkGp7_xR9vI0PQ7g1IvUUeQ4JlJG8l",
"digest": "Q8vkGp7_xR9vI0PQ7g1IvUUeQ4JlJG8l",
"type": "SequenceLocation",
"sequenceReference": {
"id": "refseq:NC_000001.11",
"refgetAccession": "SQ.Ya6Rs7DHhDeg7YaOSg1EoNi3U_nQ9SvO",
"type": "SequenceReference",
},
"start": 154170399,
"end": 154192135,
},
"elementGenomicStart": {
"id": "ga4gh:SL.Q8vkGp7_xR9vI0PQ7g1IvUUeQ4JlJG8l",
"digest": "Q8vkGp7_xR9vI0PQ7g1IvUUeQ4JlJG8l",
"elementGenomicEnd": {
"id": "ga4gh:SL.Lnne0bSsgjzmNkKsNnXg98FeJSrDJuLb",
"digest": "Lnne0bSsgjzmNkKsNnXg98FeJSrDJuLb",
"type": "SequenceLocation",
"sequenceReference": {
"id": "refseq:NC_000001.11",
"refgetAccession": "SQ.Ya6Rs7DHhDeg7YaOSg1EoNi3U_nQ9SvO",
"type": "SequenceReference",
},
"end": 154192135,
"start": 154170399,
},
}
return TranscriptSegmentElement(**params)
Expand Down
14 changes: 5 additions & 9 deletions tests/test_nomenclature.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,7 @@ def exon_offset_example():
"refgetAccession": "SQ.Ya6Rs7DHhDeg7YaOSg1EoNi3U_nQ9SvO",
"type": "SequenceReference",
},
"start": 156864428,
"end": 156864429,
"start": 156864353,
},
},
],
Expand All @@ -147,26 +146,24 @@ 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",
"refgetAccession": "SQ.Ya6Rs7DHhDeg7YaOSg1EoNi3U_nQ9SvO",
"type": "SequenceReference",
},
"start": 154192135,
"end": 154192136,
"end": 154192135,
},
elementGenomicEnd={
"id": "ga4gh:SL.rtR6x2NnJEpROlxiT_DY9C-spf6ijYQi",
"id": "ga4gh:SL.Lnne0bSsgjzmNkKsNnXg98FeJSrDJuLb",
"type": "SequenceLocation",
"sequenceReference": {
"id": "refseq:NC_000001.11",
"refgetAccession": "SQ.Ya6Rs7DHhDeg7YaOSg1EoNi3U_nQ9SvO",
"type": "SequenceReference",
},
"start": 154170399,
"end": 154170400,
},
)

Expand All @@ -185,15 +182,14 @@ 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",
"refgetAccession": "SQ.Ya6Rs7DHhDeg7YaOSg1EoNi3U_nQ9SvO",
"type": "SequenceReference",
},
"start": 154170399,
"end": 154170400,
},
)

Expand Down