GNBR (indra.sources.gnbr
)
This module extracts INDRA Statements from the Global Network of Biomedical Relationships resource
GNBR API (indra.sources.gnbr.api
)
- indra.sources.gnbr.api.process_chemical_disease(part1_path, part2_path, indicator_only=True)[source]
Process chemical–disease interactions.
- Parameters
- Return type
- Returns
A GnbrProcessor object which contains a list of extracted INDRA Statements in its statements attribute.
- indra.sources.gnbr.api.process_chemical_disease_from_web(indicator_only=True)[source]
Call process_chemical_disease function on the GNBR datasets.
- Parameters
indicator_only (
bool
) – A switch to filter the data which is part of the flagship path set for each theme.- Return type
- Returns
A GnbrProcessor object which contains a list of extracted INDRA Statements in its statements attribute.
- indra.sources.gnbr.api.process_chemical_gene(part1_path, part2_path, indicator_only=True)[source]
Process chemical–gene interactions.
- Parameters
- Return type
- Returns
A GnbrProcessor object which contains a list of extracted INDRA Statements in its statements attribute.
- indra.sources.gnbr.api.process_chemical_gene_from_web(indicator_only=True)[source]
Call process_chemical_gene function on the GNBR datasets.
- Parameters
indicator_only (
bool
) – A switch to filter the data which is part of the flagship path set for each theme.- Return type
- Returns
A GnbrProcessor object which contains a list of extracted INDRA Statements in its statements attribute.
- indra.sources.gnbr.api.process_from_files(part1_path, part2_path, first_type, second_type, indicator_only=True)[source]
Loading the databases from the given files.
- Parameters
part1_path (
str
) – Path to the first dataset which contains dependency paths and themes.part2_path (
str
) – Path to the second dataset which contains dependency paths and themes.first_type (
str
) – Type of the first agent.second_type (
str
) – Type of the second agent.indicator_only (
bool
) – A switch to filter the data which is part of the flagship path set for each theme.
- Return type
- Returns
A GnbrProcessor object which contains a list of extracted INDRA Statements in its statements attribute.
- indra.sources.gnbr.api.process_from_web(first_type, second_type, indicator_only=True)[source]
Loading the databases from the given urls.
- Parameters
first_type – Type of the first agent.
second_type – Type of the second agent.
indicator_only (
bool
) – A switch to filter the data which is part of the flagship path set for each theme.
- Return type
- Returns
A GnbrProcessor object which contains a list of extracted INDRA Statements in its statements attribute.
- indra.sources.gnbr.api.process_gene_disease(part1_path, part2_path, indicator_only=True)[source]
Process gene–disease interactions.
- Parameters
- Return type
- Returns
A GnbrProcessor object which contains a list of extracted INDRA Statements in its statements attribute.
- indra.sources.gnbr.api.process_gene_disease_from_web(indicator_only=True)[source]
Call process_gene_disease function on the GNBR datasets.
- Parameters
indicator_only (
bool
) – A switch to filter the data which is part of the flagship path set for each theme.- Return type
- Returns
A GnbrProcessor object which contains a list of extracted INDRA Statements in its statements attribute.
- indra.sources.gnbr.api.process_gene_gene(part1_path, part2_path, indicator_only=True)[source]
Process gene–gene interactions.
- Parameters
- Return type
- Returns
A GnbrProcessor object which contains a list of extracted INDRA Statements in its statements attribute.
- indra.sources.gnbr.api.process_gene_gene_from_web(indicator_only=True)[source]
Call process_gene_gene function on the GNBR datasets.
- Parameters
indicator_only (
bool
) – A switch to filter the data which is part of the flagship path set for each theme.- Return type
- Returns
A GnbrProcessor object which contains a list of extracted INDRA Statements in its statements attribute.
GNBR Processor (indra.sources.gnbr.processor
)
This module contains the processor for GNBR. There are several, each corresponding to different kinds of interactions.
- class indra.sources.gnbr.processor.GnbrProcessor(df1, df2, first_type, second_type, indicator_only=True)[source]
A processor for interactions in the GNBR dataset.
- Parameters
- indra.sources.gnbr.processor.get_evidence(row)[source]
Return evidence for a Statement.
- Parameters
row (
Series
) – Currently investigated row of the dataframe.- Return type
- Returns
Evidence object with the source_api, the PMID and the original sentence.
- indra.sources.gnbr.processor.get_std_chemical(raw_string, db_id)[source]
Standardize chemical names.