define_parent_accessions: Label parent accessions

View source: R/required_scripts.R

define_parent_accessionsR Documentation

Label parent accessions

Description

Create an additional tag called parent_cell_set_accession, which is defined as the node with the fewest children that contains a cell set.

Usage

define_parent_accessions(nomenclature)

Arguments

nomenclature

the nomenclature table output from 'build_nomenclature_table' or related/downstream functions.

Details

Notes:

If the cell sets follows a strict hierarchy (e.g., a tree) then the parent will always be the node in the hierarchy directly above it; however, this function still can return parents in more complex, multi-inheritance structured tables.

This can be helpful for integration into downstream ontology use cases or can be ignored.

child_cell_set_accessions is a prerequisite for this function, and these will be calculate herein if they haven't yet been calculated.

Value

An updated nomenclature table with a "parent_set_accession" column appended (and also a "child_cell_set_accessions" if it wasn't already calculated)


AllenInstitute/CCN documentation built on April 15, 2023, 10:48 p.m.