R/archive/q2_metaphlan2.R

Defines functions q2_metaphlan2

#' Runs metaphlan2.py on fastq files to assign taxonomy
#'
#' @param input fastq file path
#'
#' @return
#' @export
#'
#' @examples
q2_metaphlan2 <- function(input, bowtiedb, bowtieout, outfile) {
  program = "inst/metaphlan.sh"
  command = paste0(program,
                   " -i ", input,
                   " -d ", bowtiedb,
                   " -b ", bowtieout,
                   " -o ", outfile)
  print("Running following command in shell:")
  print(command)
  system(command)
}
uashogeschoolutrecht/structural_colours documentation built on June 20, 2020, 4:07 p.m.