The TADBit algorithm works on raw chromosome interaction count data. The normalization is neither necessary nor recommended, since the data is assumed to be discrete counts.
TADBit is a breakpoint detection algorithm that returns the optimal segmentation of the chromosome under BIC-penalized likelihood. The model assumes that counts have a Poisson distribution and that the expected value of the counts decreases like a power-law with the linear distance on the chromosome. This expected value of the counts at position (i,j) is corrected by the counts at diagonal positions (i,i) and (j,j). This normalizes for different restriction enzynme site densities and ‘mappability’ of the reads in case a bin contains repeated regions.
Parameters: |
|
---|---|
Returns: | the list() of topologically associated domains’ boundaries, and the corresponding list associated log likelihoods. Depending on the value of the get_weights parameter, may also return weights. |
Use tadbit on directories of data files. All files in the specified directory will be considered data file. The presence of non data files will cause the function to either crash or produce aberrant results.
Each file has to contain the data for a single unit/chromosome. The files can be separated in sub-directories corresponding to single experiments or any other organization. Data files that should be considered replicates have to start with the same characters, until the character sep. For instance, all replicates of the unit ‘chr1’ should start with ‘chr1_’, using the default value of sep.
The data files are read through read.delim. You can pass options to read.delim through the list read_options. For instance if the files have no header, use read_options=list(header=FALSE) and if they also have row names, read_options=list(header=FALSE, row.names=1).
Other arguments such as max_size, n_CPU and verbose are passed to tadbit().
Parameters: | |
---|---|
Returns: | A list() where each element has the name of the unit/chromosome, and is the output of tadbit() run on the corresponding files assumed to be replicates |