Description Usage Arguments Value Author(s) See Also Examples
View source: R/predictSomatic.R
This function takes as input the output of a runAbsoluteCN
run
and provides SNV posterior probabilities for all possible states.
1 | predictSomatic(res, id = 1, return.vcf = FALSE)
|
res |
Return object of the |
id |
Candidate solutions to be analyzed. |
return.vcf |
Returns an annotated |
A data.frame
or CollapsedVCF
with SNV state posterior
probabilities.
Markus Riester
1 2 3 4 5 6 7 8 9 10 11 12 | data(purecn.example.output)
# the output data was created using a matched normal sample, but in case
# no matched normal is available, this will help predicting somatic vs.
# germline status
purecnSnvs <- predictSomatic(purecn.example.output)
# Prefer GRanges?
purecnSnvs <- GRanges(predictSomatic(purecn.example.output))
# write a VCF file
purecnVcf <- predictSomatic(purecn.example.output, return.vcf=TRUE)
writeVcf(purecnVcf, file = "Sample1_PureCN.vcf")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.