Description Format Value Constructor Methods Methods Examples
This class will allow to load, convert and normalize alignments and regions files/data.
A BAM manager
Bam_Handler$new
returns a Bam_Handler
object which contains
coverage related information for every BAM files.
bh <- Bam_Handler$new(bam_files, cores = SerialParam())
A vector
of BAM filenames. The BAM files must be
indexed. i.e.: if a file is named file.bam, there must
be a file named file.bam.bai or file.bai in the same
directory.
The number of cores available to parallelize the analysis.
Either a positive integer or a BiocParallelParam
.
Default: SerialParam()
.
If TRUE
, metagene will deal with paired-end
data. If FALSE
, single-end data are expected
Bam_Handler$new
returns a Bam_Handler
object that contains
and manages BAM files. Coverage related information as alignment count can
be obtain by using this object.
bh$get_aligned_count(bam_file)
The name of the BAM file.
bg$get_bam_name(bam_file)
The name of the BAM file.
bh$get_rpm_coefficient(bam_file)
The name of the BAM file.
bh$index_bam_files(bam_files)
A vector
of BAM filenames.
bh$get_bam_files()
bh$get_coverage(bam_file, regions)
force_seqlevels = FALSE)
The name of the BAM file.
A not empty GRanges
object.
If TRUE
, Remove regions that are not found
in bam file header. Default: FALSE
. TRUE and FALSE
respectively correspond to pruning.mode = "coarse"
and "error" in ?seqinfo.
bh$get_normalized_coverage(bam_file, regions)
force_seqlevels = FALSE)
The name of the BAM file.
A not empty GRanges
object.
If TRUE
, Remove regions that are not found
in bam file header. Default: FALSE
. TRUE and FALSE
respectively correspond to pruning.mode = "coarse"
and "error" in ?seqinfo.
The path to the chip bam file.
The path to the input (control) bam file.
new()
Bam_Handler$new( bam_files, cores = SerialParam(), paired_end = FALSE, strand_specific = FALSE, paired_end_strand_mode = 2, extend_reads = 0, invert_strand = FALSE )
get_bam_name()
Bam_Handler$get_bam_name(bam_file)
get_aligned_count()
Bam_Handler$get_aligned_count(bam_file)
get_rpm_coefficient()
Bam_Handler$get_rpm_coefficient(bam_file)
index_bam_files()
Bam_Handler$index_bam_files(bam_files)
get_bam_files()
Bam_Handler$get_bam_files()
get_coverage()
Bam_Handler$get_coverage( bam_file, regions, force_seqlevels = FALSE, simplify = TRUE )
get_normalized_coverage()
Bam_Handler$get_normalized_coverage( bam_file, regions, force_seqlevels = FALSE, simplify = TRUE )
clone()
The objects of this class are cloneable with this method.
Bam_Handler$clone(deep = FALSE)
deep
Whether to make a deep clone.
1 2 3 | bam_file <- get_demo_bam_files()[1]
bh <- metagene2:::Bam_Handler$new(bam_files = bam_file)
bh$get_aligned_count(bam_file)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.