Class GenbankReaderHelper


  • public class GenbankReaderHelper
    extends Object
    Author:
    Scooter Willis
    • Constructor Detail

      • GenbankReaderHelper

        public GenbankReaderHelper()
    • Method Detail

      • 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
      • readGenbankRNASequence

        public static LinkedHashMap<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

        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