Determine the type of a GEO accession ID (e.g. DataSet, Series, Sample, Platform). This function inspects the accession prefix and returns its corresponding GEO type, optionally in an abbreviated form.
Arguments
- accession
A character of GEO accession IDs. Examples:
DataSets (GDS):
"GDS505","GDS606","GDS1234","GDS9999", etc.Series (GSE):
"GSE2","GSE22","GSE100","GSE2000", etc.Platforms (GPL):
"GPL96","GPL570","GPL10558", etc.Samples (GSM):
"GSM12345","GSM67890","GSM112233", etc.
- abbre
A logical scalar indicating whether to abbreviate the GEO type in the return value. If
FALSE(default), the full type name is returned; ifTRUE, a short abbreviation is used.
Examples
geo_gtype("GSE10")
#> [1] "Series"
geo_gtype("gpl98")
#> [1] "Platforms"
geo_gtype("GSM1")
#> [1] "Samples"
geo_gtype("GDS10")
#> [1] "Datasets"
# use abbreviation
geo_gtype("GSE10", TRUE)
#> [1] "GSE"
geo_gtype("gpl98", TRUE)
#> [1] "GPL"
geo_gtype("GSM1", TRUE)
#> [1] "GSM"
geo_gtype("GDS10", TRUE)
#> [1] "GDS"