Skip to content

Commit

Permalink
timfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
nh13 committed Jan 16, 2025
1 parent 0960012 commit 7a5a4da
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/main/scala/com/fulcrumgenomics/alignment/Aligner.scala
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,11 @@ object Aligner {

private var matrices: Array[CachedAlignmentMatrix] = AllDirections.sorted.map { dir =>
CachedAlignmentMatrix(
direction=dir,
scoring=Matrix[Int](initQueryLength, initTargetLength),
trace=Matrix[Int](initQueryLength, initTargetLength),
queryLength=initQueryLength,
targetLength=initTargetLength,
direction = dir,
scoring = Matrix[Int](initQueryLength, initTargetLength),
trace = Matrix[Int](initQueryLength, initTargetLength),
queryLength = initQueryLength,
targetLength = initTargetLength,
)
}.toArray

Expand All @@ -150,11 +150,11 @@ object Aligner {
val yLength = math.max(target.length, this.matrices(0).scoring.y)
this.matrices = AllDirections.sorted.map { dir =>
CachedAlignmentMatrix(
direction=dir,
scoring=Matrix[Int](xLength, yLength),
trace=Matrix[Int](xLength, yLength),
queryLength=query.length,
targetLength=target.length,
direction = dir,
scoring = Matrix[Int](xLength, yLength),
trace = Matrix[Int](xLength, yLength),
queryLength = query.length,
targetLength = target.length,
)
}.toArray
} else if (this.matrices(0).queryLength != query.length || this.matrices(0).targetLength != target.length) {
Expand Down

0 comments on commit 7a5a4da

Please sign in to comment.