Skip to content

Commit

Permalink
Create pkgdown site
Browse files Browse the repository at this point in the history
- generated '_pkgdown.yml' file and populated fields
- performed some minor updates to vignettes & README to clean up formatting on
  pkgdown site
- added `tibble` package to Suggests (for use in vignettes)
- bumped version number
  • Loading branch information
amanda-hi committed Dec 18, 2023
1 parent 4af1a03 commit c74d9f4
Show file tree
Hide file tree
Showing 12 changed files with 303 additions and 52 deletions.
4 changes: 4 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@
^data-raw$
^README\.Rmd$
^LICENSE\.md$
^_pkgdown\.yml$
^docs$
^pkgdown$
^\.github$
48 changes: 48 additions & 0 deletions .github/SUPPORT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Getting help with SomaScan.db

Thanks for using SomaScan.db!

Before filing an issue, there are a few places to explore
and pieces to put together to make the process as smooth as possible.

## Make a reprex

If we can’t reproduce the bug, we can’t fix it!
Start by making a minimal **repr**oducible **ex**ample using the [reprex](https://reprex.tidyverse.org/) package.
If you haven't heard of or used `reprex` before, you're in for a treat!
Seriously, `reprex` will make all of your R-question-asking endeavors easier
(which is an excellent ROI for the five to ten minutes it'll take you to learn what it's all about).
For additional `reprex` pointers, check out the [Get help!](https://www.tidyverse.org/help/).

## Where to ask?

Armed with your `reprex`, the next step is to figure out [where to ask](https://www.tidyverse.org/help/#where-to-ask).

* If it's a `R` related question: start with [community.rstudio.com](https://community.rstudio.com/)
and/or [StackOverflow](https://stackoverflow.com). There are more people there to answer questions.

* If it's a bug with [SomaScan.db](https://github.com/SomaLogic/SomaScan.db/): you're
in the right place; please [file an issue](https://github.com/SomaLogic/SomaScan.db/issues/new).

* If you're not sure: let the community help you figure it out!
If your problem _is_ a bug or a feature request, you can easily return
[here](https://github.com/SomaLogic/SomaScan.db/issues/) and report it.

* For _non_-coding related feedback or inquiries please reach out to <techsupport@somalogic.com>.

Before opening a new issue, be sure to
[search issues and pull requests](https://github.com/SomaLogic/SomaScan.db/issues/)
to make sure the bug hasn't been reported and/or already fixed in the development version.
By default, the search will be pre-populated with `is:issue is:open`.
You can [edit the qualifiers](https://help.github.com/articles/searching-issues-and-pull-requests/),
`is:pr`, `is:closed`, etc., as needed, e.g. you'd simply remove `is:open` to
search _all_ issues in the repo, open or closed.

## What happens next?

We aim to respond to questions or simple bugs within 24 - 48h, particularly
questions accompanied by a `reprex` can typically be addressed quickly.
More complex bugs or feature requests can take longer, as they require a
deeper discussion regarding the software development lifecycle of `SomaScan.db`.
As mentioned above, you may always reach out to our Global Scientific Engagement
team at <techsupport@somalogic.com> or for more general inquiries at <support@somalogic.com>.
47 changes: 47 additions & 0 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
on:
push:
branches:
- main
- master
paths:
- 'DESCRIPTION'
- '_pkgdown.yml'
- 'NEWS.md'
- 'README.md'
- 'vignettes/**'
workflow_dispatch:

name: pkgdown

jobs:
pkgdown:
runs-on: macOS-12 # macOS important Bootstrap/bslib themes

env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

steps:
- uses: actions/checkout@v3

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

- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: |
any::pkgdown
local::.
needs: website

- name: Install package
run: |
R CMD INSTALL --use-vanilla .
- name: Deploy to GitHub pages 🚀
run: |
git config --local user.name "$GITHUB_ACTOR"
git config --local user.email "$GITHUB_ACTOR@users.noreply.github.com"
Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE)'
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@
/doc/
/Meta/
.Rproj.user
docs
4 changes: 3 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Description: An R package providing extended biological annotations for
public repositories. For more information about the SomaScan assay
and its data, please reference the 'SomaLogic/SomaLogic-Data' GitHub
repository.
Version: 0.99.7
Version: 0.99.8
Authors@R:
c(person(given = "Amanda",
family = "Hiser",
Expand All @@ -33,6 +33,7 @@ Suggests:
rmarkdown,
SomaDataIO,
testthat (>= 3.0.0),
tibble,
withr
VignetteBuilder: knitr
License: MIT + file LICENSE
Expand All @@ -46,3 +47,4 @@ URL: https://somalogic.com, https://github.com/SomaLogic/SomaScan.db/
manufacturerUrl: https://somalogic.com/somascan-platform
BugReports: https://github.com/SomaLogic/SomaScan.db/issues
Config/testthat/edition: 3
Config/Needs/website: tidyverse/tidytemplate
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# SomaScan.db 0.99.7
* Created pkgdown site

# SomaScan.db 0.99.6
* Updated vignette engine to use `knitr::rmarkdown`

Expand Down
23 changes: 12 additions & 11 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ ver <- paste0("https://img.shields.io/badge/Version-", ver,
```


# SomaScan.db <img src="inst/figures/logo.png" align="right" height="138" alt="" />
# `SomaScan.db` <img src="inst/figures/logo.png" align="right" height="138" alt="" />


<!-- badges: start -->
Expand All @@ -30,31 +30,32 @@ ver <- paste0("https://img.shields.io/badge/Version-", ver,
[![Bioc support](https://bioconductor.org/shields/posts/SomaScan.db.svg)](https://support.bioconductor.org/tag/SomaScan.db)
<!-- badges: end -->

# Oveview

The `SomaScan.db` package is a platform-centric R package that provides
extended biological annotations for analytes in the SomaScan assay menu, using
resources provided by the [Bioconductor project](https://bioconductor.org/).
resources provided by the [Bioconductor](https://bioconductor.org/) project.
The package exposes a database object, `SomaScan.db`, which is an SQLite
database that can be queried to retrieve annotations for SomaScan analytes.

`SomaScan.db` is structured around a primary identifier, the SomaLogic
sequence ID (`SeqId`), which is in the format `12345-67`. In this package, the
`SeqId` may also be referred to as the "PROBEID". This identifier is the
cornerstone of the SomaScan assay, and is used to uniquely identify SomaLogic
analytes. For more information about `SeqIds`, please see
sequence ID (`SeqId`). Please note that in some cases, this identifier may
also be referred to as a "PROBEID". `SeqIds` are the cornerstone of
the SomaScan assay, and are used to uniquely identify SomaLogic
analytes. The `SomaScan.db` package enables mapping from `SeqIds` to other
identifiers from popular public data repositories, many of which are
gene-based, and vice versa.

For more information about `SeqIds`, please see
[?SomaDataIO::SeqId](https://somalogic.github.io/SomaDataIO/reference/SeqId.html).

The `SomaScan.db` package enables mapping from `SeqIds` to other identifiers
from popular public data repositories, many of which are gene-based, and vice
versa. See below for installation instructions and usage examples.

---------------------


## Installation

`SomaScan.db` can be installed from the most recent Bioconductor release using
the `BiocManager` package:
the [BiocManager](https://CRAN.R-project.org/package=BiocManager) package:

```{r eval=FALSE}
# If not already installed, install BiocManager
Expand Down
35 changes: 18 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@

<!-- README.md is generated from README.Rmd. Please edit that file -->

# SomaScan.db <img src="inst/figures/logo.png" align="right" height="138" alt="" />
# `SomaScan.db` <img src="inst/figures/logo.png" align="right" height="138" alt="" />

<!-- badges: start -->

![GitHub
version](https://img.shields.io/badge/Version-0.99.7-success.svg?style=flat&logo=github)
version](https://img.shields.io/badge/Version-0.99.8-success.svg?style=flat&logo=github)
[![Lifecycle:
stable](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://lifecycle.r-lib.org/articles/stages.html#stable)
[![License:
Expand All @@ -17,32 +17,33 @@ rank](https://bioconductor.org/shields/downloads/release/SomaScan.db.svg)](https
support](https://bioconductor.org/shields/posts/SomaScan.db.svg)](https://support.bioconductor.org/tag/SomaScan.db)
<!-- badges: end -->

# Oveview

The `SomaScan.db` package is a platform-centric R package that provides
extended biological annotations for analytes in the SomaScan assay menu,
using resources provided by the [Bioconductor
project](https://bioconductor.org/). The package exposes a database
object, `SomaScan.db`, which is an SQLite database that can be queried
to retrieve annotations for SomaScan analytes.
using resources provided by the
[Bioconductor](https://bioconductor.org/) project. The package exposes a
database object, `SomaScan.db`, which is an SQLite database that can be
queried to retrieve annotations for SomaScan analytes.

`SomaScan.db` is structured around a primary identifier, the SomaLogic
sequence ID (`SeqId`), which is in the format `12345-67`. In this
package, the `SeqId` may also be referred to as the “PROBEID”. This
identifier is the cornerstone of the SomaScan assay, and is used to
uniquely identify SomaLogic analytes. For more information about
`SeqIds`, please see
sequence ID (`SeqId`). Please note that in some cases, this identifier
may also be referred to as a “PROBEID”. `SeqIds` are the cornerstone of
the SomaScan assay, and are used to uniquely identify SomaLogic
analytes. The `SomaScan.db` package enables mapping from `SeqIds` to
other identifiers from popular public data repositories, many of which
are gene-based, and vice versa.

For more information about `SeqIds`, please see
[?SomaDataIO::SeqId](https://somalogic.github.io/SomaDataIO/reference/SeqId.html).

The `SomaScan.db` package enables mapping from `SeqIds` to other
identifiers from popular public data repositories, many of which are
gene-based, and vice versa. See below for installation instructions and
usage examples.

------------------------------------------------------------------------

## Installation

`SomaScan.db` can be installed from the most recent Bioconductor release
using the `BiocManager` package:
using the [BiocManager](https://CRAN.R-project.org/package=BiocManager)
package:

``` r
# If not already installed, install BiocManager
Expand Down
133 changes: 133 additions & 0 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
url: https://somalogic.github.io/SomaScan.db

development:
mode: auto

authors:
Amanda Hiser:
href: https://github.com/amanda-hi
SomaLogic Operating Co., Inc.:
href: http://www.somalogic.com
footer:
roles: [fnd]
text: "was developed by the Bioinformatics Dept. at"
sidebar:
roles: [cre, fnd]
before: "Special :pray: to:"
after: ":dna:"
before: "[SomaScan.db](https://github.com/SomaLogic/SomaScan.db/) is proudly brought to you by:"
after: ":dna:"

footer:
structure:
left: [package, developed_by]
right: built_with
components:
logo: "<img src='inst/figures/logo.png' width='20'> "

template:
bootstrap: 5
package: tidytemplate
bslib:
primary: "#0054AD"
border-radius: 0.5rem
btn-border-radius: 0.25rem
base_font: {google: "Roboto"}

home:
sidebar:
structure: [links, help, oss, license, citation, authors, dev, toc]
components:
oss:
title: Other Software
text: >
[SomaDataIO](https://somalogic.github.io/SomaDataIO/) <br />
[SomaPlotr](https://somalogic.github.io/SomaPlotr/) <br />
[Canopy](https://github.com/SomaLogic/Canopy/) <br />
[DataDelve Statistics](https://somalogic.com/datadelve-statistics/)
help:
title: Getting Help
text: >
[Ask a question](https://somalogic.github.io/SomaScan.db/SUPPORT.html) <br />
[Report a bug](https://github.com/SomaLogic/SomaScan.db/issues)
links:
- text: Learn more about SomaScan
href: http://www.somalogic.com
- text: Read SomaScan tech notes
href: http://www.somalogic.com/tech-notes/

navbar:
structure:
left: [intro, reference, articles, news]
right: [search, github]

articles:
- title: Getting Started
navbar: ~
contents:
- SomaScan-db

- title: Example ADAT Workflow Using SomaScan.db
navbar: ~
contents:
- example_adat_workflow

- title: Advanced Exploration of the SomaScan Menu
navbar: ~
contents:
- advanced_usage_examples

reference:
- title: Query the Database
desc: >
Methods for retrieving annotations from the SQLite database.
contents:
- keys
- keytypes
- columns
- select
- mapIds
- SomaDb-class

- title: Data Objects
desc: >
Objects provided with `SomaScan.db`
contents:
- SomaScan.db
- somascan_menu

- title: Mapping Objects
desc: >
Objects containing mappings between database keys (i.e. identifiers).
contents:
- SomaScanALIAS2PROBE
- SomaScanENSEMBL
- SomaScanENTREZID
- SomaScanENZYME
- SomaScanGENENAME
- SomaScanGO
- SomaScanMAP
- SomaScanOMIM
- SomaScanORGANISM
- SomaScanPATH
- SomaScanPMID
- SomaScanREFSEQ
- SomaScanSYMBOL
- SomaTARGETFULLNAME
- SomaScanUNIPROT

- title: Helpers
desc: >
Miscellaneous functions for retrieving data or modifying query results.
contents:
- addTargetFullName

- title: Accessor Functions
desc: >
Convenience functions for accessing the database.
contents:
- SomaScan_dbconn

news:
- one_page: true
Loading

0 comments on commit c74d9f4

Please sign in to comment.