-
Couldn't load subscription status.
- Fork 17
Database labels #783
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
Database labels #783
Conversation
| const splitId=id.split(':'); | ||
|
|
||
| //Parse the query based on the format | ||
| if(/uniprot:\w+$/.test(id)) { |
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.
Make case insensitive
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.e. the prefix part (id is case-sensitive)
| body:JSON.stringify(query) | ||
| }).then(res => res.json()).then(ids=> _.assign(ids,{unrecognized:_.tail(ids.unrecognized)}));//remove padding | ||
| if(query.genes.length>=1){ | ||
| query.genes= query.genes; |
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.
Necessary?
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.
Jeff, what do you mean by 'necessary'?
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'm referring to line 35 query.genes= query.genes;. Isn't this assigning a variable reference to itself?
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.
One addition: For viewing interactions link, use 'HGNC Approved Symbol' as the source url parameters rather than NCBI Gene IDs. That is, in landing-box.js:
const landingBox = (props) => {
...
interactionsLink(box.databaseID,'View Interactions')
...
return h('div.search-landing',landingHTML);
};
...box.databaseID should always be HGNC approved symbol.
|
Please, do not insert word "approved" into "HGNC Symbol" (official primary name for that resource, ID type) anywhere. |
1. Format validator is now case insensitive (ps: this function only validate the format of query, so whether the id is case-sensitive does not affect the output) 2. Links to interation pages now use HGNC symbol rather than NCBI Gene ID
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.
Nice.
|
Ah, Jeff was quick to merge this before me (I was just testing...) Great! |
Landing page now can accept query token in the form of
<database name>: <id>http://appsbeta.pathwaycommons.org/search?gt=0<=250&q=hgnc:ATM&type=Pathway and
http://appsbeta.pathwaycommons.org/search?gt=0<=250&q=ATM&type=Pathway will have same result.
Ref: #702