-
Notifications
You must be signed in to change notification settings - Fork 308
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
Removed PdbAnnotation API dependency #1068
Conversation
|
||
} | ||
|
||
export default class PdbPositionMappingCache extends LazyMobXCache<PdbUniprotResidueMapping, AlignmentIdAndUniportPos> { |
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 haven't been using this cache since merging #567, so removing until we re-implement it for the Genome Nexus endpoint data.
@@ -12,7 +12,7 @@ export interface IPdbPositionRange { | |||
|
|||
export type PdbAlignmentIndex = { | |||
[pdbId: string]: { | |||
[chainId: string]: PdbUniprotAlignment[] | |||
[chainId: string]: Alignment[] |
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 should have been done by #567. Seems like it slipped away type-checking because in the PdbAnnotationAPI
it was generated as any
:
export type PdbUniprotAlignment = any;
@cached get pdbPositionMappingCache() | ||
{ | ||
return new PdbPositionMappingCache(); | ||
// return new PdbPositionMappingCache(); | ||
return null; |
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.
do we not want to just delete this?
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.
Ideally we should implement a new cache for the new structure, but for now it might be better to just remove it completely.
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 it completely for now, and added a new issue: cBioPortal/cbioportal#4071
aa2f88a
to
346e69a
Compare
c2a7f66
to
7a49276
Compare
@@ -12,12 +12,12 @@ export default class OrganismColumnFormatter { | |||
|
|||
_.find(pdbHeader.compound, (mol:any)=>{ | |||
if (_.indexOf(mol.chain, chainId.toLowerCase()) != -1 && | |||
pdbHeader.source[mol.mol_id] != null) | |||
(pdbHeader.source as any)[mol.mol_id] != null) |
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.
curious why this isn't part of generated 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.
Looks like we modeled the field source
as a simple Map<String, Object>
on the Genome Nexus side. Since we are getting this data from an external resource, we don't have the full model information. It is possible to define a partial model for the fields we use though.
2fab493
to
fef3106
Compare
|
||
it('populates PDB info properly', () => { | ||
browser.click('[data-test=view3DStructure]'); | ||
browser.waitUntil(() => (browser.getText('[data-test=pdbChainInfoText]') !== "LOADING"), 10000); |
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 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.
@onursumer could use waitForExist
but this works
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.
@inodb The problem is that pdbChainInfoText
always exists, but its text content changes from LOADING
to a real value. And the actual content is generated by another generic component called TextExpander
.
We could potentially render separate div
s or span
s for different states to be able to use waitForExist
though.
8c550a0
to
973a164
Compare
973a164
to
a5d789a
Compare
…ortal#3159) Signed-off-by: Onur Sumer <s.onur.sumer@gmail.com>
a5d789a
to
ccc5aa5
Compare
|
||
it('populates PDB info properly', () => { | ||
browser.click('[data-test=view3DStructure]'); | ||
browser.waitUntil(() => (browser.getText('[data-test=pdbChainInfoText]') !== "LOADING"), 10000); |
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.
@onursumer could use waitForExist
but this works
- Oncoprint tracks indicating profiled status in queried profiles (cBioPortal/cbioportal-frontend#1167) - Prevent alphabetical searching example queries list (cBioPortal/cbioportal-frontend#1177) - Fix missing modify query button for subset of virtual study (cBioPortal/cbioportal-frontend#1176) - Fix broken CN segments file (cBioPortal/cbioportal-frontend#1175) - Enable searching for germline in protein change column (cBioPortal/cbioportal-frontend#1152) - Open mycancergenome links in separate tab (cBioPortal/cbioportal-frontend#1188) - Fix copy button behavior (cBioPortal/cbioportal-frontend#1190) - Remove semicolon from custom news section (cBioPortal/cbioportal-frontend#1194) - Don't show invalid allele count values e.g. N/A, undefined, -1 in mutations table (cBioPortal/cbioportal-frontend#1165) - Remove dependency on pdb annotation service (use genomenexus.org instead) (cBioPortal/cbioportal-frontend#1068) - Fix genomic overview when it contains `.` in the filename (cBioPortal/cbioportal-frontend#1094)
- Oncoprint tracks indicating profiled status in queried profiles (cBioPortal/cbioportal-frontend#1167) - Prevent alphabetical searching example queries list (cBioPortal/cbioportal-frontend#1177) - Fix missing modify query button for subset of virtual study (cBioPortal/cbioportal-frontend#1176) - Fix broken CN segments file (cBioPortal/cbioportal-frontend#1175) - Enable searching for germline in protein change column (cBioPortal/cbioportal-frontend#1152) - Open mycancergenome links in separate tab (cBioPortal/cbioportal-frontend#1188) - Fix copy button behavior (cBioPortal/cbioportal-frontend#1190) - Remove semicolon from custom news section (cBioPortal/cbioportal-frontend#1194) - Don't show invalid allele count values e.g. N/A, undefined, -1 in mutations table (cBioPortal/cbioportal-frontend#1165) - Remove dependency on pdb annotation service (use genomenexus.org instead) (cBioPortal/cbioportal-frontend#1068) - Fix genomic overview when it contains `.` in the filename (cBioPortal/cbioportal-frontend#1094)
What? Why?
Fix cBioPortal/cbioportal#3159.
Changes proposed in this pull request:
PdbHeader
dataPdbAnnotationAPI
Checks
can be automatically added by git if you run the
git-commit
command withthe
-s
option)