Browse code

support new version of bam_tally

Michael Lawrence authored on 12/06/2019 22:48:54
Showing 1 changed files
... ...
@@ -8,9 +8,9 @@ test_BamTallyParam <- function() {
8 8
                minimum_mapq = 0L,
9 9
                concordant_only = FALSE, unique_only = FALSE,
10 10
                primary_only = FALSE, ignore_duplicates = FALSE,
11
-               min_depth = 0L, variant_strand = 0L,
11
+               min_depth = 0L, variant_strand = 0L, variant_pct = 0,
12 12
                ignore_query_Ns = FALSE,
13
-               indels = FALSE, include_soft_clips = 0L,
13
+               indels = FALSE, min_softclip = 0L, max_softclip = 0L,
14 14
                xs = FALSE, read_pos = FALSE, min_base_quality = 0L,
15 15
                noncovered = FALSE, nm = FALSE)
16 16
   which <- TP53Which()
Browse code

general cleanup and fixes, doc updates

git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/gmapR@111183 bc3139a8-67e5-0310-9ffc-ced21a209358

Michael Lawrence authored on 03/12/2015 21:11:09
Showing 1 changed files
... ...
@@ -10,7 +10,9 @@ test_BamTallyParam <- function() {
10 10
                primary_only = FALSE, ignore_duplicates = FALSE,
11 11
                min_depth = 0L, variant_strand = 0L,
12 12
                ignore_query_Ns = FALSE,
13
-               indels = FALSE, include_soft_clips = 0L)
13
+               indels = FALSE, include_soft_clips = 0L,
14
+               xs = FALSE, read_pos = FALSE, min_base_quality = 0L,
15
+               noncovered = FALSE, nm = FALSE)
14 16
   which <- TP53Which()
15 17
   wicked.which <- renameSeqlevels(which, c(TP53 = "chr1"))
16 18
   
Browse code

add codon tally support. No vbump yet

git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/gmapR@93316 bc3139a8-67e5-0310-9ffc-ced21a209358

Gabriel Becker authored on 11/08/2014 23:42:48
Showing 1 changed files
... ...
@@ -10,8 +10,7 @@ test_BamTallyParam <- function() {
10 10
                primary_only = FALSE, ignore_duplicates = FALSE,
11 11
                min_depth = 0L, variant_strand = 0L,
12 12
                ignore_query_Ns = FALSE,
13
-               indels = FALSE, include_soft_clips = 0L,
14
-               count_xs = FALSE, noncovered = FALSE)
13
+               indels = FALSE, include_soft_clips = 0L)
15 14
   which <- TP53Which()
16 15
   wicked.which <- renameSeqlevels(which, c(TP53 = "chr1"))
17 16
   
Browse code

fix BamTallyParam test

git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/gmapR@90425 bc3139a8-67e5-0310-9ffc-ced21a209358

Michael Lawrence authored on 16/05/2014 21:33:54
Showing 1 changed files
... ...
@@ -10,7 +10,8 @@ test_BamTallyParam <- function() {
10 10
                primary_only = FALSE, ignore_duplicates = FALSE,
11 11
                min_depth = 0L, variant_strand = 0L,
12 12
                ignore_query_Ns = FALSE,
13
-               indels = FALSE, include_soft_clips = 0L)
13
+               indels = FALSE, include_soft_clips = 0L,
14
+               count_xs = FALSE, noncovered = FALSE)
14 15
   which <- TP53Which()
15 16
   wicked.which <- renameSeqlevels(which, c(TP53 = "chr1"))
16 17
   
Browse code

fix unit test for addition of remove_soft_clips

git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/gmapR@88622 bc3139a8-67e5-0310-9ffc-ced21a209358

Michael Lawrence authored on 08/04/2014 22:43:12
Showing 1 changed files
... ...
@@ -10,7 +10,7 @@ test_BamTallyParam <- function() {
10 10
                primary_only = FALSE, ignore_duplicates = FALSE,
11 11
                min_depth = 0L, variant_strand = 0L,
12 12
                ignore_query_Ns = FALSE,
13
-               indels = FALSE)
13
+               indels = FALSE, include_soft_clips = 0L)
14 14
   which <- TP53Which()
15 15
   wicked.which <- renameSeqlevels(which, c(TP53 = "chr1"))
16 16
   
Browse code

updates to tests

git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/gmapR@79522 bc3139a8-67e5-0310-9ffc-ced21a209358

Michael Lawrence authored on 17/08/2013 01:41:06
Showing 1 changed files
... ...
@@ -3,7 +3,8 @@ test_BamTallyParam <- function() {
3 3
   on.exit(options(warn = 0))
4 4
   genome <- TP53Genome()
5 5
   genome.name <- genome(genome)
6
-  param <- new("BamTallyParam", genome = genome, which = RangesList(),
6
+  param <- new("BamTallyParam", genome = genome,
7
+               which = gmapR:::normArgWhich(GRanges(), genome),
7 8
                minimum_mapq = 0L,
8 9
                concordant_only = FALSE, unique_only = FALSE,
9 10
                primary_only = FALSE, ignore_duplicates = FALSE,
Browse code

add some unit tests for BamTallyParam

git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/gmapR@78420 bc3139a8-67e5-0310-9ffc-ced21a209358

Michael Lawrence authored on 14/07/2013 00:31:18
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,31 @@
1
+test_BamTallyParam <- function() {
2
+  options(warn = 2)
3
+  on.exit(options(warn = 0))
4
+  genome <- TP53Genome()
5
+  genome.name <- genome(genome)
6
+  param <- new("BamTallyParam", genome = genome, which = RangesList(),
7
+               minimum_mapq = 0L,
8
+               concordant_only = FALSE, unique_only = FALSE,
9
+               primary_only = FALSE, ignore_duplicates = FALSE,
10
+               min_depth = 0L, variant_strand = 0L,
11
+               ignore_query_Ns = FALSE,
12
+               indels = FALSE)
13
+  which <- TP53Which()
14
+  wicked.which <- renameSeqlevels(which, c(TP53 = "chr1"))
15
+  
16
+  checkException(BamTallyParam(), silent = TRUE)
17
+  checkException(BamTallyParam(5), silent = TRUE)
18
+  
19
+  checkIdentical(BamTallyParam(genome.name), param)
20
+  checkException(BamTallyParam(genome, IRanges(1, 10)), silent = TRUE)
21
+  checkException(BamTallyParam(genome, wicked.which), silent = TRUE)
22
+  param@which <- gmapR:::normArgWhich(which, genome)
23
+  checkIdentical(BamTallyParam(genome, which), param)
24
+  checkException(BamTallyParam(genome, concordant_only = NA), silent = TRUE)
25
+  checkException(BamTallyParam(genome, unique_only = rep(FALSE, 2)),
26
+                 silent = TRUE)
27
+  checkException(BamTallyParam(genome, min_depth = -1), silent = TRUE)
28
+  checkException(BamTallyParam(genome, variant_strand = 5), silent = TRUE)
29
+  param@variant_strand <- 2L
30
+  checkIdentical(BamTallyParam(genome, which, variant_strand = 2), param)
31
+}