Class UniprotEntrySummaryReader

java.lang.Object
org.dishevelled.bio.protein.uniprot.UniprotEntrySummaryReader

@Immutable public final class UniprotEntrySummaryReader extends Object
Streaming UniProt XML reader that extracts entry summaries.
Since:
2.5
Author:
Michael Heuer
  • Method Details

    • stream

      public static void stream(Reader reader, EntrySummaryListener callback) throws IOException
      Stream UniProt XML from the specified reader and extract entry summaries.
      Parameters:
      reader - UniProt XML reader to read from, must not be null
      callback - entry summary callback, must not be null
      Throws:
      IOException - if an I/O error occurs
    • classifyOrganism

      static String classifyOrganism(String lineage)
      Classify an organism type from the specified lineage.
      Parameters:
      lineage - lineage, must not be null
      Returns:
      an organism type from the specified lineage