Skip to content

Commit

Permalink
add a bit of rationale in some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
vreuter committed Nov 28, 2024
1 parent 6308e31 commit 6b430d5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/scala/ComputeLocusPairwiseDistances.scala
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,10 @@ object ComputeLocusPairwiseDistances extends PairwiseDistanceProgram, ScoptCliRe
.getOrElse{ throw new Exception(
s"FOV differs (${r1.fieldOfView} vs. ${r2.fieldOfView}) for pair of records (${i1.show_} and ${i2.show_}) from trace ID ${tid.show_}"
) }
(r1.locus =!= r2.locus).option{ // Don't compute distance between a record and itself.
(r1.locus =!= r2.locus).option{
// Don't compute distance between records with the same locus ID.
// In the case of a non-aggregate region, this may well be exceptional.
// In the case of an aggregate region,
OutputRecord(
fieldOfView = fov,
trace = tid,
Expand Down

0 comments on commit 6b430d5

Please sign in to comment.