Learn R Programming

LowMACA (version 1.4.2)

parallelize: Show and set parallelization options

Description

Method for objects of class LowMACA. It can show parallelization parameters of an object of class LowMACA and switch off and on parallelization of alignSequences and getMutations method

Usage

parallelize(object) parallelize(object) <- value

Arguments

object
object of class LowMaca
value
a named list containing logical values. Default list(getMutations=FALSE , makeAlignment=TRUE)

Value

If parallelize is used as a show method it returns a named list of two elements: getMutations and makeAlignment

Details

With getMutations=TRUE, the getMutations method runs in parallel during the queries to the different tumor_types. This can result in an overload to the cBioPortal database and the function returns error. With makeAlignment=TRUE, clustalo should run in parallel. Nevertheless, clustalo can be parallelized only if the OpenMP C library is correctly functioning.

See Also

getMutations

Examples

Run this code
#Construct a LowMACA object
lm <- newLowMACA(pfam="PF12906")
#Show parallelize default
parallelize(lm)
#Change all parameters
parallelize(lm) <- list(getMutations=TRUE , makeAlignment=FALSE)
#Change just one parameter
parallelize(lm)[['getMutations']] <- TRUE

Run the code above in your browser using DataLab