View source: R/SummarizePairs.R
SummarizePairs | R Documentation |
Given LinkedPairs
object and a DECIPHER
database, return a data.frame of summarized genomic feature pairs. SummarizePairs
will collect all the linked genomic features in the supplied LinkedPairs-class
object and return descriptions of the alignments of those features.
SummarizePairs(SynExtendObject,
DataBase01,
IncludeIndexSearch = TRUE,
AlignmentFun = "AlignPairs",
RetainAnchors = TRUE,
DefaultTranslationTable = "11",
KmerSize = 5,
IgnoreDefaultStringSet = FALSE,
Verbose = FALSE,
ShowPlot = FALSE,
Processors = 1,
Storage = 2,
IndexParams = list("K" = 6),
SearchParams = list("perPatternLimit" = 1),
...)
SynExtendObject |
An object of class |
DataBase01 |
A character string pointing to a SQLite database, or a connection to a |
IncludeIndexSearch |
A logical determining whether to include |
AlignmentFun |
A character string specifying a |
RetainAnchors |
An argument that only affects |
DefaultTranslationTable |
A character vector of length 1 identifying the translation table to use if one is not supplied in the |
KmerSize |
An integer specifying what Kmer size to collect Kmer distance between sequences at. |
IgnoreDefaultStringSet |
Translate all sequences in nucleotide space. |
Verbose |
Logical indicating whether or not to display a progress bar and print the time difference upon completion. |
ShowPlot |
Logical indicating whether or not to provide a plot of features collected by the function. Currently not implemented. |
Processors |
An integer value indicating how many processors to supply to |
Storage |
A soft memory limit for how much sequence data from the database to retain in memory while running. In Gb. |
IndexParams |
Arguments to be passed to |
SearchParams |
Arguments to be passed to |
... |
Additional arguments to pass to interior functions. Currently not implemented. |
SummarizePairs
collects features describing each linked feature pair. These include an alignment PID, an alignment Score, a Kmer distance, a concensus score for the linking hits –or whether or not linking hits are in similar places in each feature– and a few other features.
An object of class PairSummaries
.
Nicholas Cooley npc19@pitt.edu
PrepareSeqs
, NucleotideOverlap
, FindSynteny
, LinkedPairs-class
library(RSQLite)
DBPATH <- system.file("extdata",
"Endosymbionts_v02.sqlite",
package = "SynExtend")
tmp <- tempfile()
system(command = paste("cp",
DBPATH,
tmp))
DBCONN <- dbConnect(SQLite(), tmp)
data("Endosymbionts_LinkedFeatures", package = "SynExtend")
PrepareSeqs(SynExtendObject = Endosymbionts_LinkedFeatures,
DataBase01 = DBCONN,
Verbose = TRUE)
SummarizedPairs <- SummarizePairs(SynExtendObject = Endosymbionts_LinkedFeatures,
DataBase01 = DBCONN,
Verbose = TRUE)
dbDisconnect(DBCONN)
unlink(tmp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.