getMutations: Retrieve mutation data for a LowMACA object

getMutationsR Documentation

Retrieve mutation data for a LowMACA object

Description

Using the cBioPortalData package, this method downloads and parse the mutation data of the specified genes in the selected tumor types. It also aggregates and show the frequencies of mutations of every gene in the different tumor types.

Usage

getMutations(object, repos = NULL)

Arguments

object

a LowMACA class object

repos

a data.frame containing mutations for the specified genes in the LowMACA object in case of custom mutation data. Default NULL

Details

With repos=NULL, the method is a wrapper around mutationData method from package cBioPortalData. The output of the method is moduled by the parameters in lmParams("LowMACA_object"). See lmParams for further information.

Value

An object of class LowMACA is returned with an update in the slot mutations. See lmMutations method.

Author(s)

Stefano de Pretis , Giorgio Melloni

See Also

lmParams mutationData lmMutations

Examples

#Create an object of class LowMACA
lm <- newLowMACA(pfam="PF12906")
#Change some paramters
#By default, LowMACA retrieve only missense mutations.
#We want all mutations
lmParams(lm)[['mutation_type']] <- 'all'
#By default, LowMACA takes mutations from all the kinds of tumor
#We want just prostate cancer samples
lmParams(lm)[['tumor_type']] <- 'prad'
lm <- getMutations(lm)

ste-depo/LowMACA documentation built on Oct. 15, 2022, 11:53 p.m.