Created
January 10, 2025 14:42
-
-
Save tbrittoborges/9033a7f80145077755f0a1f3f1896042 to your computer and use it in GitHub Desktop.
converting seqname among different database styles
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (!require("BiocManager", quietly = TRUE)) | |
install.packages("BiocManager") | |
BiocManager::install("VariantAnnotation") | |
library("VariantAnnotation") | |
vcf <- readVcf("/home/aschuhegger/genomics/mills_and_1000G.indels.vcf.gz") | |
vcf@rowRanges | |
seqlevelsStyle(vcf@rowRanges) <- 'Ensembl' | |
vcf@rowRanges |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
R is available with module load R