GetBigwigDirs | R Documentation |
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.
GetBigwigDirs(filled_df)
filled_df |
a filled dataframe (see 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.
Named vector
MS
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.