library(devtools);
install_github("zhezhangsh/rchive");
library(rchive);
options(stringsAsFactors=FALSE);
ftp.file<-"ftp://ftp.ncbi.nih.gov/gene//DATA/GENE_INFO/All_Data.gene_info.gz";
# Selected species
species<-c(
'human' = '9606',
'mouse' = '10090',
'rat' = '10116',
'chimp' = '9598',
'pig' = '9823',
'chicken' = '9031',
'dog' = '9615',
'cow' = '9913',
'worm' = '6239',
'fly' = '7227',
'zebrafish' = '7955',
'ecoli' = '511145',
'yeast' = '559292'
);
path=paste(Sys.getenv("RCHIVE_HOME"), 'data/gene/public/entrez', sep='/');
ids<-ParseEntrez(ftp.file, species, TRUE, path);
GetEntrezDetail(num.clusters=1); # threading not working yet
##############################################################################################################
UpdateLog(ids, paste(Sys.getenv("RCHIVE_HOME"), 'data/gene/public/entrez', sep='/'), just.new=FALSE);
tm<-strsplit(as.character(Sys.time()), ' ')[[1]][1];
fn0<-paste(Sys.getenv("RCHIVE_HOME"), '/source/script/update/gene/UpdateEntrez.r', sep='');
fn1<-paste(Sys.getenv("RCHIVE_HOME"), '/source/script/update/gene/log/', tm, '_UpdateEntrez.r' , sep='');
file.copy(fn0, fn1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.