The plotVmat.GRanges() method computes and normalizes multiple Vmats before passing them to plotVmat.VmatList() method.
list Each element of the list should be a list containing paired-end fragments and GRanges of interest.
Integer, number of cores to parallelize the plots
Integer, number of threads to parallelize fragments subsetting
Integer, how many rows in facet?
Integer, how many cols in facet?
x limits of the computed Vmat
y limits of the computed Vmat
character. A Vmat should be scaled either by:
'libdepth+nloci', e.g. the library depth and the number of loci used to compute the Vmat;
zscore, if relative patterns of fragment density are more important than density per se;
Alternatively, the Vmat can be scaled to a chosen quantile ('quantile') or to the max Vmat value ('max').
A float indicating which quantile to use if 'quantile' normalization is chosen
integer, to use as the window to smooth the Vmat rows by rolling mean.
Boolean, should the function return the computed Vmat rather than the plot?
Boolean
additional parameters
A list of Vmat ggplots
data(bam_test)
data(ce11_proms)
list_params <- list(
'germline' = list(
bam_test,
ce11_proms[ce11_proms$which.tissues == 'Germline']
),
'muscle' = list(
bam_test,
ce11_proms[ce11_proms$which.tissues == 'Muscle']
)
)
V <- plotVmat(
list_params,
normFun = 'libdepth+nloci',
roll = 5
)
#> - Processing sample 1/2
#> - Processing sample 2/2