Learn R Programming

ENCODExplorer (version 1.4.3)

update_ENCODExplorer: Create or update all the needed data for ENCODExplorer

Description

This function creates or updates ENCODExplorer data according the following steps : 1) Create the RSQLite databse for the tables in ENCODE 2) Extract essential informations from the RSQLite databse in encode_df 3) Extract accession numbers from all the datasets of RSQLite databse in accession_df 4) if overwrite = TRUE, the new encode_df will overwrite the former one else return the newly generated objets.

Usage

update_ENCODExplorer(database_filename = "inst/extdata/ENCODEdb.sqlite", overwrite = FALSE, mc.cores = 1)

Arguments

database_filename
The name of the file to save the database into.
overwrite
Should tables already present in database be overwrited
mc.cores
The number of cores to use. Default 1 Default: FALSE.

Value

none if overwrite is set to TRUE or return a list containg two objects encode_df and accession_df.

Examples

Run this code

    ## Not run: 
#         update_ENCODExplorer("ENCODEdb.sqlite")
#     ## End(Not run)
    

Run the code above in your browser using DataLab