View source: R/amplicon-utils.R
sv_amplicons2 | R Documentation |
This function constructs an AmpliconGraph
from a
BamViews
object for a single sample. By default, the seeds
of the graph are focal amplicons with fold-change of nearly 3
relative to the diploid genome (log2(2.75)). The threshold of
seeding amplicons can be adjusted by the ampliconParams
function. After seeding the graph with high-copy focal amplicons,
both neighboring (flanking) and distant low-copy focal amplicons
are added to the graph object. Next, improperly paired reads in
which both the first and last read align to any queryRange of the
graph object are parsed from the bam file ( this function will
throw an error if not all files in bamPaths
exist). If 5 or
more improperly paired reads bridge a node to another node, these
amplicons are grouped. Further, if a low-copy amplicon is bridged
to an existing node, the low-copy amplicon will become a node in
the graph. Amplicon groups are defined by the edges between nodes,
where the edges represent improperly paired reads that support a
junction between two amplicons.
sv_amplicons2(preprocess, amplicon_filters, params = ampliconParams())
preprocess |
a list of the preprocessed data (see |
amplicon_filters |
a |
params |
a list of parameters for the amplicon analysis. Default parameters
are given by |
an AmpliconGraph
object
See ampliconParams
for default parameters. The
wrapper sv_amplicon_exp
constructs and saves an
AmpliconGraph
for each sample in an
experiment.
data(pdata)
pdata$bam.file <- system.file("extdata", "cgov44t_revised.bam",
package="svbams")
sv_amplicons2(pdata)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.