Gene identifiers

geneIDs(version = getOption(x = "wormbase.version", default = NULL))

Arguments

version

character(1) or NULL. WormBase version. If NULL (recommended), defaults to current production release version available on the WormBase website. Legacy versions can be specified as a character string (e.g. "WS262").

Value

DataFrame.

Note

As of WS269 release, some non-N2 gene IDs are included in the flat files available on the WormBase FTP server. These annotations are removed from the return here, using grep matching to return only WBGene entries.

Updated 2019-08-28.

Examples

## WormBase FTP server must be accessible. tryCatch( expr = geneIDs(), error = function(e) e )
#> Transmitting files from <ftp.wormbase.org>.
#> Files matching pattern: c_elegans.PRJNA13758.WS277.geneIDs.txt.gz
#> → Downloading c_elegans.PRJNA13758.WS277.geneIDs.txt.gz.
#> → Importing c_elegans.PRJNA13758.WS277.geneIDs.txt.gz at /private/var/folders/l1/8y8sjzmn15v49jgrqglghcfr0000gn/T/RtmpRU0dkX using vroom::`vroom()`.
#> <simpleError: subscript contains out-of-bounds indices>