-
Notifications
You must be signed in to change notification settings - Fork 9
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
Created geneset in Genomic node #160
base: master
Are you sure you want to change the base?
Conversation
curatedIsoform: string, | ||
curatedRefSeq: string, | ||
geneAliases: string[], | ||
genesets: 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.
I don't think this type is correct and you should not include this property in Gene to prevent the circular references.
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.
Removed genesets in Gene model
this.disableHugoSymbol = true; | ||
this.selectedGenesetOption = _.find(this.genesetOptions, { id: this.genomicInput.geneset_id }); | ||
this.genomicInput.hugo_symbol = this.selectedGenesetOption.genes.join(', '); | ||
this.genomicInput.geneset = this.selectedGenesetOption.name; |
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.
If the name is updated, what's the process updating the name? Also if the geneset is updated(add/remove gene), what's the process?
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.
When a genomic node is initialized, I'll use the geneset_id stored in firebase to find the corresponding options pulled from OncoKB API (line 66 ~ 68). Even if a geneset name changed or its genes added or removed, the curation platform will always use its id to get latest data.
Fix oncokb/oncokb#852, oncokb/oncokb#1796