Skip to content

Commit

Permalink
test: check metric values
Browse files Browse the repository at this point in the history
  • Loading branch information
znorgaard committed Dec 16, 2024
1 parent ca81af8 commit e1dcbab
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import com.fulcrumgenomics.cmdline.FgBioMain.FailureException
import com.fulcrumgenomics.testing.SamBuilder.{Minus, Plus}
import com.fulcrumgenomics.testing.{SamBuilder, UnitSpec}
import com.fulcrumgenomics.umi.GroupReadsByUmi._
import com.fulcrumgenomics.util.Metric
import org.scalatest.{OptionValues, PrivateMethodTester}

import java.nio.file.Files
Expand Down Expand Up @@ -268,7 +269,9 @@ class GroupReadsByUmiTest extends UnitSpec with OptionValues with PrivateMethodT

hist.toFile.exists() shouldBe true

metrics.toFile.exists() shouldBe true
// TODO: Create a more comprehensive test case
val expectedMetric = UmiGroupingMetric(sam_records = 10, filtered_non_pf = 0, filtered_poor_alignment = 2, filtered_ns_in_umi = 0, filtered_umis_to_short = 0)
Metric.read[UmiGroupingMetric](metrics) shouldEqual Seq(expectedMetric)

// Make sure that we skip sorting for TemplateCoordinate
val sortMessage = "Sorting the input to TemplateCoordinate order"
Expand Down

0 comments on commit e1dcbab

Please sign in to comment.