Search in sources :

Example 6 with ConsoleProgressBar

use of org.nextprot.api.commons.app.ConsoleProgressBar in project nextprot-api by calipho-sib.

the class PeffServiceValidatorTask method analysingDifferences.

private String analysingDifferences(Map<String, Map<String, Object>> expected, Map<String, Map<String, Object>> observed) {
    ConsoleProgressBar pb = ConsoleProgressBar.determinated("analysing diffs", observed.size());
    DataToCompareConsumer consumer = new DataToCompareConsumer(expected, observed);
    pb.run(observed.keySet().stream(), consumer);
    return consumer.getOutput();
}
Also used : ConsoleProgressBar(org.nextprot.api.commons.app.ConsoleProgressBar)

Aggregations

ConsoleProgressBar (org.nextprot.api.commons.app.ConsoleProgressBar)6 EntryNotFoundException (org.nextprot.api.commons.exception.EntryNotFoundException)2 CvTerm (org.nextprot.api.core.domain.CvTerm)2 IsoformService (org.nextprot.api.core.service.IsoformService)2 java.io (java.io)1 Files (java.nio.file.Files)1 Paths (java.nio.file.Paths)1 Instant (java.time.Instant)1 java.util (java.util)1 Consumer (java.util.function.Consumer)1 Collectors (java.util.stream.Collectors)1 CommandLine (org.apache.commons.cli.CommandLine)1 OptionBuilder (org.apache.commons.cli.OptionBuilder)1 Options (org.apache.commons.cli.Options)1 ParseException (org.apache.commons.cli.ParseException)1 Logger (org.apache.log4j.Logger)1 CommandLineSpringParser (org.nextprot.api.commons.app.CommandLineSpringParser)1 SpringBasedTask (org.nextprot.api.commons.app.SpringBasedTask)1 TerminologyCv (org.nextprot.api.commons.constants.TerminologyCv)1 Isoform (org.nextprot.api.core.domain.Isoform)1