readTarFile: This is to read the supplementary .tar file in GEO database....

View source: R/getSupplementaryData.R

readTarFileR Documentation

This is to read the supplementary .tar file in GEO database. In .tar file, there are usually several .txt.gz (.csv.gz, .tab.gz) files or one .txt.gz (.csv.gz, .tab.gz) file.

Description

This is to read the supplementary .tar file in GEO database. In .tar file, there are usually several .txt.gz (.csv.gz, .tab.gz) files or one .txt.gz (.csv.gz, .tab.gz) file.

Usage

readTarFile(tarfile, sep = "\t", header = FALSE)

Arguments

tarfile

the name of supplementary .tar file

sep

the field separator character. Values on each line of the file are separated by this character. The default is '\t'.

header

a logical value indicating whether the file contains the names of the variables as its first line. If missing, the value is determined from the file format: header is set to TRUE if and only if the first row contains one fewer field than the number of columns. The default is FALSE.

Value

a list of data frame coming from the .gz files in the .tar file.


paodan/SRRDownloader documentation built on Aug. 25, 2023, 3:23 a.m.