public class TwoBitFacade extends Object
Constructor and Description |
---|
TwoBitFacade(File file)
Reads a genome from a locally stored .2bit file.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes .2bit file twoBitParser.
|
String |
getSequence(String chromosomeName,
int start,
int end)
Extract a sequence from a chromosome, using chromosomal coordinates
|
void |
setChromosome(String chr)
Sets a chromosome for TwoBitParser.
|
public TwoBitFacade(File file) throws Exception
file
- the File to a .2bit file.Exception
public void setChromosome(String chr) throws Exception
chr
- The chromosome name (e.g. chr21)Exception
public String getSequence(String chromosomeName, int start, int end) throws Exception
chromosomeName
- start
- end
- Exception
Copyright © 2000–2019 BioJava. All rights reserved.