View source: R/generic.process.R
generic.process | R Documentation |
generic.process
handles the whole analysis of a series of .fsa files according to the pipeline described in the user-provided design file, generating tabular and graphical profiles.
generic.interface
summons a Tcl-Tk interface to call generic.process
interactively.
generic.process(input, design, output, include = NULL, exclude = NULL,
progressBar = NULL)
generic.interface()
input |
Single character value, the path to a directory containing .fsa files to analyse. Notice it will be explored recursively, so sub-directories are allowed. |
design |
Single character value, the path to a design file, as handled by |
output |
Single character value, the path to a ".pdf" or ".log" file that will be created during the analysis. |
include |
Single character value, a regular expression files (with relative path) in |
exclude |
Single character value, a regular expression files (with relative path) in |
progressBar |
A |
The content of the analysis pipeline is fully controlled by the design file, see designFile
for details and the examples
section below for two working examples provided in the package.
More generally, generic.process
loops over the list of .fsa files in the input
directory and calls the requested functions one after the other, updating the fsa
object at each step.
Return nothing. generic.process
raise errors, warnings and messages which are intercepted by generic.interface
and redirected to the log file (output
.log).
Sylvain Mareschal
Mareschal, Ruminy et al (2015) <doi:10.1016/j.jmoldx.2015.01.007> "Accurate Classification of Germinal Center B-Cell-Like/Activated B-Cell-Like Diffuse Large B-Cell Lymphoma Using a Simple and Rapid Reverse Transcriptase-Multiplex Ligation-Dependent Probe Amplification Assay: A CALYM Study"
designFile
### EXAMPLE 1 : Gene expression (RT-MLPA) ###
# Working in temporary directory
output <- sprintf("%s/GEP", tempdir())
# See files before analysis
dir(system.file("extdata", package="FSAtools"))
# Launch analysis in package directory
generic.process(
input = system.file("extdata/fsa_GEP", package="FSAtools"),
design = system.file("extdata/design_GEP.conf", package="FSAtools"),
output = output
)
# List resulting files
dir(dirname(output), full.names=TRUE)
### EXAMPLE 2 : Genotyping ###
# Working in temporary directory
output <- sprintf("%s/SNP", tempdir())
# See files before analysis
dir(system.file("extdata", package="FSAtools"))
# Launch analysis in package directory
generic.process(
input = system.file("extdata/fsa_SNP", package="FSAtools"),
design = system.file("extdata/design_SNP.conf", package="FSAtools"),
output = output
)
# List resulting files
dir(dirname(output), full.names=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.