Skip to contents

Downloads the (1) RNA seq raw count matrix and (2) Human gene annotation table generated by the NCBI automated RNAseq processing pipepline for a given GEO accession

Usage

getRNAcountMatrixNCBI(
  GEO,
  makeDirectory = TRUE,
  baseDir = getwd(),
  download_method = "curl"
)

Arguments

GEO

String. GEO accession

makeDirectory

Logical. Whether to download files to a subfolder for the GEO accession

baseDir

String. Directory to download files or create subdirectory

download_method

String. Takes 'auto', 'wget', libcurl', 'curl'.

Details

As described at https://www.ncbi.nlm.nih.gov/geo/info/rnaseqcounts.html, NCBI has a standardized pipeline for generating RNA seq transcript counts from raw FASTQ sequencing files submitted to SRA. This function specifically downloads the count matrix resulting from this pipeline as well as the annotation file version used in the NCBI pipeline.

Examples

# \donttest{
  withr::with_tempdir({
    getRNAcountMatrixNCBI(GEO = "GSE158395")
    output_files <- list.files(recursive = TRUE)
    })
  output_files
#> [1] "GSE158395/GSE158395_raw_counts_GRCh38.p13_NCBI.tsv.gz"
#> [2] "GSE158395/Human.GRCh38.p13.annot.tsv.gz"              
  # Should include:
  ## "GSE158395/GSE158395_raw_counts_GRCh38.p13_NCBI.tsv.gz"
  ## "GSE158395/Human.GRCh38.p13.annot.tsv.gz"
# }