R/readSra.R

Defines functions readSra

Documented in readSra

#' read SRA identifiers from provided files
#'
#' Creates a vector of SRA identifiers
#'
#' @param  sumFile the name of the summary file "SRA_ID.summary"
#'
#' @return SRA identifier
#'
#' @export
readSra <- function(sumFile){
  sra  <-  sub('^.*/', '', sumFile)
  sra  <-  sub('.summary', '', sra)

  return(sra)
}
serratus-bio/tantalus documentation built on March 29, 2023, 9:39 p.m.