Skip to content

Commit

Permalink
Merge pull request #23 from andrewjpage/no_operons
Browse files Browse the repository at this point in the history
inverted operon at terminus falsely giving valid when should be invalid
  • Loading branch information
andrewjpage authored Oct 12, 2019
2 parents ec78b77 + 08162a9 commit 4e9ff40
Show file tree
Hide file tree
Showing 7 changed files with 117 additions and 252 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.2.2
2.2.3
36 changes: 0 additions & 36 deletions scripts/socru_lookup

This file was deleted.

3 changes: 3 additions & 0 deletions socru/Socru.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ def run(self):
output_fh.write(str(h)+"\n")

def output_results(self, input_file, profile_type):
if profile_type == '':
profile_type = "RED\tGS0.0"

if self.output_file is None:
print(input_file + "\t" + profile_type)
else:
Expand Down
130 changes: 0 additions & 130 deletions socru/SocruLookup.py

This file was deleted.

14 changes: 6 additions & 8 deletions socru/ValidateFragments.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,24 +40,22 @@ def validate(self):

# forward walk
for i in range(dnaa_index + 1, len(self.fragments)):
if i >= dif_index:
# we have reached the end
continue

# direction should be -->
# if the operon is not forward then its invalid
if not reorientated_frags[i].operon_forward_start:
return False
if i >= dif_index:
# we have reached the end
break

# reverse walk
for i in range( len(self.fragments) -1, dif_index, -1):
if i <= dif_index:
# we have reached the end
continue

# direction should be <--
if reorientated_frags[i].operon_forward_start:
return False
if i <= dif_index:
# we have reached the end
break

return True

Expand Down
75 changes: 0 additions & 75 deletions socru/tests/SocruLookup_test.py

This file was deleted.

Loading

0 comments on commit 4e9ff40

Please sign in to comment.