GithubHelp home page GithubHelp logo

avkash / glow Goto Github PK

View Code? Open in Web Editor NEW

This project forked from projectglow/glow

0.0 1.0 0.0 28.34 MB

An open-source toolkit for large-scale genomic analysis

Home Page: https://projectglow.io

License: Apache License 2.0

Shell 0.13% Scala 95.38% Java 0.15% Python 4.34%

glow's Introduction

An open-source toolkit for large-scale genomic analyes
Explore the docs »

Issues · Mailing list · Slack

Glow is an open-source toolkit to enable bioinformatics at biobank-scale and beyond.

Easy to get started

The toolkit includes the building blocks that you need to perform the most common analyses right away:

  • Load VCF, BGEN, and Plink files into distributed DataFrames
  • Perform quality control and data manipulation with built-in functions
  • Variant normalization and liftOver
  • Perform genome-wide association studies
  • Integrate with Spark ML libraries for population stratification
  • Parallelize command line tools to scale existing workflows

Built to scale

Glow makes genomic data work with Spark, the leading engine for working with large structured datasets. It fits natively into the ecosystem of tools that have enabled thousands of organizations to scale their workflows to petabytes of data. Glow bridges the gap between bioinformatics and the Spark ecosystem.

Flexible

Glow works with datasets in common file formats like VCF, BGEN, and Plink as well as high-performance big data standards. You can write queries using the native Spark SQL APIs in Python, SQL, R, Java, and Scala. The same APIs allow you to bring your genomic data together with other datasets such as electronic health records, real world evidence, and medical images. Glow makes it easy to parallelize existing tools and libraries implemented as command line tools or Pandas functions.

CircleCI Documentation Status PyPi Maven Central Coverage Status

Building and Testing

This project is built using sbt and Java 8.

Start an sbt shell using the sbt command.

FYI: The following SBT projects with the suffix 2_11 are built on Scala 2.11. All have an equivalent 2_12 version built on Scala 2.12.

To compile the main code:

compile

To run all Scala 2.11 tests:

core_2_11/test

To test a specific suite:

core_2_11/testOnly *VCFDataSourceSuite

To run Python tests, you must install conda and activate the environmet in python/environment.yml.

conda env create -f python/environment.yml
conda activate  glow

You can then run tests from sbt:

python_2_11/test

These tests will run with the same Spark classpath as the Scala 2.11 tests.

To run documentation tests:

docs_2_11/test

To run the Scala, Python and documentation tests on both Scala 2.11 and Scala 2.12:

test

To run Scala 2.11 tests against the staged Maven artifact with the current stable version:

stagedRelease_2_11/test

IntelliJ Tips

If you use IntelliJ, you'll want to set up scalafmt on save.

To run Python unit tests from inside IntelliJ, you must:

  • Open the "Terminal" tab in IntelliJ
  • Activate the glow conda environment (conda activate glow)
  • Start an sbt shell from inside the terminal (sbt)

The "sbt shell" tab in IntelliJ will NOT work since it does not use the glow conda environment.

To test or testOnly in remote debug mode with IntelliJ IDEA set the remote debug configuration in IntelliJ to 'Attach to remote JVM' mode and a specific port number (here the default port number 5005 is used) and then modify the definition of options in groupByHash function in build.sbt to

val options = ForkOptions().withRunJVMOptions(Vector("-Xmx1024m")).withRunJVMOptions(Vector("-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005"))

glow's People

Contributors

karenfeng avatar henrydavidge avatar kianfar77 avatar ahirreddy avatar kermany avatar bboutkov avatar fnothaft avatar hvanhovell avatar heuermh avatar williambrandler avatar

Watchers

James Cloos 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.