Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move to org.bdgenomics.utils 0.2.0 release #664

Merged
merged 4 commits into from
May 26, 2015
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions adam-apis/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.bdgenomics.adam</groupId>
<artifactId>adam-parent</artifactId>
<artifactId>adam-parent_2.10</artifactId>
<version>0.16.1-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

<artifactId>adam-apis</artifactId>
<artifactId>adam-apis_2.10</artifactId>
<packaging>jar</packaging>
<name>ADAM: APIs for Java</name>
<name>ADAM_2.10: APIs for Java</name>
<build>
<plugins>
<!-- disable surefire -->
Expand Down Expand Up @@ -95,11 +95,11 @@
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-core_${scala.artifact.suffix}</artifactId>
<artifactId>spark-core_2.10</artifactId>
</dependency>
<dependency>
<groupId>org.bdgenomics.bdg-utils</groupId>
<artifactId>bdg-utils-misc</artifactId>
<groupId>org.bdgenomics.utils</groupId>
<artifactId>utils-misc_2.10</artifactId>
<type>test-jar</type>
<scope>test</scope>
</dependency>
Expand All @@ -109,11 +109,11 @@
</dependency>
<dependency>
<groupId>org.bdgenomics.adam</groupId>
<artifactId>adam-core</artifactId>
<artifactId>adam-core_2.10</artifactId>
</dependency>
<dependency>
<groupId>org.bdgenomics.adam</groupId>
<artifactId>adam-core</artifactId>
<artifactId>adam-core_2.10</artifactId>
<type>test-jar</type>
<scope>test</scope>
</dependency>
Expand All @@ -131,7 +131,7 @@
</dependency>
<dependency>
<groupId>org.scalatest</groupId>
<artifactId>scalatest_${scala.artifact.suffix}</artifactId>
<artifactId>scalatest_2.10</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down
48 changes: 20 additions & 28 deletions adam-cli/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.bdgenomics.adam</groupId>
<artifactId>adam-parent</artifactId>
<artifactId>adam-parent_2.10</artifactId>
<version>0.16.1-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

<artifactId>adam-cli</artifactId>
<artifactId>adam-cli_2.10</artifactId>
<packaging>jar</packaging>
<name>ADAM: CLI</name>
<name>ADAM_2.10: CLI</name>
<build>
<plugins>
<plugin>
Expand Down Expand Up @@ -104,47 +104,51 @@
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-core_${scala.artifact.suffix}</artifactId>
<artifactId>spark-core_2.10</artifactId>
</dependency>
<dependency>
<groupId>org.bdgenomics.bdg-utils</groupId>
<artifactId>bdg-utils-misc</artifactId>
<groupId>org.bdgenomics.utils</groupId>
<artifactId>utils-misc_2.10</artifactId>
<type>test-jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.bdgenomics.bdg-utils</groupId>
<artifactId>bdg-utils-parquet</artifactId>
<groupId>org.bdgenomics.utils</groupId>
<artifactId>utils-io_2.10</artifactId>
</dependency>
<dependency>
<groupId>org.bdgenomics.bdg-utils</groupId>
<artifactId>bdg-utils-metrics</artifactId>
<groupId>org.bdgenomics.utils</groupId>
<artifactId>utils-cli_2.10</artifactId>
</dependency>
<dependency>
<groupId>org.bdgenomics.utils</groupId>
<artifactId>utils-metrics_2.10</artifactId>
</dependency>
<dependency>
<groupId>org.scoverage</groupId>
<artifactId>scalac-scoverage-plugin_${scala.artifact.suffix}</artifactId>
<artifactId>scalac-scoverage-plugin_2.10</artifactId>
</dependency>
<dependency>
<groupId>org.bdgenomics.bdg-formats</groupId>
<artifactId>bdg-formats</artifactId>
</dependency>
<dependency>
<groupId>org.bdgenomics.adam</groupId>
<artifactId>adam-core</artifactId>
<artifactId>adam-core_2.10</artifactId>
</dependency>
<dependency>
<groupId>org.bdgenomics.adam</groupId>
<artifactId>adam-core</artifactId>
<artifactId>adam-core_2.10</artifactId>
<type>test-jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.bdgenomics.adam</groupId>
<artifactId>adam-apis</artifactId>
<artifactId>adam-apis_2.10</artifactId>
</dependency>
<dependency>
<groupId>org.bdgenomics.adam</groupId>
<artifactId>adam-apis</artifactId>
<artifactId>adam-apis_2.10</artifactId>
<type>test-jar</type>
<scope>test</scope>
</dependency>
Expand All @@ -160,21 +164,9 @@
<groupId>args4j</groupId>
<artifactId>args4j</artifactId>
</dependency>
<dependency>
<groupId>org.fusesource.scalate</groupId>
<artifactId>scalate-core_2.10</artifactId>
</dependency>
<dependency>
<groupId>org.scalatra</groupId>
<artifactId>scalatra-json_2.10</artifactId>
</dependency>
<dependency>
<groupId>org.scalatra</groupId>
<artifactId>scalatra_2.10</artifactId>
</dependency>
<dependency>
<groupId>org.scalatest</groupId>
<artifactId>scalatest_${scala.artifact.suffix}</artifactId>
<artifactId>scalatest_2.10</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down
13 changes: 7 additions & 6 deletions adam-cli/src/main/scala/org/bdgenomics/adam/cli/ADAM2Vcf.scala
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,18 @@
*/
package org.bdgenomics.adam.cli

