readFeatureAnnotationFile: Read in feature annotation file in the tsv-format, with or...

View source: R/readAnnotationFile.R

readFeatureAnnotationFileR Documentation

Read in feature annotation file in the tsv-format, with or without row names

Description

Read in feature annotation file in the tsv-format, with or without row names

Usage

readFeatureAnnotationFile(file, ...)

Arguments

file

A tab-delimited file without quotes, the first column must contain feauture identifiers. In case the first column has no column name and it contains row names, they will be used as feature names.

...

Other parameters passed to readMatrix, which are further passed to read.table.

Value

A data.frame containing feature annotation, with the first column named as 'FeatureName' that contains feature identifiers as character strings. In case the input table contains the column 'FeatureName', the content in that column must match the row names, otherwise an error is reported.

Examples

f1 <- system.file("extdata",
  "featureAnnotation/featureAnnotationFile-withRowNames.txt", 
  package="ribiosExpression")
f2 <- system.file("extdata",
  "featureAnnotation/featureAnnotationFile-withoutRowNames.txt", 
  package="ribiosExpression")
f1Read <- readFeatureAnnotationFile(f1)
f2Read <- readFeatureAnnotationFile(f2)
head(f1Read)
head(f2Read)

bedapub/ribiosExpression documentation built on Sept. 2, 2023, 4:37 a.m.