Package org.biojava.bio.program.indexdb
Class IndexTools
- java.lang.Object
-
- org.biojava.bio.program.indexdb.IndexTools
-
public class IndexTools extends java.lang.ObjectIndexToolscontains static utility methods for creating flatfile indices according to the OBDA standard.- Author:
- Keith James, Matthew Pocock
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidindexEmbl(java.lang.String name, java.io.File location, java.io.File[] seqFiles, int alphabetIdentifier)indexEmblindexes DNA, RNA or protein EMBL format sequence files on ID as primary identifier and AC as secondary.static voidindexFasta(java.lang.String name, java.io.File location, java.io.File[] seqFiles, int alphabetIdentifier)indexFastaindexes DNA, RNA or protein Fasta format sequence files on primary identifier.static voidindexGenbank(java.lang.String name, java.io.File location, java.io.File[] seqFiles, int alphabetIdentifier)indexGenbankindexes DNA, RNA or protein Genbank format sequence files on LOCUS as primary identifier and ACCESSION as secondary.static voidindexSwissprot(java.lang.String name, java.io.File location, java.io.File[] seqFiles)indexSwissprotindexes Swissprot format protein sequence files on ID as primary identifier.
-
-
-
Method Detail
-
indexFasta
public static void indexFasta(java.lang.String name, java.io.File location, java.io.File[] seqFiles, int alphabetIdentifier) throws java.io.FileNotFoundException, java.io.IOException, ParserException, BioExceptionindexFastaindexes DNA, RNA or protein Fasta format sequence files on primary identifier.- Parameters:
location- aFiledirectory which will contain the indices.seqFiles- aFile []array of files to index.alphabetIdentifier- anintindicating the type of sequence to be indexed. May be one ofSeqIOConstants.DNA SeqIOConstants.RNA SeqIOConstants.AA.name- aStringarbitrary database name.- Throws:
java.io.FileNotFoundException- if an error occurs.java.io.IOException- if an error occurs.ParserException- if an error occurs.BioException- if an error occurs.
-
indexEmbl
public static void indexEmbl(java.lang.String name, java.io.File location, java.io.File[] seqFiles, int alphabetIdentifier) throws java.io.FileNotFoundException, java.io.IOException, ParserException, BioExceptionindexEmblindexes DNA, RNA or protein EMBL format sequence files on ID as primary identifier and AC as secondary.- Parameters:
location- aFiledirectory which will contain the indices.seqFiles- aFile []array of files to index.alphabetIdentifier- anintindicating the type of sequence to be indexed. May be one ofSeqIOConstants.DNA SeqIOConstants.RNA SeqIOConstants.AA.name- aStringarbitrary database name.- Throws:
java.io.FileNotFoundException- if an error occurs.java.io.IOException- if an error occurs.ParserException- if an error occurs.BioException- if an error occurs.
-
indexGenbank
public static void indexGenbank(java.lang.String name, java.io.File location, java.io.File[] seqFiles, int alphabetIdentifier) throws java.io.FileNotFoundException, java.io.IOException, ParserException, BioExceptionindexGenbankindexes DNA, RNA or protein Genbank format sequence files on LOCUS as primary identifier and ACCESSION as secondary.- Parameters:
location- aFiledirectory which will contain the indices.seqFiles- aFile []array of files to index.alphabetIdentifier- anintindicating the type of sequence to be indexed. May be one ofSeqIOConstants.DNA SeqIOConstants.RNA SeqIOConstants.AA.name- aStringarbitrary database name.- Throws:
java.io.FileNotFoundException- if an error occurs.java.io.IOException- if an error occurs.ParserException- if an error occurs.BioException- if an error occurs.
-
indexSwissprot
public static void indexSwissprot(java.lang.String name, java.io.File location, java.io.File[] seqFiles) throws java.io.FileNotFoundException, java.io.IOException, ParserException, BioExceptionindexSwissprotindexes Swissprot format protein sequence files on ID as primary identifier.- Parameters:
location- aFiledirectory which will contain the indices.seqFiles- aFile []array of files to index.- Throws:
java.io.FileNotFoundException- if an error occurs.java.io.IOException- if an error occurs.ParserException- if an error occurs.BioException- if an error occurs.
-
-