This file is indexed.

/usr/bin/plasmid is in plasmidomics 0.2.0-3.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
#! /usr/bin/python
# File: plasmid.py

from Tkinter import *
from tkMessageBox import *
from tkColorChooser import *
from math import *

# global variables

itemcount=0
plascolor=(0, '#000000')
barcolor=(0, '#000000')
tickcolor=(0, '#000000')

# functions

def help_usage():
    showinfo('Help',"Read the README file \nJust try, it's easy!")

def help_about():
    showinfo('About',"Plasmidomics 0.2 \nLicense: GPLv3 \nRobert Winkler, 2007")

def ask_plascolor():
    global plascolor
    plascolor=askcolor(initialcolor='black')
   
def ask_barcolor():
    global barcolor
    barcolor=askcolor(initialcolor='black')
    
def ask_tickcolor():
    global tickcolor
    tickcolor=askcolor(initialcolor='black')
     
def draw_plasmid():
    global itemcount
    global plascolor
    canvas.create_oval(180-100,180-100,180+100,180+100, width=2, outline=plascolor[1])
    Plasmidname=Plasmidname_string.get()
    canvas.create_text(180,170, text=Plasmidname, fill=plascolor[1])
    Plasmidsize=Plasmidsize_int.get()
    canvas.create_text(170,190, text=Plasmidsize, fill=plascolor[1])
    canvas.create_text(195,190, text=' bp', fill=plascolor[1])
    itemcount=itemcount+4

def draw_bar():
    global itemcount
    global barcolor
    
    Arrowstart=Arrow_startint.get()
    Arrowend=Arrow_endint.get()
    Arrowname=Arrow_string.get()
    Plasmidsize=Plasmidsize_int.get()

    Arrowstart_angle=(2*pi*Arrowstart)/Plasmidsize
    Arrowstartarc=(360*Arrowstart)/Plasmidsize
    Arrowstartsinus=sin(Arrowstart_angle)
    Arrowstartcosinus=cos(Arrowstart_angle)

    Arrowend_angle=(2*pi*Arrowend)/Plasmidsize
    Arrowendarc=(360*Arrowend)/Plasmidsize
    Arrowendsinus=sin(Arrowend_angle)
    Arrowendcosinus=cos(Arrowend_angle)

    Arrowname_pos=(Arrowend+Arrowstart)/2
    Arrowname_angle=(2*pi*Arrowname_pos)/Plasmidsize
    Arrownamesinus=sin(Arrowname_angle)
    Arrownamecosinus=cos(Arrowname_angle)
    
    Arrowextent=Arrowendarc-Arrowstartarc

    canvas.create_text(180+(60*Arrownamesinus),180-(60*Arrownamecosinus), text=Arrowname, fill=barcolor[1])
    canvas.create_arc(180-85,180-85,180+85,180+85,style=ARC, start=90-Arrowendarc, extent=Arrowextent, width=10, outline=barcolor[1])
    
    itemcount=itemcount+2

def draw_arrowright():
    global itemcount
    global barcolor
    
    Arrowstart=Arrow_startint.get()
    Arrowend=Arrow_endint.get()
    Arrowname=Arrow_string.get()
    Plasmidsize=Plasmidsize_int.get()

    Arrowstart_angle=(2*pi*Arrowstart)/Plasmidsize
    Arrowstartarc=(360*Arrowstart)/Plasmidsize
    Arrowstartsinus=sin(Arrowstart_angle)
    Arrowstartcosinus=cos(Arrowstart_angle)

    Arrowend_angle=(2*pi*Arrowend)/Plasmidsize
    Arrowendarc=(360*Arrowend)/Plasmidsize
    Arrowendsinus=sin(Arrowend_angle)
    Arrowendcosinus=cos(Arrowend_angle)
    Arrowendarc_corr=Arrowendarc-5
    Arrowend_angle_corr=Arrowendarc_corr*2*pi/360
    Arrowendsinus_corr=sin(Arrowend_angle_corr)
    Arrowendcosinus_corr=cos(Arrowend_angle_corr)

    Arrowname_pos=(Arrowend+Arrowstart)/2
    Arrowname_angle=(2*pi*Arrowname_pos)/Plasmidsize
    Arrownamesinus=sin(Arrowname_angle)
    Arrownamecosinus=cos(Arrowname_angle)
    
    Arrowextent=Arrowendarc-Arrowstartarc

    canvas.create_polygon(180+(75*Arrowendsinus_corr),180-(75*Arrowendcosinus_corr), 180+(95*Arrowendsinus_corr), 180-(95*Arrowendcosinus_corr), 180+(85*Arrowendsinus), 180-(85*Arrowendcosinus), width=0, outline=barcolor[1], fill=barcolor[1])
    canvas.create_arc(180-85,180-85,180+85,180+85,style=ARC, start=95-Arrowendarc, extent=Arrowextent-5, width=10, outline=barcolor[1])
    canvas.create_text(180+(60*Arrownamesinus),180-(60*Arrownamecosinus), text=Arrowname, fill=barcolor[1])
 
    itemcount=itemcount+3

