write_central_elements_table: Saves to file a dataframe of elements ( i.e. features ) x...

write_central_elements_tableR Documentation

Saves to file a dataframe of elements ( i.e. features ) x cluster groups

Description

Creates a file with one tab separated row per each element and one column for each number of clusters with 1's for the central elements of each cluster in each cluster group and "" everywhere else

Usage

write_central_elements_table(
  central_elements,
  all_elements,
  output_path = file.path(getwd(), "central_elements_by_num_clusters.tsv"),
  return_output = F,
  cluster_id_width = NA
)

Arguments

central_elements

Named list of central element from each cluster ( as returned by isolate_central_cluster_elements )

all_elements

Character vector of element names containing, at a minimum, all central elements defined in first argument

output_path

One-length character vector with fully qualified path to output file

return_output

Boolean option to display final output

cluster_id_width

The number of characters in cluster group id's and individual cluster id's

Value

Returns central elements data.frame as saved to file


Benjamin-Vincent-Lab/binfotron documentation built on Oct. 1, 2024, 8:33 p.m.