import org.bdgenomics.formats.avro.Genotype
import org.bdgenomics.adam.rdd.ADAMContext._
import org.kohsuke.args4j.{ Option => Args4jOption, Argument }
import java.io.File
import org.apache.spark.rdd.RDD
import org.apache.spark.{ Logging, SparkContext }
import org.apache.hadoop.mapreduce.Job
import java.io.File
import org.bdgenomics.adam.models.SequenceDictionary
import org.bdgenomics.adam.rdd.ADAMContext._
import org.bdgenomics.formats.avro.Genotype
import org.bdgenomics.utils.cli._
import org.kohsuke.args4j.{ Option => Args4jOption, Argument }
import scala.Option

object ADAM2Vcf extends ADAMCommandCompanion {
object ADAM2Vcf extends BDGCommandCompanion {

val commandName = "adam2vcf"
val commandDescription = "Convert an ADAM variant to the VCF ADAM format"
Expand All @@ -54,7 +55,7 @@ class ADAM2VcfArgs extends Args4jBase with ParquetArgs {
var sort: Boolean = false
}

class ADAM2Vcf(val args: ADAM2VcfArgs) extends ADAMSparkCommand[ADAM2VcfArgs] with DictionaryCommand with Logging {
class ADAM2Vcf(val args: ADAM2VcfArgs) extends BDGSparkCommand[ADAM2VcfArgs] with DictionaryCommand with Logging {
val companion = ADAM2Vcf

def run(sc: SparkContext, job: Job) {
Expand Down
91 changes: 0 additions & 91 deletions adam-cli/src/main/scala/org/bdgenomics/adam/cli/ADAMCommand.scala

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,16 @@
*/
package org.bdgenomics.adam.cli

import java.util.logging.Level._
import org.apache.spark.Logging
import org.bdgenomics.adam.util.ParquetLogger
import org.bdgenomics.utils.cli._
import scala.Some
import scala.collection.mutable.ListBuffer
import org.bdgenomics.adam.util.ParquetLogger
import java.util.logging.Level._

object ADAMMain extends Logging {

case class CommandGroup(name: String, commands: List[ADAMCommandCompanion])
case class CommandGroup(name: String, commands: List[BDGCommandCompanion])

private val commandGroups =
List(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import org.apache.spark.storage.StorageLevel
import org.bdgenomics.adam.projections.{ AlignmentRecordField, Projection }
import org.bdgenomics.adam.rdd.ADAMContext._
import org.bdgenomics.formats.avro.AlignmentRecord
import org.bdgenomics.utils.cli._
import org.kohsuke.args4j.{ Option => Args4JOption, Argument }

class Adam2FastqArgs extends ParquetLoadSaveArgs {
Expand All @@ -40,15 +41,15 @@ class Adam2FastqArgs extends ParquetLoadSaveArgs {
var disableProjection: Boolean = false
}

object Adam2Fastq extends ADAMCommandCompanion {
object Adam2Fastq extends BDGCommandCompanion {
override val commandName = "adam2fastq"
override val commandDescription = "Convert BAM to FASTQ files"

override def apply(cmdLine: Array[String]): Adam2Fastq =
new Adam2Fastq(Args4j[Adam2FastqArgs](cmdLine))
}

class Adam2Fastq(val args: Adam2FastqArgs) extends ADAMSparkCommand[Adam2FastqArgs] {
class Adam2Fastq(val args: Adam2FastqArgs) extends BDGSparkCommand[Adam2FastqArgs] {
override val companion = Adam2Fastq

override def run(sc: SparkContext, job: Job): Unit = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ import org.apache.spark.{ Logging, SparkContext }
import org.apache.spark.rdd.RDD
import org.bdgenomics.adam.rdd.ADAMContext._
import org.bdgenomics.formats.avro.{ Genotype, GenotypeAllele }
import org.bdgenomics.utils.cli._
import org.kohsuke.args4j.Argument

object AlleleCount extends ADAMCommandCompanion {
object AlleleCount extends BDGCommandCompanion {
val commandName = "allelecount"
val commandDescription = "Calculate Allele frequencies"

Expand Down Expand Up @@ -65,7 +66,7 @@ object AlleleCountHelper extends Serializable {
}
}

class AlleleCount(val args: AlleleCountArgs) extends ADAMSparkCommand[AlleleCountArgs] with Logging {
class AlleleCount(val args: AlleleCountArgs) extends BDGSparkCommand[AlleleCountArgs] with Logging {
val companion = AlleleCount

def run(sc: SparkContext, job: Job) {
Expand Down
Loading