In [1]:
from pytadbit import Chromosome
In [2]:
crm = Chromosome('chr18')
In [11]:
'/media/storage/Notebooks2/fransua/results/MboI/'
'/04_normalizing/100000_raw/chr18.mat'
'/media/storage/Notebooks2/fransua/results/HindIII/'
'/04_normalizing/100000_norm/chr18.mat'
Out[11]:
In [4]:
crm.add_experiment('MboI',
hic_data='/media/storage/Notebooks2/fransua/results/MboI/04_normalizing/1000000_raw/chr18.mat',
norm_data='/media/storage/Notebooks2/fransua/results/MboI/04_normalizing/100000_norm/chr18.mat',
resolution=100000)
In [5]:
print crm
In [12]:
crm.add_experiment('HindIII',
hic_data='/media/storage/Notebooks2/fransua/results/HindIII/04_normalizing/1000000_raw/chr18.mat',
norm_data='/media/storage/Notebooks2/fransua/results/HindIII/04_normalizing/100000_norm/chr18.mat',
resolution=100000)
In [13]:
print crm
In [33]:
crm.find_tad(['HindIII','MboI'],n_cpus=20)
In [34]:
crm.tads()
In [22]:
crm.visualize([('HindIII', 'MboI')],normalized=True,paint_tads=True)
In [27]:
crm.find_tad(['HindIII', 'MboI'], n_cpus=10)
In [28]:
crm.visualize([('HindIII', 'MboI')], normalized=True, paint_tads=True, )
In [23]:
ali = crm.align_experiments(randomize=True, rnd_num=100)
In [24]:
ali, pvals = ali
In [25]:
pvals
Out[25]:
In [26]:
ali.draw()
In [ ]: