Permalink
Browse files

Make reduce output better

  • Loading branch information...
1 parent 94bceb9 commit c0bd3c478f52622ff2604e70c3f0ff26bba36e22 James Edward Bucher committed May 20, 2012
Showing with 7 additions and 8 deletions.
  1. +2 −2 aarc_scoring/aarc.py
  2. +1 −1 aarc_scoring/data/test-data-formatted
  3. +2 −2 aarc_scoring/map.py
  4. +2 −3 aarc_scoring/reduce.py
@@ -171,7 +171,7 @@ def alignments_to_json(filename, fileFormat):
be exported to a json string'''
alignments = AlignIO.read(open(filename), fileFormat)
homologue = {}
- homologue["protienID"] = alignments[0].description
+ homologue["proteinName"] = alignments[0].description
homologue["searchQuery"] = str(alignments[0].seq)
protiens = []
for element in alignments:
@@ -201,7 +201,7 @@ def read_homologue_pair(pair):
class jsonHomologue():
'''Homologues represented by json lines'''
def __init__(self, homologue):
- self.protienID = homologue["protienID"] #Metadata on search
+ self.proteinName = homologue["proteinName"] #Metadata on search
self.searchQuery = homologue["searchQuery"] # Query used to find homologues
self.alignments = homologue["species"] #this is the individual protien seqs
#check to make sure alignments ar same length
Oops, something went wrong.

0 comments on commit c0bd3c4

Please sign in to comment.