Example #1
0
        /// <summary>
        /// loads the transcript cache
        /// </summary>
        private static void LoadTranscriptCache(Stream stream, int numRefSeqs,
                                                out IIntervalForest <Transcript> transcriptIntervalForest)
        {
            GlobalCache cache;

            using (var reader = new GlobalCacheReader(stream)) cache = reader.Read();
            transcriptIntervalForest = IntervalArrayFactory.CreateIntervalForest(cache.Transcripts, numRefSeqs);
        }
Example #2
0
 public void CreateIntervalForest_WithIntervals()
 {
     var intervalForest = IntervalArrayFactory.CreateIntervalForest(_regulatoryRegions, 17);
     var observedResult = intervalForest.OverlapsAny(_chr11.Index, 160, 170);
     Assert.True(observedResult);
 }
Example #3
0
 public void CreateIntervalForest_NullIntervals()
 {
     var intervalForest = IntervalArrayFactory.CreateIntervalForest<IRegulatoryRegion>(null, 17);
     Assert.True(intervalForest is NullIntervalSearch<IRegulatoryRegion>);
 }
Example #4
0
 public static IIntervalForest <Transcript> GetIntervalForest(Transcript[] transcripts, int numRefSeqs)
 {
     return(transcripts == null
         ? null
         : IntervalArrayFactory.CreateIntervalForest(transcripts, numRefSeqs));
 }