Class NcbiGeneLoader
java.lang.Object
ubic.gemma.core.loader.genome.gene.ncbi.NcbiGeneLoader
Load or update information about genes from the NCBI Gene database.
- Author:
- jsantos, paul
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
void
load
(boolean filterTaxa) download the gene_info and gene2accession files, then call loadvoid
load
(String geneInfoFile, String gene2AccFile, String geneHistoryFile, String geneEnsemblFile, boolean filterTaxa) void
load
(String geneInfoFile, String gene2AccFile, String geneHistoryFile, String geneEnsemblFile, Taxon t) void
void
setPersisterHelper
(Persister persisterHelper) void
setSkipDownload
(boolean skipDownload) Set to true to avoid downloading the files, if copies already exist (not recommended if you want an update!)void
setStartingNcbiId
(Integer startNcbiid) Indicatevoid
setTaxonService
(TaxonService bean) void
updateTaxaWithGenesUsable
(Collection<Taxon> taxaGenesLoaded) Method to update taxon to indicate that genes have been loaded for that taxon are are usable.
-
Constructor Details
-
NcbiGeneLoader
public NcbiGeneLoader() -
NcbiGeneLoader
-
-
Method Details
-
getLoadedGeneCount
public int getLoadedGeneCount()- Returns:
- the loadedGeneCount
-
isLoaderDone
public boolean isLoaderDone() -
load
public void load(boolean filterTaxa) download the gene_info and gene2accession files, then call load- Parameters:
filterTaxa
- filter taxa
-
load
public void load(String geneInfoFile, String gene2AccFile, String geneHistoryFile, String geneEnsemblFile, boolean filterTaxa) - Parameters:
geneInfoFile
- the gene_info filegene2AccFile
- the gene2accession filegeneHistoryFile
- history filegeneEnsemblFile
- mapping filefilterTaxa
- should we filter out taxa we're not supporting
-
load
-
load
-
setPersisterHelper
- Parameters:
persisterHelper
- the persisterHelper to set
-
setTaxonService
-
updateTaxaWithGenesUsable
Method to update taxon to indicate that genes have been loaded for that taxon are are usable. If there is a parent taxon for this species and it has genes loaded against it then use that parent's taxons genes rather than the species found in NCBI. Set the flag genesUSable to false for that child taxon that was found in ncbi.- Parameters:
taxaGenesLoaded
- List of taxa that have had genes loaded into GEMMA from NCBI.
-
setSkipDownload
public void setSkipDownload(boolean skipDownload) Set to true to avoid downloading the files, if copies already exist (not recommended if you want an update!)- Parameters:
skipDownload
- skip download
-
setStartingNcbiId
Indicate- Parameters:
startNcbiid
- start ncbi id
-