Skip to content

Commit

Permalink
updated python/R tests for optSampleId
Browse files Browse the repository at this point in the history
  • Loading branch information
akmorrow13 committed Nov 12, 2018
1 parent 04b56cc commit 87bd373
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def test_transmute_to_coverage(self):
x.start,
x.end,
x.mapq.cast(DoubleType()).alias("count"),
x.recordGroupSample.alias("sampleId")),
x.recordGroupSample.alias("optSampleId")),
CoverageRDD)

assert(isinstance(readsAsCoverage, CoverageRDD))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ test_that("transmute to coverage", {
reads <- loadAlignments(ac, readsPath)

readsAsCoverage = transmute(reads, function(df) {
select(df, df$contigName, df$start, df$end, alias(cast(df$mapq, "double"), "count"), alias(cast(df$recordGroupSample, "string"), "sampleId"))
select(df, df$contigName, df$start, df$end, alias(cast(df$mapq, "double"), "count"), alias(cast(df$recordGroupSample, "string"), "optSampleId"))
}, "CoverageRDD")

expect_true(is(readsAsCoverage, "CoverageRDD"))
Expand Down

0 comments on commit 87bd373

Please sign in to comment.