public class CreateIntergenicRegionFeaturesProcess
extends org.intermine.postprocess.PostProcessor
| Constructor and Description |
|---|
CreateIntergenicRegionFeaturesProcess(org.intermine.objectstore.ObjectStoreWriter osw)
Create a new instance
|
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Iterator<org.intermine.model.bio.SequenceFeature> |
createFeatures(java.util.Set<org.intermine.model.bio.Location> locationSet,
java.util.Map<java.lang.Integer,java.util.Set<org.intermine.model.bio.Gene>> locToGeneMap,
java.lang.Integer chrId)
Return an iterator over a Set of IntergenicRegion objects that don't
overlap the Locations in the locationSet argument.
|
void |
postProcess()
Main post-processing routine. |
public CreateIntergenicRegionFeaturesProcess(org.intermine.objectstore.ObjectStoreWriter osw)
osw - object store writerpublic void postProcess()
throws org.intermine.objectstore.ObjectStoreException
postProcess in class org.intermine.postprocess.PostProcessororg.intermine.objectstore.ObjectStoreException - if the objectstore throws an exceptionprotected java.util.Iterator<org.intermine.model.bio.SequenceFeature> createFeatures(java.util.Set<org.intermine.model.bio.Location> locationSet,
java.util.Map<java.lang.Integer,java.util.Set<org.intermine.model.bio.Gene>> locToGeneMap,
java.lang.Integer chrId)
throws org.intermine.objectstore.ObjectStoreException
locationSet - a set of Locations for the Genes on a particular chromosomelocToGeneMap - a Map from Location.start to Gene and Location.end to Gene,
used by this method to find the next and previous Genes for
setting the IntergenicRegion.upstreamGene and downstreamGene
fieldschrId - the ID of the Chromosome that the Locations refer toorg.intermine.objectstore.ObjectStoreException - if there is an ObjectStore problem