Wrapper function for ctk's CIMS
ctk_cims(
filesToRun,
mutationBedFile,
outFile = paste(file_path_sans_ext(fileToRun), "CIMS", "txt", sep = "."),
sb = "CIMS.pl",
perl = "perl",
PATHTOPERLLIB = NULL,
bigFile = FALSE,
mutationSize = 1,
permutations = 5,
trackMutationPos = FALSE,
noSparseCorrect = FALSE,
FDR = 1,
mfr = 0,
cacheDir = paste0(filesToRun, "_cache", paste(sample(letters, 10), collapse = "")),
stderr = file.path(dirname(fileToRun), paste0(basename(fileToRun), "_cims_stderr.txt")),
stdout = file.path(dirname(fileToRun), paste0(basename(fileToRun), "_cims_stdout.txt")),
useClipRConda = ifelse(is.null(getOption("CLIPflexR.condaEnv")), FALSE, TRUE),
additional_Args = NULL,
verbose = FALSE,
writelog = T
)
path to file to process (BED).
mutation BED file.
path to output file (BED & text).
path to CIMS.pl from CTK.
path to PERL.
path to PERL5LIB.
big file, TRUE or FALSE (default).
mutation size (default is 1).
number of iterations for permutation (default is 5).
track mutation position relative to read start, TRUE or FALSE (default).
no sparcity correction, TRUE or FALSE (default).
threshold of FDR (default is 1).
threshold of m-over-k-ratio (default is 0).
name for cache directory.
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 CIMS text & bed files.
if (FALSE) {
mutations <- system.file("extdata/BrdU.Fox.pool.tag.uniq.mutation.small.txt",package="CLIPflexR")
delBed <- ctk_getMutationType(mutations)
ctk_cims("~/Downloads/uniq_tags_mutations/Fox.pool.tag.uniq.rgb.bed",delBed,verbose=TRUE)
}