示例#1
0
        private static ISupplementaryAnnotationHeader GetHeader(string saPath)
        {
            ISupplementaryAnnotationHeader header;

            using (var stream = FileUtilities.GetReadStream(saPath))
                using (var reader = new ExtendedBinaryReader(stream))
                {
                    header = SaReader.GetHeader(reader);
                }

            return(header);
        }
示例#2
0
        private static string GetReferenceName(string saPath, IDictionary <string, IChromosome> refChromDict)
        {
            ISupplementaryAnnotationHeader header;

            using (var stream = FileUtilities.GetReadStream(saPath))
                using (var reader = new ExtendedBinaryReader(stream))
                {
                    header = SaReader.GetHeader(reader);
                }

            return(refChromDict[header.ReferenceSequenceName].UcscName);
        }