/// <summary> /// Parser the file. /// </summary> /// <returns></returns> public IEnumerable <ISequence> Parse(Stream stream) { using (var binaryReader = new BinaryReader(stream)) { yield return(Ab1ContextToSequenceConverter.Convert(Parse(binaryReader, this.Alphabet))); } }
/// <summary> /// Parser the file. /// </summary> /// <returns></returns> public IEnumerable <ISequence> Parse() { using (FileStream stream = new FileInfo(Filename).OpenRead()) { using (var binaryReader = new BinaryReader(stream)) { yield return(Ab1ContextToSequenceConverter.Convert(Parse(binaryReader))); } } }