Esempio n. 1
0
 /// <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)));
     }
 }
Esempio n. 2
0
 /// <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)));
         }
     }
 }