|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object htsjdk.tribble.AbstractFeatureCodec<T,LineIterator> htsjdk.tribble.AsciiFeatureCodec<BEDFeature> htsjdk.tribble.bed.BEDCodec
public class BEDCodec
Codec for parsing BED file, as described by UCSC See https://genome.ucsc.edu/FAQ/FAQformat.html#format1
Nested Class Summary | |
---|---|
static class |
BEDCodec.StartOffset
Indicate whether co-ordinates or 0-based or 1-based. |
Constructor Summary | |
---|---|
BEDCodec()
Calls BEDCodec(StartOffset) with an argument
of StartOffset.ONE |
|
BEDCodec(BEDCodec.StartOffset startOffset)
BED format is 0-based, but Tribble is 1-based. |
Method Summary | |
---|---|
boolean |
canDecode(java.lang.String path)
This function returns true iff the File potentialInput can be parsed by this codec. |
BEDFeature |
decode(java.lang.String line)
|
BEDFeature |
decode(java.lang.String[] tokens)
|
BEDFeature |
decodeLoc(java.lang.String line)
|
int |
getStartOffset()
|
java.lang.Object |
readActualHeader(LineIterator reader)
Read and return the header, or null if there is no header. |
protected boolean |
readHeaderLine(java.lang.String line)
|
Methods inherited from class htsjdk.tribble.AsciiFeatureCodec |
---|
close, decode, isDone, makeIndexableSourceFromStream, makeSourceFromStream, readHeader |
Methods inherited from class htsjdk.tribble.AbstractFeatureCodec |
---|
decodeLoc, getFeatureType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BEDCodec()
BEDCodec(StartOffset)
with an argument
of StartOffset.ONE
public BEDCodec(BEDCodec.StartOffset startOffset)
Method Detail |
---|
public BEDFeature decodeLoc(java.lang.String line)
public BEDFeature decode(java.lang.String line)
decode
in class AsciiFeatureCodec<BEDFeature>
AsciiFeatureCodec#decode(htsjdk.tribble.readers.LineIterator)}
public java.lang.Object readActualHeader(LineIterator reader)
AsciiFeatureCodec
readActualHeader
in class AsciiFeatureCodec<BEDFeature>
public BEDFeature decode(java.lang.String[] tokens)
protected boolean readHeaderLine(java.lang.String line)
public boolean canDecode(java.lang.String path)
FeatureCodec
canDecode
in interface FeatureCodec<BEDFeature,LineIterator>
canDecode
in class AbstractFeatureCodec<BEDFeature,LineIterator>
path
- the file to test for parsability with this codec
public int getStartOffset()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |