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); }
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); }