extract_matching_phrases_from_lists: Finds phrases from list of things, like a list of dataframes.

View source: R/utils.R

extract_matching_phrases_from_listsR Documentation

Finds phrases from list of things, like a list of dataframes.

Description

Wherever the phrase exists, it is extracted. Convenient for list of dataframes in which we know the phrase occurs somewhere but we don't no the column, or don't care about preserving the source column name.

Usage

extract_matching_phrases_from_lists(things, phrase)

Arguments

things

Lists. Maybe lists of dataframes.

phrase

An anchor phrase. (maybe to fetch cell matching that from df). Can be character vector (multiple phrases).

Value

List matching the phrase

Examples

gene <-"NCBIGene:8314"
homs <- bioentity_homologs(gene)$homologs
evidence <- extract_matching_phrases_from_lists(homs$evidence_graph.nodes, 'evidence')

charlieccarey/monarchr documentation built on Dec. 12, 2023, 12:57 p.m.