Package org.biojava.bio.program.unigene
Class FlatFileUnigeneFactory
java.lang.Object
org.biojava.bio.program.unigene.FlatFileUnigeneFactory
- All Implemented Interfaces:
UnigeneFactory
A UnigeneFactory that will use flat-file indexing of the unigene ascii-art files.
This class is for developers and power-users. Usually you will not use this class directly, but rather use UnigeneTools.loadDatabase() with a file URL.
This will create all the index files necisary to look up records in a timely manner. It requires read/write access to the unigene directory. No files will be deleted during this opperation. The indexing strategy used is compattible with the OBDA flat-file indexing spec and uses the package org.biojava.bio.program.indexdb and parsers that are compattible with the tag-value API.
- Author:
- Matthew Pocock
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Accepts all URLs that are of the file protocol.createUnigene
(URL unigeneLoc) loadUnigene
(URL unigeneLoc)
-
Constructor Details
-
FlatFileUnigeneFactory
public FlatFileUnigeneFactory()
-
-
Method Details
-
canAccept
Accepts all URLs that are of the file protocol.- Specified by:
canAccept
in interfaceUnigeneFactory
-
loadUnigene
- Specified by:
loadUnigene
in interfaceUnigeneFactory
- Throws:
BioException
-
createUnigene
- Specified by:
createUnigene
in interfaceUnigeneFactory
- Throws:
BioException
-