def get_rlimsp_phos_stmts(filename, rlimsp_medline_json, rlimsp_pmc_json): # Add on all the RLIMS-P statements loaded separately rp_stmts1 = rlimsp.process_from_json_file(rlimsp_medline_json, doc_id_type='pmid').statements rp_stmts2 = rlimsp.process_from_json_file(rlimsp_pmc_json).statements stmts = rp_stmts1 + rp_stmts2 with open(filename, 'wb') as f: pickle.dump(stmts, f) return stmts
def test_tyrosine_grounding(): here = os.path.dirname(os.path.abspath(__file__)) fname = os.path.join(here, 'rlimsp_site.json') rp = rlimsp.process_from_json_file(fname) assert len(rp.statements) == 1 stmt = rp.statements[0] assert stmt.residue == 'Y' assert stmt.position == '705'