Coder Social home page Coder Social logo

igemsoftware2020 / tas_taipei Goto Github PK

View Code? Open in Web Editor NEW
1.0 4.0 0.0 595.02 MB

A lab tool for measuring the pH of solutions over time using pH indicators and visual image or video data

Home Page: https://2020.igem.org/Team:TAS_Taipei/Software

License: MIT License

Python 100.00%
chemistry igem 2020 opencv

tas_taipei's Introduction

How to Use VisualpH

prereqs

make sure you have installed python 3, and that pip is properly working. Once that is done, run

pip install -r requirements.txt

to install the dependencies.

Example

run the following commands in the terminal

linux

python3 vpH.py -p "exampleData/C-19DNA.mov" -sm 0.5 -pp 3

windows

python vpH.py -p "exampleData/C-19DNA.mov" -sm 0.5 -pp 3

then, select 3 points to encircle the coloured portion of the leftmost microcentrifuge tube repeat the same for all 4, from left to right

note that the default is 4 points, but the argument -pp 3 overrides that The video is also of a fairly large resolution, so the window can be shrinked and expanded using -sm

After the video is processed, a window should pop up that shows graphs of each tube over time.

To see each graph individually, run

linux

python3 vpH.py -r 0.npy

windows

python vpH.py -r 0.npy

To see all 4 again, run

linux

python3 vpH.py -m 4

windows

python vpH.py -m 4

Parsing a new video

Use the following command:

linux

python3 vpH.py -p "filename.py"

windows

python vpH.py -p "filename.py"

and it will bring up a window to select the tubes to process

the following argument can be added to the end of the command to shrink the size of the window by any constant

-sm 0.5

The process command will automatically save the data files in /data/, with the names 0, 1, 2, 3 ...

make sure you rename these files before processing the next video if you want to save them

Displaying parsed data

The following command can be used for data files that have already been processed

linux

python3 vpH.py -r "filename.npy"

windows

python vpH.py -r "filename.npy"

If you have a set of data files you want to display on a graph, use the following argument where x is an integer above 1

-m x

x will denote the number of files to process, starting from 0 to x-1

tas_taipei's People

Contributors

mfang21 avatar usymmij avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.