Skip to content

Commit

Permalink
Convert primer coordinates from floats.
Browse files Browse the repository at this point in the history
  • Loading branch information
donkirkby committed Jun 30, 2021
1 parent 57f43bb commit b3771be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gene_splicer/primer_finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,10 +384,10 @@ def add_primers(row):


def remove_primers(row):
# Strip the primers out
# Strip the primers out, convert index values from floats.
newseq = row.sequence[
row.fwd_sample_primer_size + row.fwd_sample_primer_start
:-(row.rev_sample_primer_size + row.rev_sample_primer_start)]
int(row.fwd_sample_primer_size + row.fwd_sample_primer_start)
:-int(row.rev_sample_primer_size + row.rev_sample_primer_start)]
row.sequence = newseq
return row

Expand Down

0 comments on commit b3771be

Please sign in to comment.