コード例 #1
0
ファイル: SaReaderUtils.cs プロジェクト: zhouhufeng/Nirvana
        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);
        }