This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Conversion of VCF file to Vranges

I am using SomaticSignature Package for analysis of TCGA data. I have VCF file and need to convert it in vranges. How can I do this conversion.

r

1 answer

The following code should do it:

 vcf <- readVcf(x, genome = genome)
 vr <- as(vcf, "VRanges")

Log in to answer this question.