This repository contains the scripts and analysis necessary to extract relationships between T cells, cytokines, and transcription factors from a large PMC corpus using Data Programming. In short, the purpose of this research is to identify relations like this often referenced as a small part of larger cell signaling networks:
The relations are identified by a weakly supervised classifier trained using distant supervision from immuneXpresso, heuristics, text patterns, and standard supervised classifiers trained on a small manually labeled data split. Snorkel is used to develop a generative model on top of the classifications from these different sources and the weak labels from that model are then fed into a noise-aware classifier (trained on ~50k examples per relation). A high-level overview of this information flow is shown below:
This Summary Notebook contains a rolling account of many details such as how documents were selected, what labeling functions were developed, tokenization challenges, controlled vocabularies, preliminary classification performance results, etc.
An early draft of a pre-print is also available at Extracting T Cell Function and Differentiation Characteristics from the Biomedical Literature.
Additional links:
T-helper 17
cells are assigned the identifier
CT919B4FF0A7605265
and it is this identifier that is present in the relation "predictions" below that
is also present in the mapping files within this folder alongside the external identifier for Cell Ontology (CL)Bulk Relations Export: This file is an export of the following dataframe and contains relation probability predictions for ~1.3M candidate entity pairs; the entity text and normalized labels are also included along with identifiers linking to other datasets in data/meta that allow for tracing back to ontology terms (e.g. CL and Cytokine Registry).
RangeIndex: 1325861 entries, 0 to 1325860
Data columns (total 11 columns):
candidate_id 1325861 non-null int64
date 1325861 non-null datetime64[ns]
doc_id 1325861 non-null object
ent1_cid 1325861 non-null object
ent1_lbl 1325861 non-null object
ent1_text 1325861 non-null object
ent2_cid 1325861 non-null object
ent2_lbl 1325861 non-null object
ent2_text 1325861 non-null object
prob 1325861 non-null float64
type 1325861 non-null object