Class TaxonFetcher
- java.lang.Object
-
- ubic.gemma.core.loader.util.fetcher.AbstractFetcher
-
- ubic.gemma.core.loader.util.fetcher.FtpFetcher
-
- ubic.gemma.core.loader.util.fetcher.FtpArchiveFetcher
-
- ubic.gemma.core.loader.genome.taxon.TaxonFetcher
-
- All Implemented Interfaces:
ArchiveFetcher,Fetcher
public class TaxonFetcher extends FtpArchiveFetcher
Taxon information from NCBI comes as a tar.gz archive; only the names.dmp file is of interest. From ftp://ftp.ncbi.nih.gov/pub/taxonomy/taxdump.tar.gz- Author:
- pavlidis
-
-
Field Summary
-
Fields inherited from class ubic.gemma.core.loader.util.fetcher.FtpArchiveFetcher
doDelete, expander
-
Fields inherited from class ubic.gemma.core.loader.util.fetcher.FtpFetcher
avoidDownload, ftpClient, netDataSourceUtil
-
Fields inherited from class ubic.gemma.core.loader.util.fetcher.AbstractFetcher
allowUseExisting, force, INFO_UPDATE_INTERVAL, localBasePath, log, remoteBaseDir
-
-
Constructor Summary
Constructors Constructor Description TaxonFetcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<File>fetch()Fetch the Taxon bundle from NCBI.protected StringformLocalFilePath(String unused, File newDir)protected StringformRemoteFilePath(String identifier)voidinitConfig()voidsetNetDataSourceUtil()-
Methods inherited from class ubic.gemma.core.loader.util.fetcher.FtpArchiveFetcher
cleanUp, doTask, initArchiveHandler, listFiles, setDeleteAfterUnpack, setExcludePattern, setForce, unPack
-
Methods inherited from class ubic.gemma.core.loader.util.fetcher.FtpFetcher
defineTask, fetch, fetch, getExpectedSize, getNetDataSourceUtil, setAvoidDownload
-
Methods inherited from class ubic.gemma.core.loader.util.fetcher.AbstractFetcher
fetchedFile, fetchedFile, getExistingFile, getLocalBasePath, isForce, mkdir, mkdir, setAllowUseExisting, waitForDownload
-
-
-
-
Method Detail
-
formRemoteFilePath
protected String formRemoteFilePath(String identifier)
- Specified by:
formRemoteFilePathin classAbstractFetcher
-
initConfig
public void initConfig()
- Specified by:
initConfigin classAbstractFetcher
-
fetch
public Collection<File> fetch()
Fetch the Taxon bundle from NCBI.- Returns:
- local files
-
formLocalFilePath
protected String formLocalFilePath(String unused, File newDir)
- Specified by:
formLocalFilePathin classAbstractFetcher
-
setNetDataSourceUtil
public void setNetDataSourceUtil()
- Specified by:
setNetDataSourceUtilin classFtpFetcher
-
-