Description Usage Arguments Value Author(s) References See Also Examples
View source: R/convertGenomesFromVRanges.R
'convertGenomesFromVRanges()' converts the SNVs of a single tumor genome
(sample) or a set of genomes from a VRanges object (package
VariantAnnotation) and determines the mutation frequencies according
to a specific model of mutational signatures (Alexandrov or Shiraishi),
such that the resulting format can be used as genomes input for
decomposeTumorGenomes.
| 1 2 3 4 5 6 | convertGenomesFromVRanges(vranges, numBases=5, type="Shiraishi",
trDir=TRUE, enforceUniqueTrDir=TRUE, 
refGenome=BSgenome.Hsapiens.UCSC.hg19::BSgenome.Hsapiens.UCSC.hg19,
transcriptAnno=
TxDb.Hsapiens.UCSC.hg19.knownGene::TxDb.Hsapiens.UCSC.hg19.knownGene,
verbose=TRUE)
 | 
| vranges | (Mandatory) The  | 
| numBases | (Mandatory) Total number of bases (mutated base and flanking bases) to be used for sequence patterns. Must be odd. Default: 5 | 
| type | (Mandatory) Signature model or type ( | 
| trDir | (Mandatory) Specifies whether the transcription direction is
taken into account in the signature model. If so, only mutations within
genomic regions with a defined transcription direction can be considered.
Default:  | 
| enforceUniqueTrDir | (Optional) Used only if  | 
| refGenome | (Mandatory) The reference genome ( | 
| transcriptAnno | (Optional) Transcript annotation ( | 
| verbose | (Optional) Print information about reading and processing
the mutation data. Default:  | 
A list containing the genomes in terms of frequencies of the
mutated sequence patterns. This list of genomes can be used for
decomposeTumorGenomes.
Rosario M. Piro
 Politecnico di Milano
 Maintainer: Rosario
M. Piro
 E-Mail: <rmpiro@gmail.com> or <rosariomichael.piro@polimi.it>
http://rmpiro.net/decompTumor2Sig/
Krueger, Piro (2019) decompTumor2Sig: Identification of mutational
signatures active in individual tumors. BMC Bioinformatics 
20(Suppl 4):152.
decompTumor2Sig
decomposeTumorGenomes
readGenomesFromVCF
readGenomesFromMPF
getGenomesFromMutFeatData
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | ### load the reference genome and the transcript annotation database
refGenome <- BSgenome.Hsapiens.UCSC.hg19::BSgenome.Hsapiens.UCSC.hg19
transcriptAnno <-
  TxDb.Hsapiens.UCSC.hg19.knownGene::TxDb.Hsapiens.UCSC.hg19.knownGene
### take the breast cancer genomes from Nik-Zainal et al (PMID: 22608084) 
gfile <- system.file("extdata",
         "Nik-Zainal_PMID_22608084-VCF-convertedfromMPF.vcf.gz", 
         package="decompTumor2Sig")
### get the corresponding VRanges object (using the VariantAnnotation
### package)
library(VariantAnnotation)
vr <- readVcfAsVRanges(gfile, genome="hg19")
### convert the VRanges object to the decompTumor2Sig format
genomes <- convertGenomesFromVRanges(vr, numBases=5, type="Shiraishi",
         trDir=TRUE, enforceUniqueTrDir=TRUE, refGenome=refGenome, 
         transcriptAnno=transcriptAnno, verbose=FALSE)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.