def draw_arrowleft():
    global itemcount
    global barcolor
    
    Arrowstart=Arrow_startint.get()
    Arrowend=Arrow_endint.get()
    Arrowname=Arrow_string.get()
    Plasmidsize=Plasmidsize_int.get()

    Arrowstart_angle=(2*pi*Arrowstart)/Plasmidsize
    Arrowstartarc=(360*Arrowstart)/Plasmidsize
    Arrowstartsinus=sin(Arrowstart_angle)
    Arrowstartcosinus=cos(Arrowstart_angle)
    Arrowstartarc_corr=Arrowstartarc+5
    Arrowstart_angle_corr=Arrowstartarc_corr*2*pi/360
    Arrowstartsinus_corr=sin(Arrowstart_angle_corr)
    Arrowstartcosinus_corr=cos(Arrowstart_angle_corr)

    Arrowend_angle=(2*pi*Arrowend)/Plasmidsize
    Arrowendarc=(360*Arrowend)/Plasmidsize
    Arrowendsinus=sin(Arrowend_angle)
    Arrowendcosinus=cos(Arrowend_angle)

    Arrowname_pos=(Arrowend+Arrowstart)/2
    Arrowname_angle=(2*pi*Arrowname_pos)/Plasmidsize
    Arrownamesinus=sin(Arrowname_angle)
    Arrownamecosinus=cos(Arrowname_angle)
    
    Arrowextent=Arrowendarc-Arrowstartarc
 
    canvas.create_polygon(180+(75*Arrowstartsinus_corr),180-(75*Arrowstartcosinus_corr), 180+(95*Arrowstartsinus_corr), 180-(95*Arrowstartcosinus_corr), 180+(85*Arrowstartsinus), 180-(85*Arrowstartcosinus), width=0, outline=barcolor[1], fill=barcolor[1])
    canvas.create_arc(180-85,180-85,180+85,180+85,style=ARC, start=90-Arrowendarc, extent=Arrowextent-5, width=10, outline=barcolor[1])
    canvas.create_text(180+(60*Arrownamesinus),180-(60*Arrownamecosinus), text=Arrowname, fill=barcolor[1])

    itemcount=itemcount+3

def draw_tick():
    global itemcount
    global tickcolor
    
    Plasmidsize=Plasmidsize_int.get()
    Tickpos=Ticktick_posint.get()
    Tickname=Ticktick_string.get()

    Tickangle=(2*pi*Tickpos)/Plasmidsize
    Ticksinus=sin(Tickangle)
    Tickcosinus=cos(Tickangle)
  
    canvas.create_text(180+(155*Ticksinus),180-(155*Tickcosinus), text=Tickname, fill=tickcolor[1])
    canvas.create_line(180+(95*Ticksinus),180-(95*Tickcosinus), 180+(105*Ticksinus), 180-(105*Tickcosinus), width=2, fill=tickcolor[1])
    canvas.create_text(180+(120*Ticksinus),180-(120*Tickcosinus), text=Tickpos, fill=tickcolor[1])

    itemcount=itemcount+3

def draw_tickplain():
    global itemcount
    global tickcolor
    
    Plasmidsize=Plasmidsize_int.get()
    Tickpos=Ticktick_posint.get()
    Tickname=Ticktick_string.get()

    Tickangle=(2*pi*Tickpos)/Plasmidsize
    Ticksinus=sin(Tickangle)
    Tickcosinus=cos(Tickangle)
  
    canvas.create_line(180+(95*Ticksinus),180-(95*Tickcosinus), 180+(105*Ticksinus), 180-(105*Tickcosinus), width=2, fill=tickcolor[1])
    canvas.create_text(180+(130*Ticksinus),180-(130*Tickcosinus), text=Tickname, fill=tickcolor[1])

    itemcount=itemcount+2
    
def clear_plasmid():
    global itemcount
    listcanvas=canvas.find_all()
    i=0
    j=listcanvas[0]
    while i < itemcount:
        j=listcanvas[i]
        canvas.delete(j)
        i=i+1
    itemcount=0
        
def undo_item():
    global itemcount
    listcanvas=canvas.find_all()
    j=listcanvas[itemcount-1]
    canvas.delete(j)
    itemcount=itemcount-1
      
def ps_export():
    Plasmidsize=Postfile_string.get()
    psoutfile = Plasmidsize + ".ps"
    canvas.postscript(file=psoutfile)

# define initial values

# main window

root=Tk()
root.title("Plasmidomics 0.2")

# main properties of plasmid

features=Frame(root)
features.pack(side=LEFT)

Mainprop_label = Label(features, text="Main Properties")
Mainprop_label.grid(row=1, column=2, sticky=W)

Plasmidname_label = Label(features, text="Plasmid name:")
Plasmidname_label.grid(row=2, column=1, sticky=W)

