Exemplo n.º 1
0
def interactions_extractor(chrom):

	true_pro_enh_indexes = un_string(config_variables.chr_interactions_dict_pro_enh[chrom])
	prom_enh_false_interactions = chrom_specific_negative_interactions.chrom_specific_negative_interactions(chrom, mode)

	enh_coordinates, pro_coordinates, indexes_p, indexes_e, total_p, total_e = chrom_specific_negative_interactions.initialise_variables(chrom)
	true_pro_enh_indexes[:,0] = true_pro_enh_indexes[:,0] - total_p
	true_pro_enh_indexes[:,1] = true_pro_enh_indexes[:,1] - total_e

	return true_pro_enh_indexes, prom_enh_false_interactions
def interactions_extractor(chrom):

    if config_variables.disentagled_features_validation:
        chr_interactions_pro_enh = config_variables.chr_interactions_dict_pro_enh_TSS[chrom]
    else:
        chr_interactions_pro_enh = config_variables.chr_interactions_dict_pro_enh[chrom]

    true_pro_enh_indexes = un_string(chr_interactions_pro_enh[:, :2])

    # true_pro_enh_indexes = un_string(config_variables.chr_interactions_dict_pro_enh[chrom])

    prom_enh_false_interactions = chrom_specific_negative_interactions.chrom_specific_negative_interactions(chrom, mode)

    enh_coordinates, pro_coordinates, indexes_p, indexes_e, total_p, total_e = chrom_specific_negative_interactions.initialise_variables(
        chrom
    )
    true_pro_enh_indexes[:, 0] = true_pro_enh_indexes[:, 0] - total_p
    true_pro_enh_indexes[:, 1] = true_pro_enh_indexes[:, 1] - total_e

    return true_pro_enh_indexes, prom_enh_false_interactions