public class GenomicBoundaries<V> extends Object implements Iterable<GenomicBoundary<V>>
| Constructor and Description |
|---|
GenomicBoundaries()
Empty constructor that only creates an empty structure for saving Genomic Boundaries.
|
GenomicBoundaries(String genomicsBoundarysFilePath)
Constructor for building Genomic Boundaries from a file.
|
GenomicBoundaries(String genomicsBoundarysFilePath,
int margin) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBoundary(String chromosome,
Integer beginPoint,
int endPoint)
Method to add a Genomic Boundary to the Genmoic Boundaries set.
|
void |
addBoundary(String chromosome,
Integer beginPoint,
int endPoint,
V annotation)
Method to add a Genomic Boundary to the Genmoic Boundaries set.
|
int |
getBoudaryCount()
This method returns the count of Boundary objects.
|
GenomicBoundary |
getBoundary(String chromosome,
int position,
int listIndex)
This method returns a Boundary object from a chromosome at a specific position.
|
int |
getBoundaryCountChromosome(String chromosome) |
Set<String> |
getChromosomes() |
HashMap<String,TreeMap<Integer,ArrayList<GenomicBoundary<V>>>> |
getGenomicBoundaries()
Returns the GenomicBoundaries
|
Collection<ArrayList<GenomicBoundary<V>>> |
getGenomicBoundaries(String chromosome)
Returns the GenomicBoundaries
|
TreeMap<Integer,ArrayList<GenomicBoundary<V>>> |
getGenomicBoundariesMap(String chromosome)
Returns a TreeMap
|
boolean |
isChromosomeInBoundary(String chromosome)
Method to check if a chromosome is contained in the Genomic Boundaries.
|
boolean |
isInBoundary(String chromosome,
int position,
int listIndex) |
Iterator<GenomicBoundary<V>> |
iterator() |
void |
mergeGenomicBoundaries(GenomicBoundaries otherGenomicBoundariesSet)
Merges GenomicBoundaries by adding
|
void |
mergeOverlappingBoundaries()
Method that merges overlapping Boundaries.
|
void |
removeSubBoundaries()
Method to remove boundaries that are sub boundaries of other boundaries.
|
void |
writeBoundariesToBedFile(String bedFilePath,
String trackName)
Write the data of the Boundary objects to a BED file, specified by @param bedFilePath.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic GenomicBoundaries(String genomicsBoundarysFilePath) throws FileNotFoundException, IOException
genomicsBoundarysFilePath - FileNotFoundExceptionIOExceptionpublic GenomicBoundaries()
public GenomicBoundaries(String genomicsBoundarysFilePath, int margin) throws FileNotFoundException, IOException
FileNotFoundExceptionIOExceptionpublic final void addBoundary(String chromosome, Integer beginPoint, int endPoint)
chromosome - beginPoint - endPoint - public final void removeSubBoundaries()
public final void mergeOverlappingBoundaries()
public boolean isChromosomeInBoundary(String chromosome)
chromosome - public boolean isInBoundary(String chromosome, int position, int listIndex)
public GenomicBoundary getBoundary(String chromosome, int position, int listIndex)
chromosome - position - public Iterator<GenomicBoundary<V>> iterator()
iterator in interface Iterable<GenomicBoundary<V>>public int getBoundaryCountChromosome(String chromosome)
public int getBoudaryCount()
public void writeBoundariesToBedFile(String bedFilePath, String trackName) throws IOException
bedFilePath - trackName - IOExceptionpublic TreeMap<Integer,ArrayList<GenomicBoundary<V>>> getGenomicBoundariesMap(String chromosome) throws Exception
chromosome - Exceptionpublic Collection<ArrayList<GenomicBoundary<V>>> getGenomicBoundaries(String chromosome) throws Exception
chromosome - Exceptionpublic void mergeGenomicBoundaries(GenomicBoundaries otherGenomicBoundariesSet)
otherGenomicBoundariesSet - public HashMap<String,TreeMap<Integer,ArrayList<GenomicBoundary<V>>>> getGenomicBoundaries()
Copyright © 2015. All Rights Reserved.