glow

An open-source toolkit for large-scale genomic analysis

License

License

GroupId

GroupId

io.projectglow
ArtifactId

ArtifactId

glow_2.11
Last Version

Last Version

0.5.0
Release Date

Release Date

Type

Type

jar
Description

Description

glow
An open-source toolkit for large-scale genomic analysis
Project URL

Project URL

https://projectglow.io
Project Organization

Project Organization

The Glow Authors
Source Code Management

Source Code Management

https://github.com/projectglow/glow

Download glow_2.11

How to add to project

<!-- https://jarcasting.com/artifacts/io.projectglow/glow_2.11/ -->
<dependency>
    <groupId>io.projectglow</groupId>
    <artifactId>glow_2.11</artifactId>
    <version>0.5.0</version>
</dependency>
// https://jarcasting.com/artifacts/io.projectglow/glow_2.11/
implementation 'io.projectglow:glow_2.11:0.5.0'
// https://jarcasting.com/artifacts/io.projectglow/glow_2.11/
implementation ("io.projectglow:glow_2.11:0.5.0")
'io.projectglow:glow_2.11:jar:0.5.0'
<dependency org="io.projectglow" name="glow_2.11" rev="0.5.0">
  <artifact name="glow_2.11" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.projectglow', module='glow_2.11', version='0.5.0')
)
libraryDependencies += "io.projectglow" % "glow_2.11" % "0.5.0"
[io.projectglow/glow_2.11 "0.5.0"]

Dependencies

compile (13)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.11.12
org.seqdoop : hadoop-bam jar 7.9.2
log4j : log4j jar 1.2.17
org.slf4j : slf4j-api jar 1.7.25
org.slf4j : slf4j-log4j12 jar 1.7.25
org.jdbi : jdbi jar 2.63.1
com.github.broadinstitute : picard jar 2.21.9
org.apache.hadoop : hadoop-client jar 2.7.3
io.netty : netty jar 3.9.9.Final
io.netty : netty-all jar 4.1.17.Final
com.github.samtools : htsjdk jar 2.21.2
org.yaml : snakeyaml jar 1.16
com.typesafe.scala-logging : scala-logging-slf4j_2.11 jar 2.1.2

provided (4)

Group / Artifact Type Version
org.apache.spark : spark-catalyst_2.11 jar 2.4.3
org.apache.spark : spark-core_2.11 jar 2.4.3
org.apache.spark : spark-mllib_2.11 jar 2.4.3
org.apache.spark : spark-sql_2.11 jar 2.4.3

test (7)

Group / Artifact Type Version
org.apache.spark : spark-catalyst_2.11 jar 2.4.3
org.apache.spark : spark-core_2.11 jar 2.4.3
org.apache.spark : spark-mllib_2.11 jar 2.4.3
org.apache.spark : spark-sql_2.11 jar 2.4.3
org.scalatest : scalatest_2.11 jar 3.0.3
org.mockito : mockito-all jar 1.9.5
org.xerial : sqlite-jdbc jar 3.20.1

Project Modules

There are no modules declared in this project.

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.

CircleCI Documentation Status PyPi Maven Central Coverage Status DOI

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.

Building and Testing

This project is built using sbt and Java 8.

To build and run Glow, you must install conda and activate the environment in python/environment.yml.

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

When the environment file changes, you must update the environment:

conda env update -f python/environment.yml

Start an sbt shell using the sbt command.

FYI: The following SBT projects are built on Spark 3.0.0/Scala 2.12.8 by default. To change the Spark version and Scala version, set the environment variables SPARK_VERSION and SCALA_VERSION.

To compile the main code:

compile

To run all Scala tests:

core/test

To test a specific suite:

core/testOnly *VCFDataSourceSuite

To run all Python tests:

python/test

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

To test a specific Python test file:

python/pytest python/test_render_template.py

When using the pytest key, all arguments are passed directly to the pytest runner.

To run documentation tests:

docs/test

To run the Scala, Python and documentation tests:

test

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

stagedRelease/test

IntelliJ Tips

If you use IntelliJ, you'll want to:

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"))
io.projectglow

Project Glow

An open-source toolkit for large-scale genomic analysis

Versions

Version
0.5.0
0.4.1
0.4.0
0.3.0
0.2.0
0.1.2
0.1.1
0.1.0