Skip to content

Commit a8e05ba

Browse files
authored
Merge pull request #108 from uclahs-cds/helenzhu-refactor_histogram_and_gh_functions
Refactor: Enforcing bin_width and addition of introns to GenomicHistogram
2 parents da0e24e + 96cffdc commit a8e05ba

14 files changed

+1275
-132
lines changed

NAMESPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export(GenomicHistogram)
3030
export(Histogram)
3131
export(bigWig_to_histogram)
3232
export(bin_log_likelihood)
33+
export(coverage_to_histogram)
3334
export(create_coverageplot)
3435
export(create_histogram)
3536
export(create_layerplot)

NEWS.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
2+
# Change Log
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](http://keepachangelog.com/)
6+
and this project adheres to [Semantic Versioning](http://semver.org/).
7+
8+
## [Unreleased]
9+
10+
### Added
11+
12+
### Changed
13+
- S3 methods to allow numeric/Histogram/GenomicHistogram input in key segment_and_fit functions
14+
15+
### Fixed
16+
17+
## [1.3.0] - 2023-04-14
18+
19+
### Added
20+
- Added summary statistics (mean, sd, var, skew) estimation from histogram objects [Pull #113](https://github.com/uclahs-cds/public-R-HistogramZoo/pull/113)
21+
22+
### Changed
23+
- Enforcing bin width and addition of intron-traversing bins in GenomicHistogram [Pull #108](https://github.com/uclahs-cds/public-R-HistogramZoo/pull/108)
24+
25+
## [1.2.0] - 2023-04-12
26+
27+
### Added
28+
- Added a classic histogram plotting function [Pull #111](https://github.com/uclahs-cds/public-R-HistogramZoo/pull/111)
29+
30+
## [1.1.0] - 2023-03-09
31+
32+
### Added
33+
- Maxiumum likelihood estimation for distribution parameters [Pull #97](https://github.com/uclahs-cds/public-R-HistogramZoo/pull/97)
34+
- A vignette! [Pull #81](https://github.com/uclahs-cds/public-R-HistogramZoo/pull/81)
35+
- Added `gamma_flip` as an available distribution [Pull #62](https://github.com/uclahs-cds/public-R-HistogramZoo/pull/62)
36+
37+
### Changed
38+
- New rules for `Histogram` and `GenomicHistogram` [Pull #76](https://github.com/uclahs-cds/public-R-HistogramZoo/pull/76)
39+
- `Histogram` uses a strictly continuous Base 0 system while `GenomicHistogram` uses a potentially disjoint Base 1 system
40+
- Both are restricted to having a fixed `bin_width` in (n-1) bins
41+
- Add pkgdown build on new release [Pull #56](https://github.com/uclahs-cds/public-R-HistogramZoo/pull/56)
42+
- Updated `find_consensus_model` to include user-specified weights and metric prioritization & addition of new RRA method [Pull #53](https://github.com/uclahs-cds/public-R-HistogramZoo/pull/53)
43+
44+
### Fixed
45+
- Bug in `segment_and_fit` - finer segmentation is required to initialize `meaningful_gaps_local` [Pull #73](https://github.com/uclahs-cds/public-R-HistogramZoo/pull/73)
46+
- Refactored `create_trackplot` to use `BoutrosLab.plotting.general::create.scatterplot` as a base function thus increasing efficiency [Pull #71](https://github.com/uclahs-cds/public-R-HistogramZoo/pull/71)
47+
- Refactored `find_uniform_segment` to reduce code redundancy [Pull #59](https://github.com/uclahs-cds/public-R-HistogramZoo/pull/59)
48+
49+
## [1.0.0] - 2022-08-22
50+
51+
### Added
52+
- First release!

R/GRanges-utils.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#' Converts a GRanges object from base 0 to base 1
2-
#'
2+
#'
33
#' @param gr a GRanges object in base 0
44
#' @return a GRanges object in base 1
55
base0_to_base1 <- function(gr){

0 commit comments

Comments
 (0)