RLIMS-P (indra.sources.rlimsp
)¶
RLIMS-P is a rule-based reading system which extracts phosphorylation relationships with sites from text. RLIMS-P exposes a web service to submit PubMed IDs and PMC IDs for processing.
See also: https://research.bioinformatics.udel.edu/rlimsp/ and https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4568560/
RLIMS-P API (indra.sources.rlimsp.api
)¶
-
indra.sources.rlimsp.api.
process_from_webservice
(id_val, id_type='pmcid', source='pmc', with_grounding=True)[source]¶ Return an output from RLIMS-p for the given PubMed ID or PMC ID.
Parameters: - id_val (str) – A PMCID, with the prefix PMC, or pmid, with no prefix, of the paper to be “read”.
- id_type (str) – Either ‘pmid’ or ‘pmcid’. The default is ‘pmcid’.
- source (str) – Either ‘pmc’ or ‘medline’, whether you want pmc fulltext or medline abstracts.
- with_grounding (bool) – The RLIMS-P web service provides two endpoints, one pre-grounded, the other not so much. The grounded endpoint returns far less content, and may perform some grounding that can be handled by the grounding mapper.
Returns: An RlimspProcessor which contains a list of extracted INDRA Statements in its statements attribute.
Return type:
-
indra.sources.rlimsp.api.
process_from_json_file
(filename, doc_id_type=None)[source]¶ Process RLIMSP extractions from a bulk-download JSON file.
Parameters: - filename (str) – Path to the JSON file.
- doc_id_type (Optional[str]) – In some cases the RLIMS-P paragraph info doesn’t contain ‘pmid’ or ‘pmcid’ explicitly, instead if contains a ‘docId’ key. This parameter allows defining what ID type ‘docId’ sould be interpreted as. Its values should be ‘pmid’ or ‘pmcid’ or None if not used.
Returns: An RlimspProcessor which contains a list of extracted INDRA Statements in its statements attribute.
Return type:
-
indra.sources.rlimsp.api.
process_from_jsonish_str
(jsonish_str, doc_id_type=None)[source]¶ Process RLIMSP extractions from a bulk-download JSON file.
Parameters: - jsonish_str (str) – The contents of one of the not-quite-json files you can find here: https://hershey.dbi.udel.edu/textmining/export
- doc_id_type (Optional[str]) – In some cases the RLIMS-P paragraph info doesn’t contain ‘pmid’ or ‘pmcid’ explicitly, instead if contains a ‘docId’ key. This parameter allows defining what ID type ‘docId’ sould be interpreted as. Its values should be ‘pmid’ or ‘pmcid’ or None if not used.
Returns: An RlimspProcessor which contains a list of extracted INDRA Statements in its statements attribute.
Return type:
RLIMSP-P Processor (indra.sources.rlimsp.processor
)¶
-
class
indra.sources.rlimsp.processor.
RlimspParagraph
(p_info, doc_id_type)[source]¶ An object that represents a single RLIMS-P Paragraph.