@Immutable public final class BedRecord extends Object
chr1 11873 14409chr1 11873 14409 uc001aaa.3chr1 11873 14409 uc001aaa.3 0chr1 11873 14409 uc001aaa.3 0 +chr1 11873 14409 uc001aaa.3 0 + 11873 11873 0 3 354,109,1189, 0,739,1347,| Constructor and Description |
|---|
BedRecord(String chrom,
long start,
long end)
Create a new BED3 record.
|
BedRecord(String chrom,
long start,
long end,
String name)
Create a new BED4 record.
|
BedRecord(String chrom,
long start,
long end,
String name,
String score)
Create a new BED5 record.
|
BedRecord(String chrom,
long start,
long end,
String name,
String score,
String strand)
Create a new BED6 record.
|
BedRecord(String chrom,
long start,
long end,
String name,
String score,
String strand,
long thickStart,
long thickEnd,
String itemRgb,
int blockCount,
long[] blockSizes,
long[] blockStarts)
Create a new BED12 record.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
getBlockCount()
Return the block count for this BED record.
|
long[] |
getBlockSizes()
Return the block sizes for this BED record.
|
long[] |
getBlockStarts()
Return the block starts for this BED record.
|
String |
getChrom()
Return the chrom for this BED record.
|
long |
getEnd()
Return the end for this BED record in 0-based coordinate system, closed open range.
|
BedFormat |
getFormat()
Return the format of this BED record.
|
String |
getItemRgb()
Return the item RGB for this BED record, if any.
|
String |
getName()
Return the name for this BED record, if any.
|
String |
getScore()
Return the score for this BED record, if any.
|
long |
getStart()
Return the start for this BED record in 0-based coordinate system, closed open range.
|
String |
getStrand()
Return the strand for this BED record, if any.
|
long |
getThickEnd()
Return the thick end for this BED record in 0-based coordinate system, closed open range.
|
long |
getThickStart()
Return the thick start for this BED record in 0-based coordinate system, closed open range.
|
int |
hashCode() |
com.google.common.collect.Range<Long> |
toRange()
Return this BED record as a 0-based coordinate system, closed open range.
|
String |
toString() |
static BedRecord |
valueOf(String value)
Return a new BED record parsed from the specified value.
|
public BedRecord(String chrom, long start, long end)
chrom - chrom, must not be nullstart - start, must be at least zeroend - end, must be at least zero, and greater than or equal to startpublic BedRecord(String chrom, long start, long end, String name)
chrom - chrom, must not be nullstart - start, must be at least zeroend - end, must be at least zero, and greater than or equal to startname - namepublic BedRecord(String chrom, long start, long end, String name, String score)
chrom - chrom, must not be nullstart - start, must be at least zeroend - end, must be at least zero, and greater than or equal to startname - namescore - scorepublic BedRecord(String chrom, long start, long end, String name, String score, String strand)
chrom - chrom, must not be nullstart - start, must be at least zeroend - end, must be at least zero, and greater than or equal to startname - namescore - scorestrand - strand, if present must be either - or +public BedRecord(String chrom, long start, long end, String name, String score, String strand, long thickStart, long thickEnd, String itemRgb, int blockCount, long[] blockSizes, long[] blockStarts)
chrom - chrom, must not be nullstart - start, must be at least zeroend - end, must be at least zero, and greater than or equal to startname - namescore - scorestrand - strand, if present must be either - or +thickStart - thick start, must be at least zerothickEnd - thick end, must be at least zero and greater than or equal to thick startitemRgb - item RGB, if present, must be in R,G,B format, e.g. 255,0,0blockCount - block count, must be at least zeroblockSizes - block sizes, must be the same length as block countblockStarts - block starts, must be the same length as block countpublic String getChrom()
public long getStart()
public long getEnd()
public String getName()
public String getScore()
public String getStrand()
public long getThickStart()
public long getThickEnd()
public String getItemRgb()
public int getBlockCount()
public long[] getBlockSizes()
public long[] getBlockStarts()
public BedFormat getFormat()
public com.google.common.collect.Range<Long> toRange()
public static BedRecord valueOf(String value)
value - value to parseIllegalArgumentException - if the value is not valid BED[3,4,5,6,12] formatNullPointerException - if a required field is missingNumberFormatException - if a long valued field cannot be parsed as a longCopyright (c) 2013-2022 held jointly by the individual authors. Licensed under the GNU Lesser General Public License (LGPL).