goannotread
Read annotations from Gene Ontology annotated file
Syntax
Annotation
= goannotread(File
)
Annotation
= goannotread(File
,
...'Fields', FieldsValue
, ...)
Annotation
= goannotread(File
,
...'Aspect', AspectValue
, ...)
Input Arguments
File | Character vector or string specifying a file name of a Gene Ontology (GO) annotated format (GAF) file. |
FieldsValue | Character vector, string, string vector, or cell array of character vectors specifying one or more fields to read from the Gene Ontology annotated file. Default is to read all fields. Valid fields are listed below. |
AspectValue | Character vector or string specifying one or more characters. Valid aspects are:
Default is |
Output Arguments
Annotation | MATLAB® array of structures containing annotations from a Gene Ontology annotated file. |
Description
Note
The goannotread
function supports GAF 1.0
and 2.0 file formats.
converts the contents of Annotation
= goannotread(File
)File
, a Gene Ontology annotated
file, into Annotation
, an array of structures. Files should
have the structure specified by the Gene Ontology consortium, available at:
calls Annotation
= goannotread(File
,
...'PropertyName
', PropertyValue
,
...)goannotread
with optional
properties that use property name/property value pairs. You can specify
one or more properties in any order. Each PropertyName
must
be enclosed in single quotation marks and is case insensitive. These
property name/property value pairs are as follows:
specifies the fields to read from the Gene Ontology annotated file.
Annotation
= goannotread(File
,
...'Fields', FieldsValue
, ...)FieldsValue
is a character vector, string, string vector,
or cell array of character vectors specifying one or more fields. Default is to read all
fields. Valid fields are:
Database
DB_Object_ID
DB_Object_Symbol
Qualifier
GOid
DBReference
Evidence
WithFrom
Aspect
DB_Object_Name
Synonym
DB_Object_Type
Taxon
Date
Assigned_by
specifies the aspects to read from the Gene Ontology annotated file.
Annotation
= goannotread(File
,
...'Aspect', AspectValue
, ...)AspectValue
is a character vector or string specifying
one or more characters. Valid aspects are:
P
— Biological processF
— Molecular functionC
— Cellular component
Default is 'CFP'
, which specifies to read
all aspects.
Examples
Version History
Introduced before R2006a
See Also
geneont
| num2goid
| geneont
| getancestors
| getdescendants
| getmatrix
| getrelatives