ESAT
 All Classes Namespaces Files Functions Variables Enumerator Pages
Classes | Public Member Functions | List of all members
umms.core.coordinatesystem.MaskedGenomicSpace Class Reference
Inheritance diagram for umms.core.coordinatesystem.MaskedGenomicSpace:
Inheritance graph
[legend]
Collaboration diagram for umms.core.coordinatesystem.MaskedGenomicSpace:
Collaboration graph
[legend]

Public Member Functions

 MaskedGenomicSpace (Map< String, Integer > chrSizes, Map< String, Collection< Annotation >> maskedRegions, int distance)
 
 MaskedGenomicSpace (Map< String, Integer > chrSizes, Map< String, Collection< Annotation >> maskedRegions, int distance, boolean constantWidth)
 
Collection<?extends WindowgetFragment (String chr, int start, int end)
 
Collection<?extends WindowgetOverlappingRegion (String chr, int start, int end)
 
Iterator<?extends WindowgetWindowIterator (int windowSize, String chr, int start, int end, int overlap)
 
Iterator<?extends WindowgetWindowIterator (String chr, int windowSize, int overlap)
 
Iterator<?extends WindowgetWindowIterator (int windowSize, int overlap)
 
Iterator<?extends WindowgetWindowIterator (Annotation window, int windowSize, int overlap)
 
long getLength ()
 
long getLength (String chr)
 
Annotation permuteAnnotation (Annotation a)
 
Annotation permuteAnnotation (Annotation a, Annotation bounds)
 
Collection< String > getReferenceNames ()
 
Collection<?extends AnnotationgetReferenceAnnotations ()
 
Annotation getReferenceAnnotation (String name)
 
Iterator< WindowgetWindowIterator (Collection< Gene > baseGenes, int windowSize, int overlap)
 
Collection<?extends WindowgetFragment (Annotation annotation)
 
int getSize (Annotation region)
 
Collection< String > getChromosomeNames ()
 
boolean hasChromosome (String chr)
 
Annotation getEntireChromosome (String chrName)
 
boolean isValidWindow (Annotation window)
 

Constructor & Destructor Documentation

umms.core.coordinatesystem.MaskedGenomicSpace.MaskedGenomicSpace ( Map< String, Integer >  chrSizes,
Map< String, Collection< Annotation >>  maskedRegions,
int  distance 
)

This is meant to represent a coordinate space that excludes masked regions This way we wont count reads in the global stats in these regions Wont use them in estimating parameters or length calculations

Parameters
maskedRegionsa collection of masked region
chrSizesthe lengths of the associated chromosomes
umms.core.coordinatesystem.MaskedGenomicSpace.MaskedGenomicSpace ( Map< String, Integer >  chrSizes,
Map< String, Collection< Annotation >>  maskedRegions,
int  distance,
boolean  constantWidth 
)

This is meant to represent a coordinate space that excludes masked regions This way we wont count reads in the global stats in these regions Wont use them in estimating parameters or length calculations

Parameters
maskedRegionsa collection of masked region
chrSizesthe lengths of the associated chromosomes
constantWidtha boolean (true= ensure that windows have the same final length even if represent different genomic space, false= all windows will have same genomic space even if shorter window length because of masked regions)

Member Function Documentation

Collection<String> umms.core.coordinatesystem.MaskedGenomicSpace.getChromosomeNames ( )
Returns
A list of chromosome names contained in the coordinate space

Implements umms.core.coordinatesystem.CoordinateSpace.

Annotation umms.core.coordinatesystem.MaskedGenomicSpace.getEntireChromosome ( String  chrName)

Get an annotation spanning an entire chromosome

Parameters
chrNameThe chromosome name
Returns
Annotation consisting of the entire chromosome

Implements umms.core.coordinatesystem.CoordinateSpace.

Collection<? extends Window> umms.core.coordinatesystem.MaskedGenomicSpace.getFragment ( String  chr,
int  start,
int  end 
)

Will return the continuous fragment

Implements umms.core.coordinatesystem.CoordinateSpace.

Here is the caller graph for this function:

Collection<? extends Window> umms.core.coordinatesystem.MaskedGenomicSpace.getFragment ( Annotation  annotation)

Returns a fragment of type Window between start and end on chromosome

Parameters
Annotation
Returns

Implements umms.core.coordinatesystem.CoordinateSpace.

Here is the call graph for this function:

long umms.core.coordinatesystem.MaskedGenomicSpace.getLength ( )

Always returns the gapped space length

Implements umms.core.coordinatesystem.CoordinateSpace.

long umms.core.coordinatesystem.MaskedGenomicSpace.getLength ( String  chr)

Returns the total number of positions in the coordinate space For non-contiguous coordinate spaces, this will return a collapsed count such that overlapping blocks are not double counted

