Skip to contents

Set the HGNC TSV file to use for import_hgnc_dataset(). Defaults to the latest_archive_url(), but can also use latest_monthly_url() or latest_quarterly_url()`

Usage

use_hgnc_file(file = latest_archive_url())

Arguments

file

A file or URL of the complete HGNC data set (in TSV format).

Examples

# use the default file given by import_hgnc_dataset()
use_hgnc_file()
#> using hgnc file: https://ftp.ebi.ac.uk/pub/databases/genenames/hgnc/tsv/hgnc_complete_set.txt

# use to the latest monthly release
use_hgnc_file(file = latest_monthly_url())
#> using hgnc file: https://ftp.ebi.ac.uk/pub/databases/genenames/hgnc/archive/monthly/tsv/hgnc_complete_set_2023-10-01.txt

# use a predefined release for reproducibility
use_hgnc_file(file = "https://ftp.ebi.ac.uk/pub/databases/genenames/hgnc/archive/monthly/tsv/hgnc_complete_set_2023-08-01.txt")
#> using hgnc file: https://ftp.ebi.ac.uk/pub/databases/genenames/hgnc/archive/monthly/tsv/hgnc_complete_set_2023-08-01.txt