Getting Started¶
Our code is hosted here: https://github.com/U8NWXD/scorevideo_lib
Getting the Code and Dependencies¶
Choose where you want to download the code, and navigate to that directory. Then download the code.
$ cd path/to/desired/directory $ git clone https://github.com/U8NWXD/scorevideo_lib
Install python 3 from https://python.org or via your favorite package manager
Install
virtualenv$ pip3 install virtualenvIf you get a note from
pipaboutvirtualenvnot being in yourPATH, you need to perform this step.PATHis a variable accessible from any bash terminal you run, and it tells bash where to look for the commands you enter. It is a list of directories separated by:. You can see yours by runningecho $PATH. To runvirtualenvcommands, you need to add python’s packages to yourPATHby editing or creating the file~/.bash_profileon MacOS. To that file add the following lines:PATH="<Path from pip message>:$PATH" export PATH
Then you can install dependencies into a virtual environment
$ cd scorevideo_lib $ virtualenv -p python3 venv $ source venv/bin/activate $ pip install -r requirements.txt
Now you’re ready to use the library! You can check out the API reference here.
Note
If your data is from dyad assays and structured accordingly, you can
transfer lights-on marks my running
the transfer_lights_on_marks.py tool in the directory of log files like
so: python transfer_lights_on_marks.py. If you aren’t sure if these
requirements are met, they probably aren’t. This is only useful for a few
researchers.