diff --git a/NEWS.md b/NEWS.md index 09c3bb1..9078bdb 100644 --- a/NEWS.md +++ b/NEWS.md @@ -3,7 +3,12 @@ ## changes * Moved functions into separate files for better code review. +* `getGRcoverageFromBw()` + * When it fails to download a bigwig file, it prints the error + which is not always informative. Now it also prints the warning, + which can tell whether the URL was available, or another error + was caused by this step. # splicejam 0.0.81.900 diff --git a/R/jambio-gr-coverage.R b/R/jambio-gr-coverage.R index 2ef681a..d123bce 100644 --- a/R/jambio-gr-coverage.R +++ b/R/jambio-gr-coverage.R @@ -141,7 +141,10 @@ getGRcoverageFromBw <- function bwUrl, "', returning NULL."); jamba::printDebug(warnText); + # print the error print(e); + # print any associated warnings + print(warnings()); warning(warnText); NULL; }); diff --git a/man/combineGRcoverage.Rd b/man/combineGRcoverage.Rd index 74abf54..94f0fa4 100644 --- a/man/combineGRcoverage.Rd +++ b/man/combineGRcoverage.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/jambio-plot.R +% Please edit documentation in R/jambio-gr-coverage.R \name{combineGRcoverage} \alias{combineGRcoverage} \title{Combine GRanges coverage replicates} diff --git a/man/getGRcoverageFromBw.Rd b/man/getGRcoverageFromBw.Rd index 2a98658..0e816d3 100644 --- a/man/getGRcoverageFromBw.Rd +++ b/man/getGRcoverageFromBw.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/jambio-plot.R +% Please edit documentation in R/jambio-gr-coverage.R \name{getGRcoverageFromBw} \alias{getGRcoverageFromBw} \title{Get coverage for GRanges from bigWig files}