metagene
metagene$new
returns a metagene
object which contains the
normalized coverage values for every regions and for every BAM files.
mg <- metagene$new(regions, bam_files, padding_size = 0,
cores = SerialParam(), verbose = FALSE,
force_seqlevels = FALSE)
vector
of BED, narrowPeak or broadPeak
filenames, a GRanges
object or a GRangesList
object.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 in the same directory.BiocParallelParam
.
Default: SerialParam()
.FALSE
.TRUE
, Remove regions that are not found
in bam file header. Default: FALSE
.metagene$new
returns a metagene
object that contains the
coverages for every BAM files in the regions from the regions
param.mg$plot(region_names = NULL, exp_names = NULL,
title = NULL, x_label = NULL)
NULL
,
all the regions are returned. Default: NULL
.metagene
object, exp_names
correspond to the column names in the design, otherwise
exp_names
corresponds to the BAM name or the BAM
filename. If NULL
, all the experiments are
returned. Default: NULL
.NULL
, will be
automatically created. Default: NULLNULL
,
metagene will use generic label. Default: NULL
.mg$produce_matrices(design, bin_count, noise_removal,
normalization, flip_regions, bin_size = NULL
data.frame
that describe to experiment to plot.
see plot
function for more details. NA
can be
used keep previous design value. Default: NA
.NA
can be used to
keep previous bin_count value. A bin_count value of 100
will be used if no value is specified. Default:
NA
.NA
, NULL
or "NCIS". By
default, value is NULL
. Use NA
keep
previous noise_removal
value (i.e. if
produce_matrices
was called before). See
Liand and Keles 2012 for the NCIS algorithm.NULL
and no normalization
will be performed. Use NA
keep
previous normalization
value (i.e. if
produce_matrices
was called before).FALSE
.mg$produce_data_frame(stat = "bootstrap", range = NULL
...)
1 - alpha / 2
and alpha / 2
(see ...
param.1 - alpha / 2
and alpha / 2
will be used.
Default: 0.05.NULL
,
all the regions are returned. Default: NULL
.NULL
,
all the regions are returned. Default: NULL
.metagene
object, exp_names
correspond to the column names in the design, otherwise
exp_names
corresponds to the BAM name or the BAM
filename. If NULL
, all the experiments are
returned. Default: NULL
.NULL
,
all the regions are returned. Default: NULL
.metagene
object, exp_names
correspond to the column names in the design, otherwise
exp_names
corresponds to the BAM name or the BAM
filename. If NULL
, all the experiments are
returned. Default: NULL
.NULL
, returns the
coverage of every bam files. Default: NULL
.NULL
,
returns the coverage every bam files. Default:
NULL
.mg$export(bam_file, region, file)
mg$add_design(design = NULL, check_bam_files = FALSE)
data.frame
that describe to experiment to plot.
See plot
function for more details. NA
can be
used keep previous design value. Default: NA
.FALSE
mg$unflip_regions()
mg$flip_regions()
mg$unflip_regions()
region <- get_demo_regions()[1]
bam_file <- get_demo_bam_files()[1]
mg <- metagene$new(regions = region, bam_files = bam_file)
## Not run:
# df <- metagene$plot()
# ## End(Not run)
Run the code above in your browser using DataLab