示例#1
0
        public void Load(ushort refIndex)
        {
            if (refIndex == CurrentRefIndex)
            {
                return;
            }

            SequenceReader.GetCompressedSequence(Sequence.Renamer.EnsemblReferenceNames[refIndex]);
            SiftCache     = SiftReader.Read(refIndex);
            PolyPhenCache = PolyPhenReader.Read(refIndex);

            CurrentRefIndex = refIndex;
        }
示例#2
0
        private static PredictionCacheStaging GetStagingWithPredictionIndices(PredictionCache cache, bool useSift,
                                                                              List <TranscriptPacket> packets, int numRefSeqs)
        {
            var predictionsPerRef = new Prediction[numRefSeqs][];

            for (ushort refIndex = 0; refIndex < numRefSeqs; refIndex++)
            {
                predictionsPerRef[refIndex] = GetPredictions(packets, useSift, refIndex);
            }

            var header = PredictionCacheHeader.GetHeader(cache.Header.CreationTimeTicks, cache.Header.GenomeAssembly,
                                                         numRefSeqs);

            return(new PredictionCacheStaging(header, cache.LookupTable, predictionsPerRef));
        }