fastx_collapser: Wrapper function for fastx_collapser

View source: R/wrapperFunctions_fastxtoolkit.R

fastx_collapserR Documentation

Wrapper function for fastx_collapser

Description

Wrapper function for fastx_collapser

Usage

fastx_collapser(
  fileTofxc,
  outFile = file.path(dirname(fileTofxc), gsub("\\.fastq|\\.fq|\\.fa|\\.fasta",
    "_collapse.fasta", basename(fileTofxc))),
  fxc = "fastx_collapser",
  qEncoding = NULL,
  stderr = file.path(dirname(fileTofxc), paste0(basename(fileTofxc),
    "_fastx_collapse_stderr.txt")),
  stdout = file.path(dirname(fileTofxc), paste0(basename(fileTofxc),
    "_fastx_collapse_stdout.txt")),
  useClipRConda = ifelse(is.null(getOption("CLIPflexR.condaEnv")), FALSE, TRUE),
  additional_Args = NULL,
  verbose = FALSE,
  writelog = T
)

Arguments

fileTofxc

path to file to process (fastq or fasta).

outFile

output file name (will be formatted as a fasta).

fxc

path to fastx_collapser from FastX toolkit.

qEncoding

quality encoding, set to either 33 (Sanger Phred+33 encoding/Illumina fastq; default) or NULL (Phred+64 fastq or fasta)

stderr

path to stderr file.

stdout

path to stdout file.

useClipRConda

use conda environment installed by Herper, TRUE (default) or FALSE.

additional_Args

additional arguments to be passed to system call.

verbose

print messages to screen, TRUE or FALSE (default).

writelog

write stderr/stdout logs, TRUE (default) or FALSE.

Value

path to unzipped file

Author(s)

Kathryn Rozen-Gagnon

Examples

testFQ <- system.file("extdata/Fox3_Std_small.fq.gz",package="CLIPflexR")
FqFile <- decompress(testFQ,overwrite=TRUE)
FqFile_QF <- fastq_quality_filter(FqFile)
FqFile_QFCollapsed <- fastx_collapser(FqFile_QF)

kathrynrozengagnon/CLIPflexR documentation built on Dec. 8, 2022, 7:31 p.m.