Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

readgal

Read a GAL file


Description

Read a GenePix Array List (GAL) file into a dataframe.

Usage

readGAL(galfile=NULL,path=NULL,header=TRUE,sep="\t",quote="\"",skip=NULL,as.is=TRUE,...)

Arguments

galfile

character string giving the name of the GAL file. If NULL then a file with extension .gal is found in the directory specified by path.

path

character string giving the directory containing the files. If NULL then assumed to be the current working directory.

header

logical variable, if TRUE then the first line after skip is assumed to contain column headings. If FALSE then a value should specified for skip.

sep

the field separator character

quote

the set of quoting characters

skip

number of lines of the GAL file to skip before reading data. If NULL then this number is determined by searching the file for column headings.

as.is

logical variable, if TRUE then read in character columns as vectors rather than factors.

...

any other arguments are passed to read.table

Details

A GAL file is a list of genes IDs and associated information produced by an Axon microarray scanner. Apart from header information, the file must contain data columns labeled Block, Column, Row and ID. A Name column is usually included as well. Other columns are optional. See the Axon URL below for a detaile description of the GAL file format.

This function reads in the data columns with a minimum of user information. In most cases the function can be used without specifying any of the arguments.

Value

A data frame with columns

Block

numeric vector containing the print tip indices

Column

numeric vector containing the spot columns

Row

numeric vector containing the spot rows

ID

character vector, for factor if as.is=FALSE, containing gene library identifiers

Name

character vector, for factor if as.is=FALSE, containing gene names

The data frame will be sorted so that Column is the fastest moving index, then Row, then Block.

Author(s)

Gordon Smyth

References

See Also

read.Galfile in the marray package.

An overview of LIMMA functions for reading data is given in 03.ReadingData.

Examples

# readGAL()
# will read in the first GAL file (with suffix ".gal")
# found in the current working directory

limma

Linear Models for Microarray Data

v3.46.0
GPL (>=2)
Authors
Gordon Smyth [cre,aut], Yifang Hu [ctb], Matthew Ritchie [ctb], Jeremy Silver [ctb], James Wettenhall [ctb], Davis McCarthy [ctb], Di Wu [ctb], Wei Shi [ctb], Belinda Phipson [ctb], Aaron Lun [ctb], Natalie Thorne [ctb], Alicia Oshlack [ctb], Carolyn de Graaf [ctb], Yunshun Chen [ctb], Mette Langaas [ctb], Egil Ferkingstad [ctb], Marcus Davy [ctb], Francois Pepin [ctb], Dongseok Choi [ctb]
Initial release
2020-10-19

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.