mapIDs.Rd
mapIDs(): Map moleculer identifiers in a data.table using ENSEMBL BioMart - getBM
mapIDs(DT, ids2convert_col = "target", filters = "hgnc_symbol", map_to = "entrezgene", map_to_name = "target_entrezgene", biomart_dataset = "hsapiens_gene_ensembl")
DT | data.table containing id to be converted |
---|---|
ids2convert_col | column in |
filters | Filters (one, in ids2convert_col column) that should be used in the query. A possible list of filters can be retrieved using the function listFilters. |
map_to | Attributes you want to retrieve. A possible list of attributes can be retrieved using the function listAttributes. |
map_to_name | how to name the column in the output containing |
biomart_dataset | which BioMart dataset to use for mapping. Full list of possible options: listDatasets("ensembl") |
mapIDs(): data.table DT
containing an additional column (map_to_name
)
# load TF regulon data combined_file = "../regulatory_networks_by_cmap/data/validation_TF_regulons/all_simp_regulons_w_pos_effect.tsv" regulons = fread(combined_file, header = T, stringsAsFactors = F)#> Error in fread(combined_file, header = T, stringsAsFactors = F): File '../regulatory_networks_by_cmap/data/validation_TF_regulons/all_simp_regulons_w_pos_effect.tsv' does not exist or is non-readable. getwd()=='/Users/vk7/Desktop/sanger_projects/software/orthologsBioMART/docs/reference'regulons = mapIDs(regulons)#> Error in unique(DT[, ids2convert_col, with = F]): object 'regulons' not found