Main works are add column names for the table, add gene names to new table, replace missing gene names with Ensembl ID then remove duplicated gene, then return the clean formatted gene list.

clean_ensgene(refgene, ens_id)

Arguments

refgene

ensembl reference gene download from UCSC website

ens_id

ensembl id download from UCSC website

Value

formatted gene list.