Class TwoBitFacade
java.lang.Object
org.biojava.nbio.genome.parsers.twobit.TwoBitFacade
A facade that makes it easier to work with a 2bit file.
Created by yana on 3/27/17.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes .2bit file twoBitParser.getSequence(String chromosomeName, int start, int end) Extract a sequence from a chromosome, using chromosomal coordinatesvoidsetChromosome(String chr) Sets a chromosome for TwoBitParser.
-
Constructor Details
-
TwoBitFacade
Reads a genome from a locally stored .2bit file.- Parameters:
file- the File to a .2bit file.- Throws:
Exception
-
-
Method Details
-
close
Closes .2bit file twoBitParser.- Throws:
Exception
-
setChromosome
Sets a chromosome for TwoBitParser.- Parameters:
chr- The chromosome name (e.g. chr21)- Throws:
Exception
-
getSequence
Extract a sequence from a chromosome, using chromosomal coordinates- Parameters:
chromosomeName-start-end-- Returns:
- the DNASequence from the requested coordinates.
- Throws:
Exception
-