Skip to content

Commit

Permalink
Fix compile errors due to upstream commit 0afbda96.
Browse files Browse the repository at this point in the history
  • Loading branch information
heuermh authored and fnothaft committed Jul 13, 2017
1 parent 7a098f6 commit 560789a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
10 changes: 10 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,11 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-sql_${scala.version.prefix}</artifactId>
<version>${spark.version}</version>
</dependency>
<dependency>
<groupId>org.scalatest</groupId>
<artifactId>scalatest_${scala.version.prefix}</artifactId>
Expand All @@ -373,6 +378,11 @@
<artifactId>spark-core_${scala.version.prefix}</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-sql_${scala.version.prefix}</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.bdgenomics.adam</groupId>
<artifactId>adam-cli_${scala.version.prefix}</artifactId>
Expand Down
4 changes: 2 additions & 2 deletions src/main/scala/org/bdgenomics/cannoli/Bwa.scala
Original file line number Diff line number Diff line change
Expand Up @@ -196,11 +196,11 @@ class Bwa(protected val args: BwaArgs) extends BDGSparkCommand[BwaArgs] with Log
}

val output: AlignmentRecordRDD = input.pipe[AlignmentRecord, AlignmentRecordRDD, InterleavedFASTQInFormatter](bwaCommand)
.copy(recordGroups = RecordGroupDictionary(Seq(RecordGroup(sample, sample))))
.replaceRecordGroups(RecordGroupDictionary(Seq(RecordGroup(sample, sample))))

val outputMaybeWithSequences = Option(args.sequenceDictionary).fold(output)(sdPath => {
val sequences = SequenceDictionaryReader(sdPath, sc)
output.copy(sequences = sequences)
output.replaceSequences(sequences)
})

if (!args.asFragments) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,8 @@ private[cannoli] object QuerynameGrouper extends Serializable {
}

def apply(rdd: AlignmentRecordRDD): FragmentRDD = {
new FragmentRDD(apply(rdd.rdd),
FragmentRDD(apply(rdd.rdd),
rdd.sequences,
rdd.recordGroups,
optPartitionMap = None)
rdd.recordGroups)
}
}

0 comments on commit 560789a

Please sign in to comment.