Class FastaReaderHelper
java.lang.Object
org.biojava.nbio.core.sequence.io.FastaReaderHelper
- Author:
- Scooter Willis
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Map
<String, DNASequence> readFastaDNASequence
(File file) static Map
<String, DNASequence> readFastaDNASequence
(File file, boolean lazySequenceLoad) Selecting lazySequenceLoad=true will parse the FASTA 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> readFastaDNASequence
(InputStream inStream) Read a fasta DNA sequencestatic Map
<String, ProteinSequence> readFastaProteinSequence
(File file) Read a fasta file containing amino acids with setup that would handle most cases.static Map
<String, ProteinSequence> readFastaProteinSequence
(InputStream inStream) Read a fasta file containing amino acids with setup that would handle most cases.static Map
<String, RNASequence> readFastaRNASequence
(File file) static Map
<String, RNASequence> readFastaRNASequence
(File file, boolean lazySequenceLoad) Selecting lazySequenceLoad=true will parse the FASTA 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> readFastaRNASequence
(InputStream inStream) Read a fasta RNA sequence
-
Constructor Details
-
FastaReaderHelper
public FastaReaderHelper()
-
-
Method Details
-
readFastaDNASequence
public static Map<String,DNASequence> readFastaDNASequence(File file, boolean lazySequenceLoad) throws IOException Selecting lazySequenceLoad=true will parse the FASTA 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 fasta files where you are only interested in one sequence based on accession id.- Parameters:
file
-lazySequenceLoad
-- Returns:
- Throws:
IOException
-
readFastaRNASequence
public static Map<String,RNASequence> readFastaRNASequence(File file, boolean lazySequenceLoad) throws IOException Selecting lazySequenceLoad=true will parse the FASTA 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 fasta files where you are only interested in one sequence based on accession id.- Parameters:
file
-lazySequenceLoad
-- Returns:
- Throws:
IOException
-
readFastaProteinSequence
Read a fasta file containing amino acids with setup that would handle most cases.- Parameters:
file
-- Returns:
- Throws:
IOException
-
readFastaProteinSequence
public static Map<String,ProteinSequence> readFastaProteinSequence(InputStream inStream) throws IOException Read a fasta 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:
IOException
-
readFastaDNASequence
Read a fasta DNA sequence- Parameters:
inStream
-- Returns:
- Throws:
IOException
-
readFastaDNASequence
- Parameters:
file
-- Returns:
- Throws:
IOException
-
readFastaRNASequence
Read a fasta RNA sequence- Parameters:
inStream
-- Returns:
- Throws:
IOException
-
readFastaRNASequence
- Parameters:
file
-- Returns:
- Throws:
IOException
-