A Chromosome object designed to deal with Topologically Associating Domains predictions from different experiments, in different cell types for a given chromosome of DNA, and to compare them.
Parameters: |
|
---|---|
Returns: | Chromosome object |
Add a Hi-C experiment to Chromosome
Parameters: |
|
---|
Align the predicted boundaries of two different experiments. The resulting alignment will be stored in the self.experiment list.
Parameters: |
|
---|---|
Returns: | the alignment and the score of the alignment (by default) |
Call the pytadbit.tadbit.tadbit() function to calculate the position of Topologically Associated Domains
Parameters: |
|
---|
TODO: check option -> name for batch mode... some dirty changes....
This can also be done directly with Chromosome.experiments[name].
Parameters: | name – name of the experiment to select |
---|---|
Returns: | pytadbit.Experiment |
Retrieve the Hi-C data matrix corresponding to a given TAD.
Parameters: | |
---|---|
Returns: | Hi-C data matrix for the given TAD |
Iterate over the TADs corresponding to the given experiment.
Parameters: |
|
---|---|
Yields : | Hi-C data corresponding to each TAD |
Save a Chromosome object to a file (it uses pickle.load() from the cPickle). Once saved, the object can be loaded with load_chromosome().
Parameters: |
|
---|
Change the maximum size allowed for TADs. It also applies to the computed experiments.
Parameters: | value – an int value (default is 5000000) |
---|
Visualize the matrix of Hi-C interactions.
Parameters: |
|
---|
Load a Chromosome object from a file. A Chromosome object can be saved with the Chromosome.save_chromosome() function.
Parameters: |
|
---|---|
Returns: | a Chromosome object |
TODO: remove first try/except type error... this is loading old experiments
Inherited from python built in list(), modified for tadbit pytadbit.Experiment.
Mainly, getitem, setitem, and append were modified in order to be able to search for experiments by index or by name, and to add experiments simply using Chromosome.experiments.append(Experiment).
The whole ExperimentList object is linked to a Chromosome instance (pytadbit.Chromosome).