cannin / ihop-reach

A web application to access biological data extracted from biomedical literature.
https://reach.nrnb-docker.ucsd.edu
GNU Lesser General Public License v3.0
4 stars 4 forks source link

Allow the GraphQL API to search evidence by regular expression. #55

Closed cannin closed 5 years ago

cannin commented 5 years ago

Potential users suggested that this might be an important feature for them to look for specific words.

RohitChattopadhyay commented 5 years ago

image Basic search in evidence using the keyword is already available. Does the user want to send a REGEX as an argument?

cannin commented 5 years ago

Could I do "methylation.*mediated" and return just the "CG methylation ..." result from your screenshot? If not, then that's the feature requested. If you believe that this will cause the search to be excessively slow, then split it to a separate parameter like regex (boolean) to switch between the two behaviors.

RohitChattopadhyay commented 5 years ago

Could I do "methylation.*mediated" and return just the "CG methylation ..." result from your screenshot? If not, then that's the feature requested. If you believe that this will cause the search to be excessively slow, then split it to a separate parameter like regex (boolean) to switch between the two behaviors.

Can you please check if this is what you are referring to. Thanks image

Query

{
  allDocuments(evidence: "methylation.*mediated") {
    evidence
  }
}

GraphQL API Link

cannin commented 5 years ago

This works:

{ allDocuments(evidence: "DNA.*[mediated|damage]") { evidence } }