def validiate_program_28(): factor_validation_sets, target_validation_sets = generate_validation_sets() transcriptional_programs, factor_universe, target_universe = threshold_tps() factor_universe = set(factor_universe) target_universe = set(target_universe) restrict_validation_sets(factor_validation_sets.values(), factor_universe) restrict_validation_sets(target_validation_sets.values(), target_universe) tp = transcriptional_programs[28] for name, reference_set in target_validation_sets.iteritems(): validate_tp_set(tp.k, "Factors", tp.targets, name, reference_set, target_universe)
def validiate_program_28(): factor_validation_sets, target_validation_sets = generate_validation_sets() transcriptional_programs, factor_universe, target_universe = threshold_tps( ) factor_universe = set(factor_universe) target_universe = set(target_universe) restrict_validation_sets(factor_validation_sets.values(), factor_universe) restrict_validation_sets(target_validation_sets.values(), target_universe) tp = transcriptional_programs[28] for name, reference_set in target_validation_sets.iteritems(): validate_tp_set(tp.k, 'Factors', tp.targets, name, reference_set, target_universe)
def validate(): """ Validate the transcriptional programs against the validation sets. """ factor_validation_sets, target_validation_sets = generate_validation_sets() transcriptional_programs, factor_universe, target_universe = threshold_tps() factor_universe = set(factor_universe) target_universe = set(target_universe) restrict_validation_sets(factor_validation_sets.values(), factor_universe) restrict_validation_sets(target_validation_sets.values(), target_universe) latex_f = open(os.path.join(options.output_dir, "validation.tex"), "w") for tp in transcriptional_programs: # logging.info('Validating transcriptional program %d against %d sets of factors.', tp.k, len(factor_validation_sets)) for name, reference_set in factor_validation_sets.iteritems(): validate_tp_set(tp.k, "Factors", tp.factors, name, reference_set, factor_universe, latex_f) # logging.info('Validating transcriptional program %d against %d sets of targets.', tp.k, len(target_validation_sets)) for name, reference_set in target_validation_sets.iteritems(): validate_tp_set(tp.k, "Targets", tp.targets, name, reference_set, target_universe, latex_f) latex_f.close()
def validate(): """ Validate the transcriptional programs against the validation sets. """ factor_validation_sets, target_validation_sets = generate_validation_sets() transcriptional_programs, factor_universe, target_universe = threshold_tps( ) factor_universe = set(factor_universe) target_universe = set(target_universe) restrict_validation_sets(factor_validation_sets.values(), factor_universe) restrict_validation_sets(target_validation_sets.values(), target_universe) latex_f = open(os.path.join(options.output_dir, 'validation.tex'), 'w') for tp in transcriptional_programs: #logging.info('Validating transcriptional program %d against %d sets of factors.', tp.k, len(factor_validation_sets)) for name, reference_set in factor_validation_sets.iteritems(): validate_tp_set(tp.k, 'Factors', tp.factors, name, reference_set, factor_universe, latex_f) #logging.info('Validating transcriptional program %d against %d sets of targets.', tp.k, len(target_validation_sets)) for name, reference_set in target_validation_sets.iteritems(): validate_tp_set(tp.k, 'Targets', tp.targets, name, reference_set, target_universe, latex_f) latex_f.close()