Parameters
onlypositions on a given chromosome
Returns
number of positions in space

Implements umms.core.coordinatesystem.CoordinateSpace.

Collection<? extends Window> umms.core.coordinatesystem.MaskedGenomicSpace.getOverlappingRegion ( String  chr,
int  start,
int  end 
)

Will return the overlapping regions in gapped space

Implements umms.core.coordinatesystem.CoordinateSpace.

Annotation umms.core.coordinatesystem.MaskedGenomicSpace.getReferenceAnnotation ( String  name)
Parameters
name
Returns
The named reference as an annotation

Implements umms.core.coordinatesystem.CoordinateSpace.

Collection<? extends Annotation> umms.core.coordinatesystem.MaskedGenomicSpace.getReferenceAnnotations ( )
Returns
The reference annotations contained in this coordinate space.

Implements umms.core.coordinatesystem.CoordinateSpace.

Collection<String> umms.core.coordinatesystem.MaskedGenomicSpace.getReferenceNames ( )
Returns
A list of reference names contained in the coordinate space (e.g. chr1, chr2, etc.)

Implements umms.core.coordinatesystem.CoordinateSpace.

int umms.core.coordinatesystem.MaskedGenomicSpace.getSize ( Annotation  region)

Get the size of the annotation with respect to the coordinate space

Parameters
region
Returns

Implements umms.core.coordinatesystem.CoordinateSpace.

Iterator<? extends Window> umms.core.coordinatesystem.MaskedGenomicSpace.getWindowIterator ( int  windowSize,
String  chr,
int  start,
int  end,
int  overlap 
)

Interprets the windowSize based on how it was initialized

Implements umms.core.coordinatesystem.CoordinateSpace.

Here is the caller graph for this function:

Iterator<? extends Window> umms.core.coordinatesystem.MaskedGenomicSpace.getWindowIterator ( String  chr,
int  windowSize,
int  overlap 
)
Returns
returns an iterator that goes from first window to last window on chromosome chr sequentially

Implements umms.core.coordinatesystem.CoordinateSpace.

Here is the call graph for this function:

Iterator<? extends Window> umms.core.coordinatesystem.MaskedGenomicSpace.getWindowIterator ( int  windowSize,
int  overlap 
)
Returns
returns an iterator that goes from first window to last window in the coordinate space sequentially

Implements umms.core.coordinatesystem.CoordinateSpace.

Iterator<? extends Window> umms.core.coordinatesystem.MaskedGenomicSpace.getWindowIterator ( Annotation  window,
int  windowSize,
int  overlap 
)
Returns
returns an iterator over an annotation sequentially

Implements umms.core.coordinatesystem.CoordinateSpace.

Here is the call graph for this function:

Iterator<Window> umms.core.coordinatesystem.MaskedGenomicSpace.getWindowIterator ( Collection< Gene baseGenes,
int  windowSize,
int  overlap 
)

Get a window iterator over a collection of GeneWindows

Parameters
baseGenesThe regions over which to iterate
windowSizeWindow size
overlapOverlap size
Returns
Iterator over windows on the collection of regions

Implements umms.core.coordinatesystem.CoordinateSpace.

boolean umms.core.coordinatesystem.MaskedGenomicSpace.hasChromosome ( String  chr)

Returns true if the coordinate space contains any annotations on the queried chromosome

Parameters
chr
Returns

Implements umms.core.coordinatesystem.CoordinateSpace.

boolean umms.core.coordinatesystem.MaskedGenomicSpace.isValidWindow ( Annotation  window)

Check if window in coordinate space and not masked

Parameters
window
Returns

Implements umms.core.coordinatesystem.CoordinateSpace.

Annotation umms.core.coordinatesystem.MaskedGenomicSpace.permuteAnnotation ( Annotation  a)

Permutes an annotation to a new location on the same reference in the given coordinate space, preserving the length of the annotation and maintaining a consistent block structure. Does not check whether the given annotation was valid in the coordinate space in the first place.

Parameters
aAnnotation to permute. Will be modified.
Returns
The permuted Annotation
Exceptions
PermutationNotFoundExceptionif an annotation cannot be found

Implements umms.core.coordinatesystem.CoordinateSpace.

Annotation umms.core.coordinatesystem.MaskedGenomicSpace.permuteAnnotation ( Annotation  a,
Annotation  bounds 
)

Permutes an annotation to a new location within the given bounds, preserving the length of the annotation and maintaining a consistent block structure. Does not check whether the given annotation was valid in the coordinate space in the first place.

Parameters
aAnnotation to permute. Will be modified.
boundsBoundaries within which the annotation will be permuted
Returns
The permuted Annotation
Exceptions
PermutationNotFoundExceptionif a permuted location cannot be found

Implements umms.core.coordinatesystem.CoordinateSpace.


The documentation for this class was generated from the following file: