Skip to content

Commit

Permalink
Update gget_elm.py
Browse files Browse the repository at this point in the history
Change the start to be amino-acid positions instead of POSIX 
(previous end position already accounted for the exclude Python slicing)
  • Loading branch information
choang20 authored Jan 5, 2024
1 parent b138941 commit a961add
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gget/gget_elm.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def regex_match(sequence):
)

(start, end) = match_string.span()
elm_row.insert(loc=2, column="motif_start_in_query", value=str(start))
elm_row.insert(loc=2, column="motif_start_in_query", value=str(start + 1))
elm_row.insert(loc=3, column="motif_end_in_query", value=str(end))

elm_identifier = [str(x) for x in elm_row["ELMIdentifier"]][0]
Expand Down

0 comments on commit a961add

Please sign in to comment.