isExposureSet {decompTumor2Sig} | R Documentation

## isExposureSet

### Description

'isExposureSet()' checks whether the input object is a set (list) of numeric objects compatible with exposure output obtained from `decomposeTumorGenomes`.

### Usage

    isExposureSet(x)

### Arguments

`x` | Object to be checked.

### Value

Logical value (true or false).

### Author(s)

Rosario M. Piro
Freie Universitaet Berlin
Maintainer: Rosario M. Piro
E-Mail: <rmpiro@gmail.com> or <r.piro@fu-berlin.de>

### References

http://rmpiro.net/decompTumor2Sig/
Krueger, Piro (2018) decompTumor2Sig: Identification of mutational signatures active in individual tumors. BMC Bioinformatics (accepted for publication).
Krueger, Piro (2017) Identification of Mutational Signatures Active in Individual Tumors. NETTAB 2017 - Methods, Tools & Platforms for Personalized Medicine in the Big Data Era, October 16-18, 2017, Palermo, Italy. PeerJ Preprints 5:e3257v1, 2017.

### See Also

`decompTumor2Sig`
`decomposeTumorGenomes`

### Examples

    ### get Alexandrov signatures from COSMIC
    signatures <- readAlexandrovSignatures()

    ### load reference genome
    refGenome <- BSgenome.Hsapiens.UCSC.hg19::BSgenome.Hsapiens.UCSC.hg19

    ### read breast cancer genomes from Nik-Zainal et al (PMID: 22608084)
    gfile <- system.file("extdata",
             "Nik-Zainal_PMID_22608084-VCF-convertedfromMPF.vcf.gz",
             package="decompTumor2Sig")
    genomes <- readGenomesFromVCF(gfile, numBases=3, type="Alexandrov",
             trDir=FALSE, refGenome=refGenome, verbose=FALSE)

    ### compute exposures
    exposures <- decomposeTumorGenomes(genomes, signatures, verbose=FALSE)

    isExposureSet(exposures)

[Package decompTumor2Sig version 2.0.0 Index]