Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jayhesselberth committed Dec 22, 2024
1 parent 039cf7b commit 7cd8705
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
7 changes: 5 additions & 2 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ output: github_document
[![Codecov test coverage](https://codecov.io/gh/rnabioco/cpp11bigwig/graph/badge.svg)](https://app.codecov.io/gh/rnabioco/cpp11bigwig)
<!-- badges: end -->

cpp11bigwig provides read access to bigWig files in R using `libBigWig` from @dpryan79. Data is read into an R `data.frame`.
cpp11bigwig provides read access to bigWig files in R using [libBigWig](https://github.com/dpryan79/libBigWig). Data is read into an R `data.frame`.

## Installation

Expand All @@ -24,6 +24,9 @@ pak::pak("rnabioco/cpp11bigwig")


```{r}
#| eval: false
library(cpp11bigwig)
bw = system.file('extdata', 'test.bw', package = 'cpp11bigwig')
read_bigwig(bw)
```
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
coverage](https://codecov.io/gh/rnabioco/cpp11bigwig/graph/badge.svg)](https://app.codecov.io/gh/rnabioco/cpp11bigwig)
<!-- badges: end -->

cpp11bigwig provides read access to bigWig files in R using `libBigWig`
from @dpryan79. Data is read into an R `data.frame`.
cpp11bigwig provides read access to bigWig files in R using
[libBigWig](https://github.com/dpryan79/libBigWig). Data is read into an
R `data.frame`.

## Installation

Expand All @@ -25,4 +26,16 @@ pak::pak("rnabioco/cpp11bigwig")

``` r
library(cpp11bigwig)

bw = system.file('extdata', 'test.bw', package = 'cpp11bigwig')

read_bigwig(bw)
```

## chrom start end value
## 1 1 0 1 0.1
## 2 1 1 2 0.2
## 3 1 2 3 0.3
## 4 1 100 150 1.4
## 5 1 150 151 1.5
## 6 10 200 300 2.0

0 comments on commit 7cd8705

Please sign in to comment.