Class TwoBitFacade


  • public class TwoBitFacade
    extends Object
    A facade that makes it easier to work with a 2bit file. Created by yana on 3/27/17.
    • Constructor Detail

      • TwoBitFacade

        public TwoBitFacade​(File file)
                     throws Exception
        Reads a genome from a locally stored .2bit file.
        Parameters:
        file - the File to a .2bit file.
        Throws:
        Exception
    • Method Detail

      • getSequence

        public String getSequence​(String chromosomeName,
                                  int start,
                                  int end)
                           throws Exception
        Extract a sequence from a chromosome, using chromosomal coordinates
        Parameters:
        chromosomeName -
        start -
        end -
        Returns:
        the DNASequence from the requested coordinates.
        Throws:
        Exception