public class ReadBedfile
public static java.util.List<net.maizegenetics.dna.snp.io.ReadBedfile.BedFileRange> getRanges(java.lang.String bedFile)
Function to parse the bedFile and create a List of BedFileRanges. The positions stored in BedFileRange are 1-based inclusive exclusive. This is done by adding 1 to both the start and end position from the BED file.
bedFile - public static PositionList getPositionList(java.lang.String bedfile)
Gets position list from specified bed file.
public static com.google.common.collect.RangeSet<net.maizegenetics.dna.map.Position> getRangesAsPositions(java.lang.String bedfile)
Function that returns the 1-based Position ranges from a BED file as a RangeSet of Positions. NOTE: getRanges(bedFile) will be called which will shift the start and end positions in the BED file up by 1. Because of this the ranges returned will be 1-based Closed-Open(Inclusive-Exclusive). This is NOT returning ranges in BED specification(0-based Inclusive-Exclusive).
bedfile - public static com.google.common.collect.RangeSet<net.maizegenetics.dna.map.Position> getClosedRangesAsPositions(java.lang.String bedfile)
Function that returns the 1-based closed Position ranges from a BED file as a RangeSet of Positions. NOTE: getRanges(bedFile) will be called which will shift the start in the BED file up by 1. Because of this the ranges returned will be 1-based Closed(Inclusive-Inclusive). This is NOT returning ranges in BED specification(0-based Inclusive-Exclusive).
bedfile - public static com.google.common.collect.RangeMap<net.maizegenetics.dna.map.Position,java.lang.String> getRangesAsPositionMap(java.lang.String bedfile)
Function that returns the 1-based Position ranges from a BED file as a RangeMap of Positions to the annotated name of the region. NOTE: getRanges(bedFile) will be called which will shift the start and end positions in the BED file up by 1. Because of this the ranges returned will be 1-based Closed-Open(Inclusive-Exclusive). This is NOT returning ranges in BED specification(0-based Inclusive-Exclusive).
bedfile -