CSMSL.IO.FastaReader.ReadNextProtein C# (CSharp) Method

ReadNextProtein() public method

public ReadNextProtein ( ) : IEnumerable
return IEnumerable
        public IEnumerable<Protein> ReadNextProtein()
        {
            return ReadNextFasta().Select(f => new Protein(f.Sequence, f.Description));
        }

Usage Example

Example #1
0
 public void LoadProteins(string fastaFile)
 {
     using (FastaReader reader = new FastaReader(fastaFile))
     {
         LoadProteins(reader.ReadNextProtein());
     }
 }
All Usage Examples Of CSMSL.IO.FastaReader::ReadNextProtein