Package 'pr2database'

Title: PR2 database with shiny web interface
Description: PR2 database See https://pr2-database.org
Authors: Daniel Vaulot [cre, aut]
Maintainer: Daniel Vaulot <[email protected]>
License: MIT + file LICENSE
Version: 5.0.0
Built: 2024-10-10 04:16:42 UTC
Source: https://github.com/pr2database/pr2database

Help Index


PR2 database - Eukaryotic 18S rRNA sequences.

Description

The PR2 database is provided as a data frame.

This is a join between the following tables:

  • pr2_main

  • pr2_taxonomy

  • pr2_sequence

  • pr2_metadata

  • pr2_traits

  • pr2_silva

  • euribo

The metadata contains different types of fields

  • gb_ : originating from the GenBank entry

  • eukref_ : annotated by the Eukref project

  • pr2_ : annotated by pr2 such latitude and longitude

  • eukribo_: information from the EukRibo database

Description of fields: https://pr2-database.org/documentation/pr2-fields

Usage

pr2_database()

Value

A data frame

Examples

# Read the whole database
my_pr2 <- pr2_database()

# Select a specific genus
pr2_ostreo <- pr2_database()
pr2_ostreo <- dplyr::filter(pr2_ostreo , genus == "Ostreococcus")
pr2_ostreo <-  dplyr::select(pr2_ostreo, pr2_accession, species)
head(pr2_ostreo)

PR2 database - Taxonomy.

Description

The PR2 database taxonomy is provided as a data frame with the number of sequences for each taxon

Usage

pr2_taxonomy()

Value

A data frame

Examples

# Read the whole database taxonomy
my_pr2_taxo <- pr2_taxonomy()

# Select a specific genus
my_pr2_taxo <- dplyr::filter( my_pr2_taxo , genus == "Ostreococcus")
head(my_pr2_taxo)

Run the PR2 Shiny application

Description

Allows to interact with the PR2 database:

* Select and visualize taxonomy * Select and download sequences based on length and sample type

Usage

run_app(
  onStart = NULL,
  options = list(),
  enableBookmarking = NULL,
  uiPattern = "/",
  ...
)

Arguments

onStart

A function that will be called before the app is actually run. This is only needed for shinyAppObj, since in the shinyAppDir case, a global.R file can be used for this purpose.

options

Named options that should be passed to the runApp call (these can be any of the following: "port", "launch.browser", "host", "quiet", "display.mode" and "test.mode"). You can also specify width and height parameters which provide a hint to the embedding environment about the ideal height/width for the app.

enableBookmarking

Can be one of "url", "server", or "disable". The default value, NULL, will respect the setting from any previous calls to enableBookmarking(). See enableBookmarking() for more information on bookmarking your app.

uiPattern

A regular expression that will be applied to each GET request to determine whether the ui should be used to handle the request. Note that the entire request path must match the regular expression in order for the match to be considered successful.

...

arguments to pass to golem_opts. See '?golem::get_golem_options' for more details.