Ejemplo n.º 1
0
  def evaluate_low_memory_chrom(chrom_name,true_chrom,pred_chrom,known_fp=None):
    trueChromVariants = ChromVariants(chrom_name,max_indel_len)
    for r in true_chrom:
      trueChromVariants.add_record(r)
    predChromVariants = ChromVariants(chrom_name,max_indel_len)
    for r in pred_chrom:
      predChromVariants.add_record(r)
    knownFpChromVariants = ChromVariants(chrom_name,max_indel_len)

    cvs = chrom_evaluate_variants(trueChromVariants,predChromVariants,eps,eps_bp,ref,window,known_fp)
    aggregate_stats(genome_stats,cvs) # side effects, sorry
    if writer:
      write_annotated_var(writer,cvs)
Ejemplo n.º 2
0
    def evaluate_low_memory_chrom(chrom_name,
                                  true_chrom,
                                  pred_chrom,
                                  known_fp=None):
        trueChromVariants = ChromVariants(chrom_name, max_indel_len)
        for r in true_chrom:
            trueChromVariants.add_record(r)
        predChromVariants = ChromVariants(chrom_name, max_indel_len)
        for r in pred_chrom:
            predChromVariants.add_record(r)
        knownFpChromVariants = ChromVariants(chrom_name, max_indel_len)

        cvs = chrom_evaluate_variants(trueChromVariants, predChromVariants,
                                      eps, eps_bp, ref, window, known_fp)
        aggregate_stats(genome_stats, cvs)  # side effects, sorry
        if writer:
            write_annotated_var(writer, cvs)
Ejemplo n.º 3
0
 def evaluate(true,pred,known_fp):
   return chrom_evaluate_variants(true,pred,eps,eps_bp,ref,window,known_fp)
Ejemplo n.º 4
0
 def evaluate(true, pred, known_fp):
     return chrom_evaluate_variants(true, pred, eps, eps_bp, ref, window,
                                    known_fp)