Skip to content

Commit f59be52

Browse files
committed
fix(utils): update all calls to getSeqLengths using getGenome
1 parent ac38d7c commit f59be52

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

R/getABSignal.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#' #Modified from https://www.biostars.org/p/225520/
2222
#' random_genomic_int <- data.frame(chr = rep("chr14", 100))
2323
#' random_genomic_int$start <- apply(random_genomic_int, 1, function(x) {
24-
#' round(runif(1, 0, getSeqLengths(chr = x)[[1]]), 0)
24+
#' round(runif(1, 0, getSeqLengths(getGenome("hg19"), chr = x)[[1]]), 0)
2525
#' })
2626

2727
#' random_genomic_int$end <- random_genomic_int$start + runif(1, 1, 1000)

R/getCorMatrix.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#' # Modified from https://www.biostars.org/p/225520/
2121
#' random_genomic_int <- data.frame(chr = rep("chr14", 100))
2222
#' random_genomic_int$start <- apply(random_genomic_int, 1, function(x) {
23-
#' round(runif(1, 0, getSeqLengths(chr = x)[[1]]), 0)
23+
#' round(runif(1, 0, getSeqLengths(getGenome("hg19"), chr = x)[[1]]), 0)
2424
#' })
2525
#' random_genomic_int$end <- random_genomic_int$start + runif(1, 1, 1000)
2626
#' random_genomic_int$strand <- "*"

R/plotAB.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
#' # Modified from https://www.biostars.org/p/225520/
3434
#' random_genomic_int <- data.frame(chr = rep("chr14", 100))
3535
#' random_genomic_int$start <- apply(random_genomic_int, 1, function(x) {
36-
#' round(runif(1, 0, getSeqLengths(chr = x)[[1]]), 0)
36+
#' round(runif(1, 0, getSeqLengths(getGenome("hg19"), chr = x)[[1]]), 0)
3737
#' })
3838
#' random_genomic_int$end <- random_genomic_int$start + runif(1, 1, 1000)
3939
#' random_genomic_int$strand <- "*"

man/getABSignal.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/getCorMatrix.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/plotAB.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)