Axt-class | R Documentation |
"Axt"
The Axt S4 object to hold a axt file.
## Constructors: Axt(targetRanges=GRanges(), targetSeqs=DNAStringSet(), queryRanges=GRanges(), querySeqs=DNAStringSet(), score=integer(0), symCount=integer(0), names=NULL) ## Accessor-like methods: ## S4 method for signature 'Axt' targetRanges(x) ## S4 method for signature 'Axt' targetSeqs(x) ## S4 method for signature 'Axt' queryRanges(x) ## S4 method for signature 'Axt' querySeqs(x) ## S4 method for signature 'Axt' score(x) ## S4 method for signature 'Axt' symCount(x) ## ... and more (see Methods)
targetRanges |
Object of class |
targetSeqs |
Object of class |
queryRanges |
Object of class |
querySeqs |
Object of class |
score |
Object of class |
symCount |
Object of class |
names |
|
x |
Object of class |
In ‘axt’ files and Axt
object, the ‘targetRanges’
also have the alignments on positive strands.
However, the ‘queryRanges’ can have alignments on negative strands,
and the coordinates are based on negative strands, which is quite
different from the convention in Bioconductor.
To convert the coordinates of alignments on the negative strand to
the positive strand, use normaliseStrand
.
signature(x = "Axt", i = "ANY", j = "ANY")
: Axt getter
signature(x = "Axt")
: Axt concatenator.
signature(x = "Axt")
: Get the number of alignments.
signature(x = "Axt")
:
Get the ranges of query genome.
signature(x = "Axt")
:
Get the alignment sequences of query genome.
signature(x = "Axt")
: Get the alignment score.
signature(x = "Axt")
: Get the alignment lengths.
signature(x = "Axt")
:
Get the ranges of reference genome.
signature(x = "Axt")
:
Get the alignment sequences of reference genome.
Ge Tan
readAxt
writeAxt
subAxt
fixCoordinates
makeAxtTracks
library(GenomicRanges) library(Biostrings) ## Constructor targetRanges <- GRanges(seqnames=c("chr1", "chr1", "chr2", "chr3"), ranges=IRanges(start=c(1, 20, 2, 3), end=c(10, 25, 10, 10)), strand="+") targetSeqs <- DNAStringSet(c("ATTTTATGTG", "GGGAAG", "GGGCTTTTG", "TTGTGTAG")) queryRanges <- GRanges(seqnames=c("chr1", "chr10", "chr10", "chr20"), ranges=IRanges(start=c(1, 25, 50, 5), end=c(10, 30, 58, 12)), strand="+") querySeqs <- DNAStringSet(c("ATTTAAAGTG", "GGAAAA", "GGGCTCTGG", "TTAAATAA")) score <- c(246L, 4422L, 5679L, 1743L) symCount <- c(10L, 6L, 9L, 8L) axt <- Axt(targetRanges=targetRanges, targetSeqs=targetSeqs, queryRanges=queryRanges, querySeqs=querySeqs, score=score, symCount=symCount) ## getters names(axt) length(axt) first(axt) last(axt) seqnames(axt) strand(axt) seqinfo(axt) ## Vector methods axt[1] ## List methods unlist(axt) ## Combining c(axt, axt)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.