#' Add Bedgraphs to Sample Sheet
#' @import stringr
#'
#' @param SCAR_obj SCAR object.
#' @param alignment_dir Directory for files to be dumped to.
#'
#' @export
add_bgs <- function(
SCAR_obj,
alignment_dir
) {
## Grab some info from object and prepare inputs.
sample_sheet <- copy(SCAR_obj@sample_sheet)
sample_sheet[,
sample_bgs := str_c(alignment_dir, sample_name, ".fragments.bedgraph")]
sample_sheet[,
control_bgs := str_c(alignment_dir, control_name, ".fragments.bedgraph")]
## Add new sample sheet back to SCAR object.
SCAR_obj@sample_sheet <- sample_sheet
## Return the SCAR object.
return(SCAR_obj)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.