fastq_to_fasta: Wrapper function for fastq_to_fasta

fastq_to_fastaR Documentation

Wrapper function for fastq_to_fasta

Description

Wrapper function for fastq_to_fasta

Usage

fastx_qtoa(
  fileToc,
  fqa = "fastq_to_fasta",
  discard_N = T,
  rename = F,
  outFile = paste0(file_path_sans_ext(fileToc), ".fa"),
  writelog = T,
  qEncoding = 33,
  stderr = file.path(dirname(fileToc), paste0(basename(fileToc), "_qtoa_stderr.txt")),
  stdout = file.path(dirname(fileToc), paste0(basename(fileToc), "_qtoa_stdout.txt")),
  useClipRConda = ifelse(is.null(getOption("CLIPflexR.condaEnv")), FALSE, TRUE),
  additional_Args = NULL,
  verbose = FALSE
)

Arguments

fileToc

path to file to process (fastq).

fqa

path to fastx_trimmer from FastX toolkit.

discard_N

discard reads with unknown nucleotides (N), TRUE (default) or FALSE.

rename

replace sequence names with number identifiers, TRUE or FALSE (default).

outFile

output file path.

writelog

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

qEncoding

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

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).

Value

path to trimmed file

Author(s)

Kathryn Rozen-Gagnon

Examples

testFQ <- system.file("extdata/Fox3_Std_small.fq.gz",package="CLIPflexR")
FqFile_FF <- ctk_fastqFilter(testFQ,qsFilter = "mean:0-29:20",verbose=TRUE)
FqFile <- decompress(FqFile_FF,overwrite=TRUE)
FqFile_fa <- fastx_qtoa(FqFile)

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