From 47781cf5c95886c93c5ec0b2cd61d0b3a0d49b01 Mon Sep 17 00:00:00 2001 From: Michael L Heuer Date: Tue, 11 Dec 2018 13:17:04 -0600 Subject: [PATCH] python test failures --- .../bdgenomics/adam/test/alignmentRecordDataset_test.py | 4 ++-- adam-python/bdgenomics/adam/test/genotypeDataset_test.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/adam-python/bdgenomics/adam/test/alignmentRecordDataset_test.py b/adam-python/bdgenomics/adam/test/alignmentRecordDataset_test.py index 9b78225435..3cf64105f9 100644 --- a/adam-python/bdgenomics/adam/test/alignmentRecordDataset_test.py +++ b/adam-python/bdgenomics/adam/test/alignmentRecordDataset_test.py @@ -120,7 +120,7 @@ def test_transform(self): reads = ac.loadAlignments(readsPath) - transformedReads = reads.transform(lambda x: x.filter(x.contigName == "1")) + transformedReads = reads.transform(lambda x: x.filter(x.referenceName == "1")) self.assertEqual(transformedReads.toDF().count(), 1) @@ -132,7 +132,7 @@ def test_transmute_to_coverage(self): reads = ac.loadAlignments(readsPath) - readsAsCoverage = reads.transmute(lambda x: x.select(x.contigName, + readsAsCoverage = reads.transmute(lambda x: x.select(x.referenceName, x.start, x.end, x.mapq.cast(DoubleType()).alias("count"), diff --git a/adam-python/bdgenomics/adam/test/genotypeDataset_test.py b/adam-python/bdgenomics/adam/test/genotypeDataset_test.py index 88a6b2bf66..f253bb7e6d 100644 --- a/adam-python/bdgenomics/adam/test/genotypeDataset_test.py +++ b/adam-python/bdgenomics/adam/test/genotypeDataset_test.py @@ -248,7 +248,7 @@ def test_transform(self): genotypes = ac.loadGenotypes(testFile) - transformedGenotypes = genotypes.transform(lambda x: x.filter(x.contigName == '1')) + transformedGenotypes = genotypes.transform(lambda x: x.filter(x.referenceName == '1')) self.assertEqual(transformedGenotypes.toDF().count(), 9)