Code Monkey home page Code Monkey logo

gsmfretda's Introduction

gSMFRETda

build status gpu test status windows build status codecov

gSMFRETda is a single molecule fluorescence resonance energy transfer (or smFRET) probability distribution analysis (PDA) program written under C++/CUDA. It can use GPUs to accelerate Monte Carlo simulations of PDA. And because it drastically reduces the calculation time, people can sample dwell time and other parameters more densely, it enable PDA to analyse very fast dynamic interconversion of the system or some other complex TCSPC setup forms requesting lots of PDA calculation.

The program is fine designed. It's not only allows you use multi streams multi GPUs on multi nodes, it also implements a parameter server protocol to allow simulations decouple with the optimization process. In fact, I implemented a Python evolutionary optimization server to provide parameters to gSMFRETda nodes, users can implement their own algorithm easily base on this repo's opt.py.

Installtion

Although the program can calculate FRET efficiency (E) interconversion matrix (K) now, it is still rapidly developed, the binary package isn't provided, you can compile it under instructions of file INSTALL.md

Usage

After compiling code under instructions of file INSTALL.md, you will have a program file gSMFRETda and a directory called pySMFRETda in building directory. Before running code, install prerequest of pySMFRETda. Then, use screen or tmux to run programs.

# Prepare data for gSMFRETda
# open one terminal use screen
python3 pySMFRETda/untils/ptu2hdf.py -i /path/to/tcspc.ptu -o /path/to/phconvertHDF5file.h5
python3 pySMFRETda/untils/arrivalTimePDAdata.py -i /path/to/phconvertHDF5file.h5 -o /path/to/gSMFRETdaHDF5file.hdf5
# start parameter server on localhost:7777
python3 pySMFRETda/serv_pdaga/pdaServ.py
# open another terminal use ctrl_a + c
./gSMFRETda /path/to/gSMFRETdaHDF5file.hdf5
# if you have more than one GPU, open more terminal use ctrl_a + c
./gSMFRETda /path/to/gSMFRETdaHDF5file.hdf5 -g1 # -g1 means gpu id 1, gpu id start from 0

More help can be obtained by

./gSMFRETda -h
python3 pySMFRETda/serv_pdaga/pdaServ.py -h

Or refering doc/USAGE.md.

Trouble shooting

Do not run this GPU computing program for very long time on machines with poor heat dissipation, especially on non-gaming notebooks like ultra-thin laptops. Otherwise, the program may encounter runtime errors or even bring irreversible damages to your computer hardware.

If you encounter any problems, feel free to open a new issue here.

gsmfretda's People

Contributors

liu-kan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

fossabot

gsmfretda's Issues

Allow sending vMcHist

Add a switch in protocol to allow GPU computing notes send vOEHist & vMcHist back to the Parameter Server for drawing figures.

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.