-
Notifications
You must be signed in to change notification settings - Fork 29
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
Add initial CDx page #1055
Add initial CDx page #1055
Conversation
export interface ICompanionDiagnosticDevice { | ||
name: string; | ||
manufacturer: string; | ||
platformType?: string | null; | ||
biomarkerAssociation: IBiomarkerAssociation; | ||
specimenTypes?: string[]; | ||
} | ||
|
||
interface IBiomarkerAssociation { | ||
gene: string; | ||
alterations: string[]; | ||
drugs: string[]; | ||
cancerType: string; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once we start using the rc branch from transcript, these models should be auto generated.
export function downloadFile( | ||
fileName: string, | ||
content: string, | ||
options: BlobPropertyBag = { type: 'text/tsv' } | ||
) { | ||
const blob = new Blob([content], options); | ||
const downloadLink = document.createElement('a'); | ||
downloadLink.href = URL.createObjectURL(blob); | ||
downloadLink.download = fileName; | ||
downloadLink.click(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copied from oncokb-transcript
gene: ba.gene.hugoSymbol, | ||
alterations: ba.alterations.map((a: any) => a.name), | ||
drugs: ba.drugs.map((d: any) => d.name), | ||
cancerType: ba.cancerType.mainType, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We only use the main type?
@@ -0,0 +1,28 @@ | |||
import React from 'react'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is new since last review
@@ -928,3 +928,12 @@ export const convertObjectArrayToDelimitedString = ( | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is new
1be4b6e
to
312b0ec
Compare
@@ -912,3 +913,10 @@ export const DEFAULT_REFERENCE_GENOME = REFERENCE_GENOME.GRCh37; | |||
export const DEFAULT_FEEDBACK_ANNOTATION: Feedback = { | |||
type: FeedbackType.ANNOTATION, | |||
}; | |||
|
|||
export const FDA_SUBMISSION_URL_SUFFIX = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is new
@@ -0,0 +1,633 @@ | |||
import OncoKBTable, { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are many changes to this file, so needs to be re-reviewed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, only two minor comments.
const headers = [ | ||
'Gene', | ||
'Alteration(s)', | ||
'Cancer Type', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be Cancer Type(s)
as well?
|
||
useEffect(() => { | ||
const filterPresent = | ||
!!relevantCancerTypeSearchKeyword || |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The purpose of adding double exclamation mark seems redundant
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Its to convert the value to a boolean. Otherwise if the search keyword was "example", then filterPresent = 'example'
21debc5
to
4feabb3
Compare
1ac5f25
to
ab02493
Compare
Release of the{' '} | ||
<Link to={PAGE_ROUTE.CDX}> | ||
"FDA Cleared or Approved Companion Diagnostic Devices" | ||
</Link> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe a nit, but I'd add a space between ... Devices
and the open parenthesis
tissue: '', | ||
tumorForm: 'LIQUID', | ||
}, | ||
]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did we make the decision to hardcode the cancer types into the frontend?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for catch. Thought I removed this before commit. It was purely for testing purposes.
@@ -0,0 +1,16753 @@ | |||
[ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same question as cancer types
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't have an API client that connects to oncokb-curation (which is where the CDx data is). We are using a static json file for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved with minor comment. Also just hoping to get some clarification on all the hard coding we're doing here.
This fixes https://github.com/oncokb/oncokb-pipeline/issues/200
Todo: