Description Usage Arguments Value Author(s) See Also Examples
View source: R/callMutationBurden.R
This function provides detailed mutation burden information.
1 2 3 4 5 6 7 8 9 10 11 |
res |
Return object of the |
id |
Candidate solution to extract mutation burden from.
|
remove.flagged |
Remove variants flagged by
|
min.prior.somatic |
Exclude variants with somatic prior probability lower than this cutoff. |
max.prior.somatic |
Exclude variants with somatic prior probability higher than this cutoff. This is useful for removing hotspot mutations in small panels that might inflate the mutation burden. |
min.cellfraction |
Exclude variants with cellular fraction lower than this cutoff. These are sub-clonal mutations or artifacts with very low allelic fraction. |
fun.countMutation |
Function that can be used to filter the
input VCF further for filtering, for example to only keep missense
mutations. Expects a |
callable |
|
exclude |
|
Returns data.frame
with mutation counts and sizes
of callable regions.
Markus Riester
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | data(purecn.example.output)
callMutationBurden(purecn.example.output)
# To calculate exact mutations per megabase, we can provide a BED
# file containing all callable regions
callableBed <- import(system.file("extdata", "example_callable.bed.gz",
package = "PureCN"))
# We can exclude some regions for mutation burden calculation,
# for example intronic regions.
exclude <- GRanges(seqnames="chr1", IRanges(start=1,
end=max(end(callableBed))))
# We can also exclude specific mutations by filtering the input VCF
myVcfFilter <- function(vcf) seqnames(vcf)!="chr2"
callsCallable <- callMutationBurden(purecn.example.output,
callable=callableBed, exclude=exclude, fun.countMutation=myVcfFilter)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.