
Last chance! 50% off unlimited learning
Sale ends in
verifies the reference sequence in a vcf
is.valid.ref(
x,
fasta = NULL,
strand = FALSE,
check.zero.based = TRUE,
check.chr = TRUE,
check.valid = TRUE,
check.sort = TRUE,
check.merge = TRUE,
verbose = TRUE
)
a logical vector the length of the input
input bed object
a reference build in fasta format
should strand be used. if reverse then the sequence will be reverse complemented
should 0 based coordinates be checked
should chr prefix be checked
should the region be checkded for integerity
should regions be checked for sort order
should overlapping regions be checked
should log messages and checking take place
Daryl Waggott
vcf.path <- system.file("extdata/callerA.vcf.gz", package = "bedr");
vcf.data <- read.vcf(vcf.path, split.info = TRUE);
vcf.data$vcf <- vcf.data$vcf[,
c("CHROM", "POS", "END", setdiff(colnames(vcf.data$vcf), c("CHROM", "POS", "END")))
];
vcf.data$vcf$CHROM <- paste("chr", vcf.data$vcf$CHROM, sep = "");
if (FALSE) {
# need reference sequence FASTA and index file to run this, as 'fasta' parameter
is.valid.ref(vcf.data);
}
Run the code above in your browser using DataLab