Class GenbankReaderHelper
java.lang.Object
org.biojava.nbio.core.sequence.io.GenbankReaderHelper
- Author:
- Scooter Willis
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Map
<String, DNASequence> readGenbankDNASequence
(File file) static Map
<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 Map
<String, DNASequence> readGenbankDNASequence
(InputStream inStream) Read a Genbank DNA sequencestatic Map
<String, ProteinSequence> Read a Genbank file containing amino acids with setup that would handle most cases.static Map
<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 Map
<String, ProteinSequence> readGenbankProteinSequence
(InputStream inStream) Read a Genbank file containing amino acids with setup that would handle most cases.static Map
<String, RNASequence> readGenbankRNASequence
(File file) static Map
<String, RNASequence> readGenbankRNASequence
(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 Map
<String, RNASequence> readGenbankRNASequence
(InputStream inStream) Read a Genbank RNA sequence
-
Constructor Details
-
GenbankReaderHelper
public GenbankReaderHelper()
-
-
Method Details
-
readGenbankDNASequence
public static Map<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 Map<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
-
readGenbankRNASequence
public static Map<String,RNASequence> readGenbankRNASequence(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
Read a Genbank file containing amino acids with setup that would handle most cases.- Parameters:
file
-- Returns:
- Throws:
Exception
-
readGenbankProteinSequence
public static Map<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
Read a Genbank DNA sequence- Parameters:
inStream
-- Returns:
- Throws:
Exception
-
readGenbankDNASequence
- Parameters:
file
-- Returns:
- Throws:
Exception
-
readGenbankRNASequence
Read a Genbank RNA sequence- Parameters:
inStream
-- Returns:
- Throws:
Exception
-
readGenbankRNASequence
- Parameters:
file
-- Returns:
- Throws:
Exception
-