Class GenbankReaderHelper
java.lang.Object
org.biojava.nbio.core.sequence.io.GenbankReaderHelper
- Author:
- Scooter Willis
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
static LinkedHashMap<String,
DNASequence> readGenbankDNASequence
(File file) static LinkedHashMap<String,
DNASequence> readGenbankDNASequence
(File file, boolean lazySequenceLoad) Selecting lazySequenceLoad=true will parse the Genbank file and figure out the accessionid and offsets and return sequence objects that can in the future read the sequence from the disk.static LinkedHashMap<String,
DNASequence> readGenbankDNASequence
(InputStream inStream) Read a Genbank DNA sequencestatic LinkedHashMap<String,
ProteinSequence> Read a Genbank file containing amino acids with setup that would handle most cases.static LinkedHashMap<String,
ProteinSequence> readGenbankProteinSequence
(File file, boolean lazySequenceLoad) Selecting lazySequenceLoad=true will parse the Genbank file and figure out the accessionid and offsets and return sequence objects that can in the future read the sequence from the disk.static LinkedHashMap<String,
ProteinSequence> readGenbankProteinSequence
(InputStream inStream) Read a Genbank file containing amino acids with setup that would handle most cases.
-
Constructor Details
-
GenbankReaderHelper
public GenbankReaderHelper()
-
-
Method Details
-
readGenbankDNASequence
public static LinkedHashMap<String,DNASequence> readGenbankDNASequence(File file, boolean lazySequenceLoad) throws Exception Selecting lazySequenceLoad=true will parse the Genbank file and figure out the accessionid and offsets and return sequence objects that can in the future read the sequence from the disk. This allows the loading of large Genbank files where you are only interested in one sequence based on accession id.- Parameters:
file
-lazySequenceLoad
-- Returns:
- Throws:
Exception
-
readGenbankProteinSequence
public static LinkedHashMap<String,ProteinSequence> readGenbankProteinSequence(File file, boolean lazySequenceLoad) throws Exception Selecting lazySequenceLoad=true will parse the Genbank file and figure out the accessionid and offsets and return sequence objects that can in the future read the sequence from the disk. This allows the loading of large Genbank files where you are only interested in one sequence based on accession id.- Parameters:
file
-lazySequenceLoad
-- Returns:
- Throws:
Exception
-
readGenbankProteinSequence
public static LinkedHashMap<String,ProteinSequence> readGenbankProteinSequence(File file) throws Exception Read a Genbank file containing amino acids with setup that would handle most cases.- Parameters:
file
-- Returns:
- Throws:
Exception
-
readGenbankProteinSequence
public static LinkedHashMap<String,ProteinSequence> readGenbankProteinSequence(InputStream inStream) throws Exception Read a Genbank file containing amino acids with setup that would handle most cases. User is responsible for closing InputStream because you opened it- Parameters:
inStream
-- Returns:
- Throws:
Exception
-
readGenbankDNASequence
public static LinkedHashMap<String,DNASequence> readGenbankDNASequence(InputStream inStream) throws Exception Read a Genbank DNA sequence- Parameters:
inStream
-- Returns:
- Throws:
Exception
-
readGenbankDNASequence
- Parameters:
file
-- Returns:
- Throws:
Exception
-
main
- Throws:
Exception
-