Skip to content

Commit fa36970

Browse files
Additional code simplification.
1 parent c0d6cd8 commit fa36970

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

src/Alignment/Pairwise/UnboxedUkkonen.hs

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -408,24 +408,6 @@ expandBandedMatrix gap tcm lesserLeft longerTop mCost mDir po co = updateBand
408408

409409
let (write, internalCell, leftColumn, leftBoundary, rightBoundary, rightColumn) = cellDefinitions gap longerTop cost tcm mCost mDir
410410

411-
{-
412-
let computeCell leftElement insertCost i j = {-# SCC recomputeCell #-}
413-
let topElement = symbolAlignmentMedian $ longerTop ! (j - 1)
414-
deleteCost = cost topElement gap
415-
(alignElem, alignCost) = tcm topElement leftElement
416-
in do
417-
diagCost <- M.unsafeRead mCost (i - 1, j - 1)
418-
topCost <- M.unsafeRead mCost (i - 1, j )
419-
leftCost <- M.unsafeRead mCost (i , j - 1)
420-
oldCost <- M.unsafeRead mCost (i , j )
421-
let e@(c,_) = getMinimalResult gap alignElem
422-
[ ( alignCost + diagCost, DiagArrow)
423-
, (deleteCost + leftCost, LeftArrow)
424-
, (insertCost + topCost, UpArrow )
425-
]
426-
write (i,j) e
427-
pure (c == oldCost, j+1)
428-
-}
429411
let computeCell leftElement insertCost i j = {-# SCC recomputeCell #-} do
430412
e@(c,_) <-internalCell leftElement insertCost i j
431413
oldCost <- M.unsafeRead mCost (i , j )

0 commit comments

Comments
 (0)