https://github.com/bioconductor-source/rprimer
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
✓DOI references
Found 1 DOI reference(s) in README -
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (17.0%) to scientific vocabulary
Last synced: 10 months ago
·
JSON representation
Repository
Basic Info
- Host: GitHub
- Owner: bioconductor-source
- Language: R
- Default Branch: devel
- Size: 16.6 MB
Statistics
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
- Releases: 0
Created almost 2 years ago
· Last pushed almost 2 years ago
Metadata Files
Readme
Changelog
README.Rmd
---
output: github_document
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# rprimer
[](https://github.com/sofpn/rprimer/actions)
rprimer is an R package that designs degenerate oligos and PCR assays from a multiple DNA sequence alignment of target sequences of interest. The package is specifically designed for sequence variable viruses.
## Installation
To install rprimer from [Bioconductor](https://bioconductor.org/packages/devel/bioc/html/rprimer.html), start R (version 4.2 or later) and enter:
``` r
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("rprimer")
```
``` {r, message=FALSE, warn=FALSE, echo=FALSE}
devtools::load_all(".")
```
Attach the package by calling:
```r
library(rprimer)
```
## Overview
The package contains five main functions:
* `consensusProfile()`
* `designOligos()`
* `designAssays()`
* `checkMatch()`
* `plotData()`
## Shiny application
The package can be run through a Shiny application (a graphical user interface). To start the application, type `runRprimerApp()` from within R upon installing and attaching the package.
The application can also be found online, [here](https://sofpn.shinyapps.io/rprimer).
## Workflow
### Import alignment
The first step is to import an alignment with target sequences of interest. This is done by using `readDNAMultipleAlignment()`.
The file "example_alignment.txt" contains an alignment of 50 hepatitis E virus sequences.
```{r}
infile <- system.file("extdata", "example_alignment.txt", package = "rprimer")
myAlignment <- readDNAMultipleAlignment(infile, format = "fasta")
```
### Step 1: `consensusProfile`
`consensusProfile()` takes a `DNAMultipleAlignment` as input and returns all the information needed for the subsequent design process.
```{r}
myConsensusProfile <- consensusProfile(myAlignment, ambiguityThreshold = 0.05)
```
Results (row 100-106):
```{r, echo=FALSE}
knitr::kable(myConsensusProfile[100:106, ], digits = 2)
```
The results can be visualized with `plotData()`:
```{r, fig.width=12, fig.height=6}
plotData(myConsensusProfile)
```
### Step 2: `designOligos`
The next step is to design oligos. You can either use the default settings as below, or adjust them as preferred (see the package vignette or `?designOligos` for more information). The default settings allow a maximum degeneracy of four, which means that only the most conserved regions of the genome will be considered as oligo binding sites.
``` {r}
myOligos <- designOligos(myConsensusProfile)
```
Results (first six rows):
```{r, echo=FALSE}
knitr::kable(head(myOligos), digits = 2)
```
The results can be visualized as a dashboard, using `plotData()`:
```{r, fig.width=12, fig.height=8}
plotData(myOligos)
```
### Step 3: `designAssays`
`designAssays()` finds pairs of forward and reverse primers and combine them with probes, if probes are present in the input dataset. You can either use the default settings as below, or adjust the design constraints (see the package vignette or `?designAssays` for more information).
```{r}
myAssays <- designAssays(myOligos)
```
Results (first six rows):
```{r, echo=FALSE}
knitr::kable(head(myAssays), digits = 2)
```
The assays can be visualized using `plotData()`:
```{r, fig.width=12, fig.height=6}
plotData(myAssays)
```
### Additional step: `checkMatch`
`checkMatch()` shows the proportion and names of the target sequences in the input alignment that match with the generated oligos or assays. See the package vignette or `?checkMatch` for more information.
```{r}
## Randomly select six oligos to illustrate an example
selection <- sample(seq_len(nrow(myOligos)), size = 6)
matchTableOligos <- checkMatch(myOligos[selection, ], target = myAlignment)
```
Results:
```{r, echo=FALSE}
knitr::kable(matchTableOligos, digits = 2)
```
The match table can be visualized using `plotData()`:
```{r, fig.width=12, fig.height=6}
plotData(matchTableOligos)
```
## More information
Please see the [package vignette](https://bioconductor.org/packages/devel/bioc/vignettes/rprimer/inst/doc/getting-started-with-rprimer.html) for more information on how to use the package.
## Citation
Persson S., Larsson C., Simonsson M., Ellström P. (2022) rprimer: an R/bioconductor package for design of degenerate oligos for sequence variable viruses. [*BMC Bioinformatics* 23:239](https://bmcbioinformatics.biomedcentral.com/articles/10.1186/s12859-022-04781-0)
Owner
- Name: (WIP DEV) Bioconductor Packages
- Login: bioconductor-source
- Kind: organization
- Email: maintainer@bioconductor.org
- Website: https://bioconductor.org
- Repositories: 1
- Profile: https://github.com/bioconductor-source
Source code for packages accepted into Bioconductor
GitHub Events
Total
Last Year
Dependencies
.github/workflows/R-CMD-check.yaml
actions
- actions/checkout v2 composite
- r-lib/actions/check-r-package v1 composite
- r-lib/actions/setup-pandoc v1 composite
- r-lib/actions/setup-r v1 composite
- r-lib/actions/setup-r-dependencies v1 composite
DESCRIPTION
cran
- R >= 4.1 depends
- Biostrings * imports
- DT * imports
- IRanges * imports
- S4Vectors * imports
- bslib * imports
- ggplot2 * imports
- mathjaxr * imports
- methods * imports
- patchwork * imports
- reshape2 * imports
- shiny * imports
- shinyFeedback * imports
- shinycssloaders * imports
- BiocStyle * suggests
- covr * suggests
- kableExtra * suggests
- knitr * suggests
- rmarkdown * suggests
- styler * suggests
- testthat >= 3.0.0 suggests