GetBigwigDirs: Get Bigwig Dirs

View source: R/seqNdisplayR.R

GetBigwigDirsR Documentation

Get Bigwig Dirs

Description

Internal function: Get bigwig dirs file names from a data frame containing at a minimum columns bigwig_file and dataset From chatGPT: the GetBigwigDirs function extracts the unique combinations of bigwig directories and datasets from the filled_df data frame, filters out rows with missing bigwig directories, and returns a named vector where each dataset is associated with its corresponding bigwig directory.

Usage

GetBigwigDirs(filled_df)

Arguments

filled_df

a filled dataframe (see details)

Details

Get bigwig dirs file names from a data frame containing at a minimum columns bigwig_file and dataset. Note: in seqNdisplayR only one bigwig_dir is allowed per seqtype.

Value

Named vector

Author(s)

MS

Examples

df = data.frame(bigwig_directory=c(rep('http://seqA/', 4), rep('http://seqB/', 2)),dataset=c(rep('a',4), rep('b',2)), subgroup_1=c('x','x','y','y', 'x','y'), subgroup_2=1:6, stringsAsFactors=FALSE)
GetBigwigDirs(df)


THJlab/seqNdisplayR documentation built on Nov. 13, 2024, 10:36 a.m.