In [1]:
from pytadbit import Chromosome
my_chrom = Chromosome(name='My first chromosome')
my_chrom.add_experiment('First Hi-C experiment', hic_data="../../scripts/sample_data/HIC_k562_chr19_chr19_100000_obs.txt", resolution=100000)
my_chrom.find_tad('First Hi-C experiment')
In [2]:
tad1 = list(my_chrom.iter_tads('First Hi-C experiment'))[31]
tad2 = list(my_chrom.iter_tads('First Hi-C experiment'))[35]
In [4]:
from pytadbit.tad_clustering.tad_cmo import optimal_cmo
align1, align2, score = optimal_cmo(tad1[1], tad2[1], max_num_v=8, long_nw=True, long_dist=True, method='frobenius')
In [3]:
from pytadbit.tad_clustering.tad_cmo import optimal_cmo