Skip to content

Commit

Permalink
update subjaln
Browse files Browse the repository at this point in the history
  • Loading branch information
dorbarker committed Sep 24, 2019
1 parent 3b55ba6 commit 90fbef2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion fsac/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ def reverse_complement(sequence: str):
'A': 'T',
'T': 'A',
'G': 'C',
'C': 'G'
'C': 'G',
'N': 'N'
}

return ''.join(complements[x] for x in reversed(sequence))
Expand All @@ -136,6 +137,7 @@ def update_genome(genome_data: Dict[str, GeneData],
if seq is None and name is None:
continue

gene['SubjAln'] = seq
gene['Mismatches'] = 0
gene['Gaps'] = 0
gene['QueryName'] = name
Expand Down
2 changes: 1 addition & 1 deletion test.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import unittest

from src import update
from fsac import update

class TestUpdate(unittest.TestCase):

Expand Down

0 comments on commit 90fbef2

Please sign in to comment.