Code Monkey home page Code Monkey logo

eriksjolund / st_exp_protobuf Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 58 KB

File format for spatial gene data. The file contains a small header, gene expression data and image tiles from a high resolution photo.The header serves as a table of contents. A single image tile can thus be retrieved without having to read the whole file.

License: Other

JavaScript 3.36% CMake 9.98% Protocol Buffer 4.26% C++ 80.57% C 1.01% Shell 0.82%
file-format gene-expression image-tiles demo protobuf

st_exp_protobuf's Introduction

Note: The file format might change in any way.

This experimental github project is a just test bed for demonstrating how spatial gene data could be stored together with some microscope photos.

To try the file format out, first install this software and then create st_exp_protobuf files by downloading and converting online research data. The shell script sh/download_and_convert_example_data.sh automates the download and conversion.

st_exp_protobuf files can be viewed with a web viewer from osd-spot-viewer.

Design goal:

  • The file format should be efficient for both local file usage and usage over a network. Network usage is a bit different as then the size of the downloaded data and also the number of read round-trips get to be important. If only information of one gene or one spot is needed, preferably only few reads (few round-trips) should be needed and preferably only the required information would be downloaded. In other words, you shouldn't have to download the whole file if you are only interested in one specific gene. (Consider that AWS charge per downloaded Gb)

  • The header should be small. That is important if a web browser would like to download headers from many experiments to be able to present an overview of all experiments. (Improve this, the current header could get to be a bit smaller)

  • c++, python and javascript parsing and serialization examples should be included

A note about the choice of serialization library:

Protobuf version 2 was chosen as it is a well-proven library, used by many for a long time. Two newer competitors, capnproto and flatbuffers were considered but they were not chosen because

  • capnproto, although being very high quality software, is being labeled as beta software and the javascript project capnp-js has had no commits since Feb 27 2015 (today's date is May 19 2016).

  • the javascript support for flatbuffers is not quite there yet. The javascript fuzz test fails as of May 19 2016. See support for different programming languages.

Installation (on Ubuntu 16.04)

sudo apt-get install libyajl-dev libyajl2
sudo apt-get install cmake ninja-build

Download and install Qt5.7.

mkdir /tmp/build
cd /tmp/build
/home/user/cmake-3.4.0-Linux-x86_64/bin/cmake "-DCMAKE_PREFIX_PATH=/home/user/Qt5.6.0/5.6/gcc_64" /path/to/st_exp_protobuf
make

or if you use Ninja as make-tool:

mkdir /tmp/build
cd /tmp/build
cmake -G Ninja "-DCMAKE_PREFIX_PATH=/home/user/Qt/5.7/gcc_64"  ~/st_exp_protobuf/
make

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.