Description Usage Arguments Value Examples
This function performs binning
, univariate peak calling
and multivariate peak calling
from a list of input files.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | Chromstar(
inputfolder,
experiment.table,
outputfolder,
configfile = NULL,
numCPU = 1,
binsize = 1000,
stepsize = binsize/2,
assembly = NULL,
chromosomes = NULL,
remove.duplicate.reads = TRUE,
min.mapq = 10,
format = NULL,
prefit.on.chr = NULL,
eps.univariate = 0.1,
max.time = NULL,
max.iter = 5000,
read.cutoff.absolute = 500,
keep.posteriors = TRUE,
mode = "differential",
max.states = 128,
per.chrom = TRUE,
eps.multivariate = 0.01,
exclusive.table = NULL
)
|
inputfolder |
Folder with either BAM or BED-6 (see |
experiment.table |
A |
outputfolder |
Folder where the results and intermediate files will be written to. |
configfile |
A file specifying the parameters of this function (without |
numCPU |
Number of threads to use for the analysis. Beware that more CPUs also means more memory is needed. If you experience crashes of R with higher numbers of this parameter, leave it at |
binsize |
An integer specifying the bin size that is used for the analysis. |
stepsize |
An integer specifying the step size for analysis. |
assembly |
A |
chromosomes |
If only a subset of the chromosomes should be imported, specify them here. |
remove.duplicate.reads |
A logical indicating whether or not duplicate reads should be removed. |
min.mapq |
Minimum mapping quality when importing from BAM files. Set |
format |
One of |
prefit.on.chr |
A chromosome that is used to pre-fit the Hidden Markov Model. Set to |
eps.univariate |
Convergence threshold for the univariate Baum-Welch algorithm. |
max.time |
The maximum running time in seconds for the Baum-Welch algorithm. If this time is reached, the Baum-Welch will terminate after the current iteration finishes. The default |
max.iter |
The maximum number of iterations for the Baum-Welch algorithm. The default |
read.cutoff.absolute |
Read counts above this value will be set to the read count specified by this value. Filtering very high read counts increases the performance of the Baum-Welch fitting procedure. However, if your data contains very few peaks they might be filtered out. If option |
keep.posteriors |
If set to |
mode |
One of
|
max.states |
The maximum number of states to use in the multivariate part. If set to |
per.chrom |
If set to |
eps.multivariate |
Convergence threshold for the multivariate Baum-Welch algorithm. |
exclusive.table |
A |
NULL
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Prepare the file paths. Exchange this with your input and output directories.
inputfolder <- system.file("extdata","euratrans", package="chromstaRData")
outputfolder <- file.path(tempdir(), 'SHR-example')
## Define experiment structure
data(experiment_table_SHR)
## Define assembly
# This is only necessary if you have BED files, BAM files are handled automatically.
# For common assemblies you can also specify them as 'hg19' for example.
data(rn4_chrominfo)
## Run ChromstaR
Chromstar(inputfolder, experiment.table=experiment_table_SHR,
outputfolder=outputfolder, numCPU=4, binsize=1000, assembly=rn4_chrominfo,
prefit.on.chr='chr12', chromosomes='chr12', mode='combinatorial', eps.univariate=1,
eps.multivariate=1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.