Skip to content

Commit

Permalink
REFACTOR: Update pairwise operation tests based on import changes (#237)
Browse files Browse the repository at this point in the history
Reference changed to importTransposedCSV
  • Loading branch information
NickEdwards7502 committed Sep 19, 2024
1 parent d2048d0 commit 2416b8e
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class CommonPairwiseOperationTest extends SparkTest {
@Test
def testManhattanPaiwiseOperation() {
implicit val vsContext = VSContext(spark)
val features = vsContext.importCSV("src/test/data/synthetic_100x10k.csv");
val features = vsContext.importTransposedCSV("src/test/data/synthetic_100x10k.csv");
val result = features.pairwiseOperation("manhattan").value
val expected = TestCsvUtils.readColumnToDoubleArray(
"src/test/data/synthetic_100x10k_metrics.csv", "manhattan")
Expand All @@ -34,7 +34,7 @@ class CommonPairwiseOperationTest extends SparkTest {
@Test
def testEuclideanPaiwiseOperation() {
implicit val vsContext = VSContext(spark)
val features = vsContext.importCSV("src/test/data/synthetic_100x10k.csv");
val features = vsContext.importTransposedCSV("src/test/data/synthetic_100x10k.csv");
val result = features.pairwiseOperation("euclidean").value
val expected = TestCsvUtils.readColumnToDoubleArray(
"src/test/data/synthetic_100x10k_metrics.csv", "euclidean")
Expand All @@ -44,7 +44,7 @@ class CommonPairwiseOperationTest extends SparkTest {
@Test
def testAnySharedAltCountPaiwiseOperation() {
implicit val vsContext = VSContext(spark)
val features = vsContext.importCSV("src/test/data/synthetic_100x10k.csv");
val features = vsContext.importTransposedCSV("src/test/data/synthetic_100x10k.csv");
val result = features.pairwiseOperation("anySharedAltAlleleCount").value
val expected = TestCsvUtils.readColumnToDoubleArray(
"src/test/data/synthetic_100x10k_metrics.csv", "anySharedCount")
Expand All @@ -54,7 +54,7 @@ class CommonPairwiseOperationTest extends SparkTest {
@Test
def testAllSharedAltCountPaiwiseOperation() {
implicit val vsContext = VSContext(spark)
val features = vsContext.importCSV("src/test/data/synthetic_100x10k.csv");
val features = vsContext.importTransposedCSV("src/test/data/synthetic_100x10k.csv");
val result = features.pairwiseOperation("sharedAltAlleleCount").value
val expected = TestCsvUtils.readColumnToDoubleArray(
"src/test/data/synthetic_100x10k_metrics.csv", "allSharedCount")
Expand Down

0 comments on commit 2416b8e

Please sign in to comment.