Object that downloads, develops and uploads EBI dataset
EbiDataset.Rd
Object that downloads, develops and uploads EBI dataset
Object that downloads, develops and uploads EBI dataset
Super class
GwasDataImport::Dataset
-> EbiDataset
Public fields
ebi_id
EBI ID to look for
traitname
Name of trait
ftp_path
Path to files in EBI FTP
or_flag
TRUE/FALSE if had to convert OR to beta
gwas_out1
Path to first look at EBI dataset
Methods
Inherited methods
GwasDataImport::Dataset$api_gwas_release()
GwasDataImport::Dataset$api_gwasdata_check()
GwasDataImport::Dataset$api_gwasdata_delete()
GwasDataImport::Dataset$api_gwasdata_upload()
GwasDataImport::Dataset$api_metadata_check()
GwasDataImport::Dataset$api_metadata_delete()
GwasDataImport::Dataset$api_metadata_edit()
GwasDataImport::Dataset$api_metadata_upload()
GwasDataImport::Dataset$api_qc_status()
GwasDataImport::Dataset$api_report()
GwasDataImport::Dataset$check_meta_data()
GwasDataImport::Dataset$collect_metadata()
GwasDataImport::Dataset$delete_wd()
GwasDataImport::Dataset$determine_columns()
GwasDataImport::Dataset$format_dataset()
GwasDataImport::Dataset$get_gwasdata_fields()
GwasDataImport::Dataset$get_metadata_fields()
GwasDataImport::Dataset$is_new_id()
GwasDataImport::Dataset$se_from_bp()
GwasDataImport::Dataset$set_wd()
GwasDataImport::Dataset$view_metadata_options()
GwasDataImport::Dataset$write_metadata()
Method new()
Initialise object
Usage
EbiDataset$new(
ebi_id,
wd = tempdir(),
ftp_path = NULL,
igd_id = paste0("ebi-a-", ebi_id),
traitname = NULL
)
Method download_dataset()
Download
Usage
EbiDataset$download_dataset(
ftp_path = self$ftp_path,
ftp_url = options()$ebi_ftp_url,
outdir = self$wd
)
Method format_ebi_dataset()
organise data before formatting. This is slow but doesn't really matter
Usage
EbiDataset$format_ebi_dataset(
filename = self$filename,
output = file.path(self$wd, "step1.txt.gz")
)
Method organise_metadata()
Download and parse metadata
Method pipeline()
Once initialised this function will string together everything i.e. downloading, processing and uploading