Skip to content

Commit

Permalink
Correction on visualization's ticks for Cpf1
Browse files Browse the repository at this point in the history
  • Loading branch information
Jose Malagon Lopez committed Feb 1, 2018
1 parent 66dae78 commit bc5eef8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions guideseq/visualization.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ def visualizeOfftargets(infile, outfile, title=None):
tick_locations.sort()
tick_legend = [str(x) for x in tick_locations[:-3][::-1]] + ['P', 'A', 'M']
else:
tick_locations += [range(3, len(target_seq) + 1)[::10][1]]
tick_locations += range(2, 5)
tick_locations += [range(4, len(target_seq) + 1)[::10][1]]
tick_locations += range(2, 4) + [5]
tick_locations.sort()
tick_legend = ['P', 'A', 'M'] + [str(x) for x in [str(x-3) for x in tick_locations[3:]]]
tick_legend = ['P', 'A', 'M'] + [str(x) for x in [str(x - 4) for x in tick_locations[3:]]]
for x, y in zip(tick_locations, tick_legend):
dwg.add(dwg.text(y, insert=(x_offset + (x - 1) * box_size + 2, y_offset - 2), style="font-size:10px; font-family:Courier"))
else:
Expand Down

0 comments on commit bc5eef8

Please sign in to comment.