powered by
verifies that sequences are correct given coordinates and a reference
is.valid.seq( x, querySeq, 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 querySeq
input bed object
a vector of sequences the same length as x
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, Syed Haider
if (check.binary("bedtools")) { index <- get.example.regions(); a <- index[[1]]; a <- get.fasta(bedr.sort.region(a)); is.valid.seq(x = a, querySeq = a$sequence); }
Run the code above in your browser using DataLab