Nothing
#' @include utilities.R
NULL
#' Run FastQC Tool
#' @description Run FastQC Tool
#' @param fq.dir path to the directory containing fastq files. Default is the
#' current working directory.
#' @param qc.dir path to the FastQC result directory. If NULL, a directory
#' named fastqc_results is created in the current working directory.
#' @param threads the number of threads to be used. Default is 4.
#' @param fastqc.path path to fastqc program
#' @rdname fastqc
#' @return Create a directory containing the reports
#' @examples
#' \dontrun{
#' # Run FastQC: generates a QC directory
#' fastqc(fq.dir)
#' }
#' @export
fastqc <- function(fq.dir = getwd(), qc.dir = NULL, threads = 4, fastqc.path = "~/bin/FastQC/fastqc")
{
.check_if_unix()
if(is.null(qc.dir)) qc.dir <- file.path(fq.dir, "FASTQC")
.create_dir(qc.dir)
cmd <- paste0(fastqc.path, " ", fq.dir, "/* --threads ", threads, " --outdir ", qc.dir)
system(cmd)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.