forked from kanishk-ux/Tethered-cell-analysis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
33 lines (22 loc) · 1.05 KB
/
main.py
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
'''
main file which takes argument from encrypt.py and executes further functions as documented in the file
'''
import imgpros
import sys
import utilities
import model
import results
'''Initializes the inputs taken from encrypt.py and stores them for furthur use'''
utilities.intializer(sys.argv)
'''Displays a preview of initial 50 frames to help cropping of rotating cell by the user'''
utilities.preview()
'''Allows user to select a free-size rectangular portion of the first frame consisting of a cell for furthur analysis'''
imgpros.crop()
'''Performs Linear Regression Analysis the cropped portion of all the frames and outputs
the centre of mass(COM) data for and a plot of COM for furthur use'''
model.analyze()
'''Calculates frequency, change in angle per frame, total clockwise/counter-clockwise time interval and no of frames and
all else necessary outputs. Also outputs the finally analyzed data in the form of CSV files and graphs'''
model.compute()
'''Saves the graphs and CSV files obtained after analysis in the required folder'''
results.save()