-
Notifications
You must be signed in to change notification settings - Fork 308
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #231 from hammerlab/adam-console
Helper scripts to run an ADAM Console.
- Loading branch information
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
|
||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
PROJECT_ROOT="$DIR/.." | ||
VERSION=$(grep "<version>" "$PROJECT_ROOT/pom.xml" | head -2 | tail -1 | sed 's/ *<version>//g' | sed 's/<\/version>//g') | ||
ADAM_JAR=$PROJECT_ROOT/adam-cli/target/adam-$VERSION.jar | ||
|
||
SPARK_CLASSPATH=$ADAM_JAR spark-shell -i:$DIR/scala-console.scala |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import org.bdgenomics.adam.avro.ADAMRecord | ||
import org.bdgenomics.adam.avro.ADAMNucleotideContigFragment | ||
import org.bdgenomics.adam.avro.ADAMPileup | ||
import org.bdgenomics.adam.avro.ADAMNestedPileup | ||
import org.bdgenomics.adam.avro.ADAMContig | ||
import org.bdgenomics.adam.avro.ADAMVariant | ||
import org.bdgenomics.adam.avro.VariantCallingAnnotations | ||
import org.bdgenomics.adam.avro.ADAMGenotype | ||
import org.bdgenomics.adam.avro.VariantEffect | ||
import org.bdgenomics.adam.avro.ADAMDatabaseVariantAnnotation | ||
import org.apache.spark.rdd.RDD | ||
import org.bdgenomics.adam.rdd.ADAMContext | ||
import org.bdgenomics.adam.rdd.ADAMContext._ | ||
println("\nYou can call ADAMContext methods on sc") | ||
println("Load a file using: sc.adamLoad(\"<Path to file>\");") |