Hi-C experiment.
Parameters: |
|
---|
TODO: doc conditions TODO: normalization
Return the Hi-C matrix.
Returns: | list of lists representing the Hi-C data matrix of the current experiment |
---|
Normalize the Hi-C raw data. The result will be stored into the private Experiment._zscore list.
Parameters: |
|
---|
Add a Hi-C experiment to the Chromosome object.
Parameters: |
|
---|
Add the Topologically Associated Domains definition detection to Slice
Parameters: |
---|
Parameters: |
|
---|
parameters used to generate the models. The dictionary should contain the keys kforce, maxdist, upfreq and lowfreq. Examples can be seen by doing:
from pytadbit.imp.CONFIG import CONFIG
where CONFIG is a dictionarry of dictionnaries to be passed to this function:
::
CONFIG = {
'dmel_01': {
# use these paramaters with the Hi-C data from:
'reference' : 'victor corces dataset 2013',
# Force applied to the restraints inferred to neighbor particles
'kforce' : 5,
# Maximum experimental contact distance
'maxdist' : 600, # OPTIMIZATION: 500-1200
# Minimum and maximum thresholds used to decide which experimental values have to be
# included in the computation of restraints. Z-score values bigger than upfreq
# and less that lowfreq will be include, whereas all the others will be rejected
'upfreq' : 0.3, # OPTIMIZATION: min/max Z-score
'lowfreq' : -0.7 # OPTIMIZATION: min/max Z-score
}
}
Normalize the Hi-C data. This normalization step does the same of the pytadbit.tadbit.tadbit() function (default parameters),
It fills the Experiment.norm variable with the Hi-C values divided by the calculated weight.
The weight of a given cell in column i and row j corresponds to the square root of the product of the sum of column i by the sum of row j.
Parameters: | method (visibility) – either ‘sqrt’ or ‘visibility’. Depending on this parameter, the weight of the Hi-C count in row I, column J of the Hi-C matrix will be, under ‘sqrt’: _________________________________________
\ / N N |
\ / ___ ___
weight(I,J) = \ / \ \
\ / /__ (matrix(i, J)) * /__ (matrix(I, j))
\/ i=0 j=0
and under ‘visibility’: N N
___ ___
\ \
/__ (matrix(i, J)) * /__ (matrix(I, j))
i=0 j=0
weight(I,J) = -----------------------------------------
N N
___ ___
\ \
/__ /__ (matrix(i, j))
j=0 i=0
with N being the number or rows/columns of the Hi-C matrix in both cases. Note that the default behavior (also used in pytadbit.tadbit.tadbit()) corresponds to method=’sqrt’. |
---|
Find the optimal set of parameters to be used for the 3D modeling in IMP.
Parameters: |
|
---|
Note
(start, end, step), or a list with the list of values to test.
Returns: | a tuple containing:
|
---|
Return the Hi-C matrix as string
Returns: | list of lists representing the Hi-C data matrix of the current experiment |
---|
Set a new value for the resolution. Copy the original data into Experiment._ori_hic and replace the Experiment.hic_data with the data corresponding to new data (pytadbit.Chromosome.compare_condition()).
Parameters: |
|
---|
Creates a tab separated file with all the pairwise interactions.
Parameters: |
|
---|