plotSig: Plot the signature ratio

Description Usage Arguments Value Examples

Description

Plot the signature ratio

Usage

1
2
plotSig(trTmMut, tmSite, country, tmMutRef = mSigdb, sampleId,
  contexts.needed = FALSE, tri.counts.method = "default")

Arguments

trTmMut

Either a data frame or location of input text file, where rows are samples, columns are trinucleotide contexts. Use data(randomly.generated.tumors) to see the example data.

tmSite

Site of sample.

country

Country of sample.

tmMutRef

Location of the mutation file that is to be converted or name of data frame in environment. "tmMutRef" is the standard signature value for one site and one country. Default value is "mSigdb" that convert from "mSignatureDB" database. USe data("mSigdb") to see the example dasta.

sampleId

Name of sample.

contexts.needed

FALSE if tumor.file is a context file, TRUE if it is only mutation counts.

tri.counts.method

Set to either:

  • 'default' – no further normalization

  • 'exome' – normalized by number of times each trinucleotide context is observed in the exome

  • 'genome' – normalized by number of times each trinucleotide context is observed in the genome

  • 'exome2genome' – multiplied by a ratio of that trinucleotide's occurence in the genome to the trinucleotide's occurence in the exome

  • 'genome2exome' – multiplied by a ratio of that trinucleotide's occurence in the exome to the trinucleotide's occurence in the genome

  • data frame containing user defined scaling factor – count data for each trinucleotide context is multiplied by the corresponding value given in the data frame

Value

Plot a histogram to compare sample and ref.

Examples

1
testPlot = plotSig(trTmMut = sample.mut.trans, tmSite = "bone", country = "UK", sampleId = "1", contexts.needed = TRUE)

13thirteen-w/Rpackage_cpSig documentation built on May 8, 2019, 1:42 p.m.