Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix URL for GN API + other small things #12

Merged
merged 5 commits into from
Jul 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Workflow derived from https://github.com/r-lib/actions/tree/master/examples
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
Expand All @@ -18,7 +18,7 @@ jobs:
fail-fast: false
matrix:
config:
- {os: macOS-latest, r: 'release'}
- {os: macos-latest, r: 'release'}
- {os: windows-latest, r: 'release'}
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
- {os: ubuntu-latest, r: 'release'}
Expand All @@ -29,18 +29,21 @@ jobs:
R_KEEP_PKG_SOURCE: yes

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- uses: r-lib/actions/setup-pandoc@v1
- uses: r-lib/actions/setup-pandoc@v2

- uses: r-lib/actions/setup-r@v1
- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v1
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: rcmdcheck
extra-packages: any::rcmdcheck
needs: check

- uses: r-lib/actions/check-r-package@v1
- uses: r-lib/actions/check-r-package@v2
with:
upload-snapshots: true
6 changes: 3 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: GNapi
Version: 0.3-7
Date: 2022-10-25
Version: 0.3-8
Date: 2023-07-26
Title: Connection to the GeneNetwork API
Description: Tools for connecting to the GeneNetwork API.
Author: Karl W Broman [aut, cre] (<https://orcid.org/0000-0002-4914-6671>)
Expand All @@ -26,5 +26,5 @@ LazyData: true
Encoding: UTF-8
ByteCompile: true
VignetteBuilder: knitr
RoxygenNote: 7.2.1
RoxygenNote: 7.2.3
Roxygen: list(markdown=TRUE)
10 changes: 10 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
## GNapi 0.3-8 (2023-07-26)

### Minor changes

- Updated URL for GeneNetwork API

- Remove an example from the vignette that no longer works:
"get the information for a specific group," `list_groups("rat", "HSNIH-Palmer")`


## GNapi 0.3-7 (2022-10-25)

### Bug fixes
Expand Down
2 changes: 1 addition & 1 deletion R/gnapi_url.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
#' @export
gnapi_url <- function()
{
"http://gn2.genenetwork.org/api/v_pre1"
"https://genenetwork.org/api/v_pre1"
}
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## R/GNapi - R package to connect to the [GeneNetwork](http://gn2.genenetwork.org/) API
## R/GNapi - R package to connect to the [GeneNetwork](https://genenetwork.org/) API

[![R build status](https://github.com/rqtl/GNapi/workflows/R-CMD-check/badge.svg)](https://github.com/rqtl/GNapi/actions)
[![R-CMD-check](https://github.com/rqtl/GNapi/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/rqtl/GNapi/actions/workflows/R-CMD-check.yaml)

---

Expand All @@ -24,7 +24,7 @@ Then use `remotes::install_github()` to install R/GNapi.
### Usage

For an understanding of the
[GeneNetwork](http://gn2.genenetwork.org) API, see
[GeneNetwork](https://genenetwork.org) API, see
[its
documentation](https://github.com/genenetwork/genenetwork2/blob/testing/api_readme.md),
as well as [Zachary Sloan](https://github.com/zsloan?tab=repositories)'s
Expand Down
149 changes: 73 additions & 76 deletions docs/GNapi.html

Large diffs are not rendered by default.

8 changes: 1 addition & 7 deletions vignettes/GNapi.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ opts_chunk$set(fig.width=7, fig.height=4.5,
```

The [R/GNapi](https://github.com/rqtl/GNapi) package provides
access to the [GeneNetwork2](http://gn2.genenetwork.org) API; for
access to the [GeneNetwork2](https://genenetwork.org) API; for
details on the API, see [its
documentation](https://github.com/genenetwork/genenetwork2/blob/testing/api_readme.md)
The present vignette simply follows that documenation and shows the
Expand Down Expand Up @@ -49,12 +49,6 @@ You can also get the list of groups for a single species:
list_groups("rat")
```

You can also get the information for a specific group:

```r
list_groups("rat", "HSNIH-Palmer")
```

## Fetch genotypes for Group/RIset

```r
Expand Down