Beispiel #1
0
        public virtual void MapReadToFeatureAndRemoveFromMap(List <FeatureLocation> allFeatures, Dictionary <string, Dictionary <char, List <SAMAlignedLocation> > > chrStrandReadMap)
        {
            var features = allFeatures.Where(l => Accept(l)).ToList();

            Progress.SetMessage("Mapping reads to {0} {1} entries.", features.Count, MapperName);
            if (features.Count > 0)
            {
                MapReadToFeature(features, chrStrandReadMap);

                var reads = SmallRNAUtils.GetMappedReads(features);
                Progress.SetMessage("There are {0} SAM entries mapped to {1} entries.", reads.Count, MapperName);

                SmallRNAUtils.RemoveReadsFromMap(chrStrandReadMap, reads);
            }
            else
            {
                Progress.SetMessage("There are 0 SAM entries mapped to {0} entries.", MapperName);
            }
        }