Skip to content

Commit

Permalink
Make reduce output better
Browse files Browse the repository at this point in the history
  • Loading branch information
James Edward Bucher authored and James Edward Bucher committed May 20, 2012
1 parent 94bceb9 commit c0bd3c4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions aarc_scoring/aarc.py
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c0bd3c4

Please sign in to comment.