Closed jrafailov closed 1 day ago
The method is still there, but I think it's not longer being used?
Ah, I think I see the problem.
It's relying on vartype == "SNV"
to enforce the centering, but the oncokb snv outputs omit this field (we should probably fix this @kevinmhadi ). @xanthopoulakis an easy fix is to instead check if ["missense", "trunc"].includes(type)
as the condition.
I just pushed the change to Skilift branch oncokb_fusions
to add vartype = "SNV"
for all small mutations from oncokb (I'm assuming indels are flagged the same way)
Great, then @xanthopoulakis you don't need to make any changes. I just have to update the filtered events table.
Great, then @xanthopoulakis you don't need to make any changes. I just have to update the filtered events table.
Great! Let me know when you can verify this works indeed.
@xanthopoulakis Unfortunately, it doesn't seem like adding vartype
fixed this issue. I would double check how the Location
column is being populated. I suspect the old methods are being overridden by new code that you introduced in your refactor.
See:
The method is still there, but I think it's not longer being used?
Update: Seems like fusion split view was also affected, which makes me think that the way the genome location is being computed was overridden.
OK after further investigation, it seems like the Variant_g
is no longer being reported as expected with the new oncokb calls: (e.g "Variant_g": "g.25398285-25398285",
). Previously Variant_g
had the base change and the coordinates formatted as seqname:start-end
. This is why it's not working.
@kevinmhadi Any chance we can update the Variant_g
in the onckob_snv
to reflect the old format? (e.g "Variant_g": "2:29432664-29432664 C>T",
)
For the fusions, the behavior is a bit weird. For some fusions it opens in split:
For others it doesn't:
OK, so centering for vartype==SNV
now works again. However, this centering code should also apply to DELs.
@xanthopoulakis you just need to update this line https://github.com/mskilab-org/case-report/blob/9a3ca30087c1f81ad3fe00b652608150638d4b38/src/helpers/utility.js#L848
to include DEL
, i.e the condition should be event.vartype === "SNV" || event.vartype === "DEL"
Describe the bug @shihabdider had implemented this before but it seems that this functionality is no longer working. The expected behavior is from the filtered events table, upon click the module that comes up should center around the locus position indicated by the table. Additionally, the full gene range should be visible + some padding!
To Reproduce Steps to reproduce the behavior:
Expected behavior The expected behavior is from the filtered events table, upon click the module that comes up should center around the locus position indicated by the table. Additionally, the full gene range should be visible + some padding!