Plasmidname_string=StringVar()
Plasmidname_entry = Entry(features, textvariable=Plasmidname_string)
Plasmidname_entry.grid(row=2, column=2, sticky=W)

Plasmidsize_label = Label(features, text="Plasmid size (bp):")
Plasmidsize_label.grid(row=3, column=1, sticky=W)

Plasmidsize_int=IntVar()
Plasmidsize_int.set(1)
Plasmidsize_entry = Entry(features, textvariable=Plasmidsize_int)
Plasmidsize_entry.grid(row=3, column=2, sticky=W)

# bars and arrows

Arrow_label = Label(features, text="Bars and Arrows")
Arrow_label.grid(row=4, column=2, sticky=W)

Arrow_stringlabel = Label(features, text="Description:")
Arrow_stringlabel.grid(row=5, column=1, sticky=W)

Arrow_string=StringVar()
Arrow_stringentry = Entry(features, textvariable=Arrow_string)
Arrow_stringentry.grid(row=5, column=2, sticky=W)

Arrow_startlabel = Label(features, text="Begin:")
Arrow_startlabel.grid(row=6, column=1, sticky=W)

Arrow_startint = IntVar()
Arrow_startint_entry = Entry(features, textvariable=Arrow_startint)
Arrow_startint_entry.grid(row=6, column=2, sticky=W)

Arrow_endlabel = Label(features, text="End:")
Arrow_endlabel.grid(row=7, column=1, sticky=W)

Arrow_endint = IntVar()
Arrow_endint_entry = Entry(features, textvariable=Arrow_endint)
Arrow_endint_entry.grid(row=7, column=2, sticky=W)


# Ticks

Ticks_label = Label(features, text="Ticks")
Ticks_label.grid(row=9, column=2, sticky=W)

Ticktick_poslabel = Label(features, text="Position:")
Ticktick_poslabel.grid(row=11, column=1, sticky=W)

Ticktick_posint = IntVar()
Ticktick_posint_entry = Entry(features, textvariable=Ticktick_posint)
Ticktick_posint_entry.grid(row=11, column=2, sticky=W)

Ticktick_stringlabel = Label(features, text="Description:")
Ticktick_stringlabel.grid(row=10, column=1, sticky=W)

Ticktick_string=StringVar()
Ticktick_stringentry = Entry(features, textvariable=Ticktick_string)
Ticktick_stringentry.grid(row=10, column=2, sticky=W)

# Postscript export file

Post_label = Label(features, text="Graphics Export")
Post_label.grid(row=13, column=2, sticky=W)

Postfile_label = Label(features, text="Export file (without .ps):")
Postfile_label.grid(row=14, column=1, sticky=W)

Postfile_string=StringVar()
Postfile_string.set('outplasmid')
Postfile_entry = Entry(features, textvariable=Postfile_string)
Postfile_entry.grid(row=14, column=2, sticky=W)

# Edit functions

Edit_label = Label(features, text=" ")
Edit_label.grid(row=15, column=2, sticky=W)

# And.. Action!

Clear_button=Button(features, text="Clear", command=clear_plasmid)
Clear_button.grid(row=16, column=1)

Draw_button=Button(features, text="Draw", command=draw_plasmid)
Draw_button.grid(row=3, column=3)

Arrow_button=Button(features, text="Arrow left", command=draw_arrowleft)
Arrow_button.grid(row=8, column=1)

Arrow_button=Button(features, text="Bar", command=draw_bar)
Arrow_button.grid(row=8, column=2)

Arrow_button=Button(features, text="Arrow right", command=draw_arrowright)
Arrow_button.grid(row=8, column=3)

Tick_button=Button(features, text="Add +No", command=draw_tick)
Tick_button.grid(row=12, column=3)

Tickplain_button=Button(features, text="Add -No", command=draw_tickplain)
Tickplain_button.grid(row=12, column=1)

Postscript_button=Button(features, text="PS Export", command=ps_export)
Postscript_button.grid(row=14, column=3)

Undo_button=Button(features, text="Undo", command=undo_item)
Undo_button.grid(row=16, column=3)

Colorplas_button=Button(features, text="Color", command=ask_plascolor)
Colorplas_button.grid(row=2, column=3)

Colorbar_button=Button(features, text="Color", command=ask_barcolor)
Colorbar_button.grid(row=5, column=3)

Colortick_button=Button(features, text="Color", command=ask_tickcolor)
Colortick_button.grid(row=10, column=3)

# Canvas drawing window

canvas=Canvas(width=360, height=360, bg='white')
canvas.pack(side=RIGHT, expand=YES, fill=BOTH)

# draw stuff on canvas

# create a menu

menu = Menu(root)
root.config(menu=menu)

filemenu = Menu(menu)
menu.add_cascade(label="File", menu=filemenu)
filemenu.add_command(label="Exit", command=menu.quit)

helpmenu = Menu(menu)
menu.add_cascade(label="Help", menu=helpmenu)
helpmenu.add_command(label="Usage", command=help_usage)
helpmenu.add_command(label="About...", command=help_about)

mainloop()