Skip to content

Commit 19fabe6

Browse files
committed
convenience functions to avoid calling system.file directly
1 parent 1f07f39 commit 19fabe6

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

R/example_data.R

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#' Covariance Model for 5.8S rRNA
2+
#'
3+
#' This is a convenience function to return the path the RFAM 5.8S rRNA covariance model,
4+
#' for use in \code{\link{cmsearch}} or \code{\link{cmalign}}.
5+
#' The original file is from \href{https://rfam.xfam.org/family/RF00002/cm}.
6+
#'
7+
#' @value (\code{character} string) the path to the CM file
8+
#' @export
9+
cm_5_8S <- function() system.file(file.path("extdata", "RF00002.cm"), package = "inferrnal")
10+
11+
#' Sample rRNA sequences
12+
#'
13+
#' This is a FASTA file of amplicon sequences
14+
#' @export
15+
sample_rRNA_fasta <- function() system.file(file.path("extdata", "sample.fasta"), package = "inferrnal")
16+
17+
#' @export
18+
sample_rRNA_stk <- function() system.file(file.path("extdata", "sample.stk"), package = "inferrnal")
19+
20+
#' @export
21+
sample_rRNA_5_8S <- function() system.file(file.path("extdata", "samp_5_8S.fasta"), package = "inferrnal")

0 commit comments

Comments
 (0)