Skip to content

Commit

Permalink
Merge pull request #105 from cnluzon/fix-peak-import
Browse files Browse the repository at this point in the history
Fix peak import
  • Loading branch information
cnluzon authored Mar 28, 2024
2 parents 7a7477e + 8c430fa commit a370c9f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: wigglescout
Title: Explore and Visualize Genomics BigWig Data
Version: 0.16.0
Version: 0.16.1
Authors@R:
person(given = "Carmen",
family = "Navarro",
Expand Down
7 changes: 7 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# wigglescout 0.16.1

## Bug fixes

* Fixed issue importing formats different to BED files. Now the format guessing
is left to rtracklayer and narrowPeak files are accepted. Fixes issue #98.

# wigglescout 0.16.0

## Features
Expand Down
4 changes: 2 additions & 2 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@
#' @return An integer
.loci_length <- function(loci) {
if (is.character(loci)) {
length(rtracklayer::import(loci, format="BED"))
length(rtracklayer::import(loci))
} else {
length(loci)
}
Expand All @@ -277,7 +277,7 @@
.loci_to_granges <- function(loci) {
bed <- loci
if (is(loci, "character")){
bed <- import(loci, format = "BED")
bed <- import(loci)
}
if ("name" %in% names(mcols(bed))) {
bed <- bed[, "name"]
Expand Down

0 comments on commit a370c9f

Please sign in to comment.