Документ взят из кэша поисковой машины. Адрес оригинального документа : http://kodomo.fbb.msu.ru/hg/allpy/rev/d3ec7269fc77
Дата изменения: Unknown
Дата индексирования: Tue Oct 2 00:43:22 2012
Кодировка:
allpy: d3ec7269fc77

allpy

changeset 913:d3ec7269fc77

Turned output of compare_aln_3d to a more regular format, simpler to describe
author Daniil Alexeyevsky <dendik@kodomo.fbb.msu.ru>
date Tue, 01 Nov 2011 18:45:31 +0300
parents ed1f4f87034f
children 7bc99fe92f6d
files pair_cores/compare_aln_3d.py
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line diff
     1.1 --- a/pair_cores/compare_aln_3d.py	Fri Oct 28 20:40:55 2011 +0300
     1.2 +++ b/pair_cores/compare_aln_3d.py	Tue Nov 01 18:45:31 2011 +0300
     1.3 @@ -32,10 +32,11 @@
     1.4  def compare_aln_3d(a, b, format, out, delta, cache):
     1.5      score_a = score(a, format, delta, cache)
     1.6      score_b = score(b, format, delta, cache)
     1.7 -    out.write("%(a1).4g %(a2).4g, %(b1).4g %(b2).4g, %(quotient).4g\n" %
     1.8 -        {'a1': score_a[0], 'a2': score_a[1],
     1.9 -         'b1': score_b[0], 'b2': score_b[1],
    1.10 -         'quotient': (sum(score_a) / sum(score_b))})
    1.11 +    out.write("aln1_e1: %.4g\n" % score_a[0])
    1.12 +    out.write("aln1_e2: %.4g\n" % score_a[1])
    1.13 +    out.write("aln2_e1: %.4g\n" % score_b[0])
    1.14 +    out.write("aln2_e2: %.4g\n" % score_b[1])
    1.15 +    out.write("score: %.4g\n" % (sum(score_a) / sum(score_b)))
    1.16  
    1.17  def main():
    1.18      p = argparse.ArgumentParser(description='PairCores. CompareAln3d',