Wrapper function for ctk's fastq_filter
ctk_fastqFilter(
filesToRun,
outFile = file.path(dirname(fileToRun), paste("FF_", basename(fileToRun), sep = "")),
sb = "fastq_filter.pl",
perl = "perl",
PATHTOPERLLIB = NULL,
fastqFormat = "sanger",
indexPosition = NULL,
qsFilter = NULL,
maxN = NULL,
outputFormat = "fastq",
stderr = file.path(dirname(fileToRun), paste0(basename(fileToRun),
"_ctk_fastqFilter_stderr.txt")),
stdout = file.path(dirname(fileToRun), paste0(basename(fileToRun),
"_ctk_fastqFilter_stdout.txt")),
useClipRConda = ifelse(is.null(getOption("CLIPflexR.condaEnv")), FALSE, TRUE),
additional_Args = NULL,
verbose = FALSE,
writelog = T
)
path to file to process (fastq).
output file (fastq).
path to fastq_filter.pl from CTK.
path to PERL.
path to PERL5LIB.
fastq format used, can be "sanger" (default) or "solexa".
position and sequence of index in read, default is NULL; set "position:seqeunce" to specify (e.g. "1:CATCGC").
set quality score filter, default is NULL; set method:start-end:score to specify (e.g. "mean:0-29:20"; starts/ends are 0-based).
maximum number of unknown nucleotides (N) allowed, default is NULL; set to integer to specify.
output format, "fastq" (default) or "fasta".
path to stdout file.
path to stdout file.
use conda environment installed by Herper, TRUE (default) or FALSE.
additional arguments to be passed to system call.
print messages, TRUE or FALSE (default).
write stderr/stdout logs, TRUE (default) or FALSE.
Path to filtered file in specified format.
testFQ <- system.file("extdata/Fox3_Std_small.fq.gz",package="CLIPflexR")
FqFile_FF <- ctk_fastqFilter(testFQ,qsFilter = "mean:0-29:20",verbose=TRUE)
#> fastq_filter.pl command is /Users/runner/Library/r-miniconda/envs/CLIPflexR_0.1.20/bin/ctk/fastq_filter.pl
#> fastq_filter.pl arguments are /Users/runner/Library/r-miniconda/envs/CLIPflexR_0.1.20/bin/ctk/fastq_filter.pl -if sanger -of fastq -f mean:0-29:20 /Users/runner/work/_temp/Library/CLIPflexR/extdata/Fox3_Std_small.fq.gz /Users/runner/work/_temp/Library/CLIPflexR/extdata/FF_Fox3_Std_small.fq.gz