prepare.feature.table: Prepare Feature Table

Description Usage Arguments Details Value

View source: R/user_functions.R

Description

Creates a data.frame with the annotation of different feature beds, including their complete path, the cell type and the feature name.

Usage

1
2
3
4
5
prepare.feature.table(
  feature_directory,
  feature_names = NULL,
  cell_types = NULL
)

Arguments

feature_directory

A character vector with the path of the folder with the feature bed files.

feature_names

A character vector of the feature names. This parameter is optional.

cell_types

A character vector of the cell types. This parameter is optional.

Details

Since the main function of mubeen, multiple.bed.enrichment, needs different attributes of the feature bed files, this function provides a convenient way to generate the information. You can provide the vectors with the feature names and files, or, if not, they are automatically generated from the file name (by default, you have to put the feature name, a whitespace and the cell name). If you have a bed file with multiple features, you should previously separate them using the function separate.multiple.features

Value

A data frame with 3 columns: 1st feature file paths, 2on cell types, 3rd feature names.


omorante/mubeen documentation built on June 4, 2020, 9:19 p.m.