dwu4 / genome-privacy

Protocols for Secure Genomic Computation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Protocols for Secure Genomic Computation

This library contains a proof-of-concept implementation of several protocols for privacy-preserving genome computation. This implementation is a research prototype and not intended for production-level code. All of the code is provided under the GPL license.


Paper Reference

Our protocols are described in the following paper:

  • Karthik A. Jagadeesh, David J. Wu, Johannes A. Birgmeier, Dan Boneh, and Gill Bejerano. Deriving genomic diagnoses without revealing patient genomes. Science, 357(6352):692-695, 2017. [Abstract] [PDF] [Full Text]

Note that the paper links are only active from the main repository site: https://github.com/dwu4/genome-privacy


Building the Library

To compile the code, use the following commands

./build_libs
make

The ./build_libs command will compile the garbled circuit and oblivious transfer (OT) extensions libraries. We use a modified version of the JustGarble library for the garbled circuits and the OTExtension library for the OT implementation.


Using the Code

Client and server modules are provided for evaluation of the three different vector operations described in the paper:

  • INTERSECTION (BasicIntersectionClient and BasicIntersectionServer)
  • SETDIFF (SetDiffClient and SetDiffServer)
  • MAX (ArgMaxClient and ArgMaxServer)

Simply run the associated program to obtain the usage details (e.g., required parameter) for the particular program. We provide some toy input files for the different tasks in the inputs/ directory. These examples are intended to demo the different functionalities, and are substantially smaller than the real data we used in the paper. The following set of commands can be used to run each program on the provided example input files:

  • INTERSECTION
    • Server: ./tests/BasicIntersectionServer inputs/input_alice_intersection.txt 50000
    • Client: ./tests/BasicIntersectionClient inputs/input_bob_intersection.txt 50000
  • SETDIFF
    • Server: ./tests/SetDiffServer inputs/input_alice_setdiff.txt 20000 2
    • Client: ./tests/SetDiffClient inputs/input_bob_setdiff.txt 20000 2
  • MAX
    • Server: ./tests/ArgMaxServer inputs/input_alice_argmax.txt 20000 2
    • Client: ./tests/ArgMaxClient inputs/input_bob_argmax.txt 20000 2

About

Protocols for Secure Genomic Computation

License:GNU General Public License v3.0


Languages

Language:C 50.2%Language:C++ 47.5%Language:Smarty 1.6%Language:Batchfile 0.5%Language:Makefile 0.1%Language:Assembly 0.0%Language:Objective-C 0.0%Language:Roff 0.0%Language:AGS Script 0.0%Language:Jolie 0.0%Language:Shell 0.0%