Skip to content

Chapter 26: Gene Aggregation

Programs of chapter 26 of the book Data Algorithms (O'Reilly, 2015), running on Spark 4.3.0.

Chapter notes: chap26/scala

Sample input: data/chap26/bioset1.txt · data/chap26/bioset2.txt · data/chap26/biosets_files.txt

Run the commands from the repository folder after building the jar (Running the programs).

Spark (Java)

chap26.spark.SparkGeneAggregationByAverage

Source: SparkGeneAggregationByAverage.java

scripts/run_spark.sh org.dataalgorithms.chap26.spark.SparkGeneAggregationByAverage r1 up 0.5 data/chap26/biosets_files.txt

chap26.spark.SparkGeneAggregationByIndividual

Source: SparkGeneAggregationByIndividual.java

scripts/run_spark.sh org.dataalgorithms.chap26.spark.SparkGeneAggregationByIndividual r1 up 0.5 data/chap26/biosets_files.txt

Spark (Scala)

chap26.scala.GeneAggregationByAverage

Source: GeneAggregationByAverage.scala

scripts/run_spark.sh org.dataalgorithms.chap26.scala.GeneAggregationByAverage "data/chap26/bioset[12].txt" r1 up 0.5 /tmp/data-algorithms/chap26.scala.GeneAggregationByAverage/output

chap26.scala.GeneAggregationByIndividual

Source: GeneAggregationByIndividual.scala

scripts/run_spark.sh org.dataalgorithms.chap26.scala.GeneAggregationByIndividual "data/chap26/bioset[12].txt" r1 up 0.5 /tmp/data-algorithms/chap26.scala.GeneAggregationByIndividual/output