Skip to contents

Function for validating pssm_path and getting all/selected PSSM datasets and tracks from path/gdb

Usage

get_available_pssms(
  pssm_path = NULL,
  datasets_of_interest = NULL,
  return_datasets_only = FALSE
)

Arguments

pssm_path

(optional) - path to misha pssm datasets (.key-.data file combinations), no need to specify if misha gdb is set up correctly

datasets_of_interest

(optional) - pssm datasets to get available pssms from. Available datasets can be obtained by calling this function with return_datasets_only = TRUE

return_datasets_only

(optional) - whether to return only available pssm datasets

Value

either: 1) (default) a list containing a list of the names and a list of corresponding dataframes of the motif datasets available, OR 2) if return_datasets_only == TRUE, just the names of the available motif datasets

Examples

if (FALSE) {
pssm_datasets <- get_available_pssms(return_datasets_only = TRUE)
all_pssms <- get_available_pssms()
all_pssms <- get_available_pssms(datasets_of_interest = pssm_datasets)
all_pssms_jaspar_homer <- get_available_pssms(datasets_of_interest = c("jaspar", "homer"))
}