Skip to content

Commit

Permalink
python test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
heuermh committed Dec 11, 2018
1 parent a371f9f commit 47781cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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"),
Expand Down
2 changes: 1 addition & 1 deletion adam-python/bdgenomics/adam/test/genotypeDataset_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 47781cf

Please sign in to comment.