R/counting_Reads.R

Defines functions counting_Reads

Documented in counting_Reads

#' COUNTING SEQUENCES
#'
#' @param input_data sample folder
counting_Reads <- function(input_data) {
  theCount <- 
    ShortRead::countFastq(
      dirPath = file.path(input_data),
      pattern = ".fastq|.fastq.gz|.fq|.fq.gz")
  files <- rownames(theCount)
  theCount <- cbind(files,theCount)
  theCount <- theCount[,-4]
  return(theCount)
}

Try the inDAGO package in your browser

Any scripts or data that you put into this service are public.

inDAGO documentation built on Aug. 8, 2025, 7:47 p.m.