Giter Site home page Giter Site logo

fossabot / gsmfretda Goto Github PK

View Code? Open in Web Editor NEW

This project forked from liu-kan/gsmfretda

0.0 1.0 0.0 2.51 MB

gSMFRETda is a GPU-based program for Monte Carlo simulations of smFRET PDA.

License: GNU Affero General Public License v3.0

CMake 5.99% Dockerfile 0.74% Shell 0.23% Cuda 32.45% C++ 60.60%

gsmfretda's Introduction

gSMFRETda

FOSSA Status

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 smFRETLikelihood in building directory. Before running code, install prerequest of smFRETLikelihood. Then, use screen or tmux to run programs.

# Prepare data for gSMFRETda
# open one terminal use screen
python3 smFRETLikelihood/untils/ptu2hdf.py -i /path/to/tcspc.ptu -o /path/to/phconvertHDF5file.h5
python3 smFRETLikelihood/untils/arrivalTimePDAdata.py -i /path/to/phconvertHDF5file.h5 -o /path/to/gSMFRETdaHDF5file.hdf5
# start parameter server on localhost:7777
python3 smFRETLikelihood/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 smFRETLikelihood/serv_pdaga/pdaServ.py -h

Or refering USAGE.md.

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

License

FOSSA Status

gsmfretda's People

Contributors

fossabot avatar liu-kan avatar

Watchers

 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.