R/dimsum__filter_reads_helper.R

Defines functions dimsum__filter_reads_helper

Documented in dimsum__filter_reads_helper

#' dimsum__filter_reads_helper
#'
#' Helper function to filter reads. "dimsum_meta", "vsearch_outpath", "sample_names" and "dimsum__filter_reads" objects need to be available globally.
#'
#' @param i "sample_names" index (required)
#'
#' @return Nothing
#' @export
dimsum__filter_reads_helper <- function(
  i
  ){
  temp_out <- dimsum__filter_reads(
    input_FASTQ = file.path(vsearch_outpath, paste0(sample_names[i], '.vsearch.prefilter')),
    input_REPORT = file.path(vsearch_outpath, paste0(sample_names[i], '.report.prefilter')),
    output_FASTQ = file.path(vsearch_outpath, paste0(sample_names[i], '.vsearch')),
    output_REPORT = file.path(vsearch_outpath, paste0(sample_names[i], '.report')),
    min_qual = dimsum_meta[["vsearchMinQual"]])
}
lehner-lab/DiMSum documentation built on Oct. 6, 2021, 1:15 a.m.