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

1
2
parallelize(object)
parallelize(object) <- value

Arguments

object

object of class LowMaca

value

a named list containing logical values. Default list(getMutations=FALSE , makeAlignment=TRUE)

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.

Value

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

Author(s)

Stefano de Pretis , Giorgio Melloni

See Also

getMutations

Examples

1
2
3
4
5
6
7
8
#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