Description Usage Arguments Value Examples
View source: R/sequence_context.R
Get sequence context for a VRanges
object of the varscan pileup2cns output
1 | sequence_context(sample, genome, context = 3)
|
sample |
|
genome |
Genome of input object, either hg19 or hg38 |
context |
Number of nucleotides to return. For example, 3 would return three nucleotides with the position of the variant being the middle nucleotide. |
This function returns the VRanges
object with the additional metadata column context
.
1 2 3 4 5 6 | ## Not run:
variants <- load_as_VRanges(sample_name = "pt123",
sample_path = "./patient_123_pileup2cns", genome = "hg19", metadata = TRUE)
variants <- sequence_context(sample = variants, context = 3)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.