Tabnine Logo
FilterGraph_GAF2
Code IndexAdd Tabnine to your IDE (free)

How to use
FilterGraph_GAF2
in
slib.graph.io.loader.utils.filter.graph.gaf2

Best Java code snippets using slib.graph.io.loader.utils.filter.graph.gaf2.FilterGraph_GAF2 (Showing top 6 results out of 315)

origin: sharispe/slib

/**
 *
 * @param conf
 * @throws SLIB_Ex_Critic
 */
public FilterGraph_GAF2(Conf conf) throws SLIB_Ex_Critic {
  super(conf);
  String taxids = (String) conf.getParam(FilterGraph_GAF2_cst.TAXONS_IDS);
  String ecids = (String) conf.getParam(FilterGraph_GAF2_cst.REMOVE_EC);
  if (taxids != null) {
    addTaxons(Arrays.asList(taxids.split(",")));
  }
  if (ecids != null) {
    addECtoExclude(Arrays.asList(ecids.split(",")));
  }
}
origin: com.github.sharispe/slib-graph-io

logger.info("Filtering according to filter " + filter.getId() + "\ttype" + filter.getType());
taxons = filter.getTaxons();
excludedEC = filter.getExcludedEC();
origin: com.github.sharispe/slib-tools-module

/**
 *
 * @param gconf
 * @return a filter
 * @throws SLIB_Ex_Critic
 */
public static Filter buildFilter(Conf gconf) throws SLIB_Ex_Critic {
  Filter f = null;
  String id = (String) gconf.getParam(XmlTags.ID_ATTR);
  String type = (String) gconf.getParam(XmlTags.TYPE_ATTR);
  if (id == null) {
    Util.error("Missing " + XmlTags.ID_ATTR + " in a filter specification");
  }
  if (type == null) {
    Util.error("Missing " + XmlTags.TYPE_ATTR + " in a filter specification");
  }
  if (!supportType(type)) {
    Util.error("Unsupported Filter type " + type + " found in filter '" + id + "' specification");
  }
  if (type.equals(FilterGraph_GAF2_cst.TYPE)) {
    f = new FilterGraph_GAF2(gconf);
  } else if (type.equals(FilterGraph_Metrics_cst.TYPE)) {
    f = new FilterGraph_Metrics(gconf);
  } else // do not pass 
  {
    throw new UnsupportedOperationException("Sorry, filter is not taking into account, please repor the issue");
  }
  return f;
}
origin: sharispe/slib

logger.info("Filtering according to filter " + filter.getId() + "\ttype" + filter.getType());
taxons = filter.getTaxons();
excludedEC = filter.getExcludedEC();
origin: sharispe/slib

/**
 *
 * @param gconf
 * @return a filter
 * @throws SLIB_Ex_Critic
 */
public static Filter buildFilter(Conf gconf) throws SLIB_Ex_Critic {
  Filter f = null;
  String id = (String) gconf.getParam(XmlTags.ID_ATTR);
  String type = (String) gconf.getParam(XmlTags.TYPE_ATTR);
  if (id == null) {
    Util.error("Missing " + XmlTags.ID_ATTR + " in a filter specification");
  }
  if (type == null) {
    Util.error("Missing " + XmlTags.TYPE_ATTR + " in a filter specification");
  }
  if (!supportType(type)) {
    Util.error("Unsupported Filter type " + type + " found in filter '" + id + "' specification");
  }
  if (type.equals(FilterGraph_GAF2_cst.TYPE)) {
    f = new FilterGraph_GAF2(gconf);
  } else if (type.equals(FilterGraph_Metrics_cst.TYPE)) {
    f = new FilterGraph_Metrics(gconf);
  } else // do not pass 
  {
    throw new UnsupportedOperationException("Sorry, filter is not taking into account, please repor the issue");
  }
  return f;
}
origin: com.github.sharispe/slib-graph-io

/**
 *
 * @param conf
 * @throws SLIB_Ex_Critic
 */
public FilterGraph_GAF2(Conf conf) throws SLIB_Ex_Critic {
  super(conf);
  String taxids = (String) conf.getParam(FilterGraph_GAF2_cst.TAXONS_IDS);
  String ecids = (String) conf.getParam(FilterGraph_GAF2_cst.REMOVE_EC);
  if (taxids != null) {
    addTaxons(Arrays.asList(taxids.split(",")));
  }
  if (ecids != null) {
    addECtoExclude(Arrays.asList(ecids.split(",")));
  }
}
slib.graph.io.loader.utils.filter.graph.gaf2FilterGraph_GAF2

Most used methods

  • <init>
  • addECtoExclude
  • addTaxons
  • getExcludedEC
  • getId
  • getTaxons
  • getType

Popular in Java

  • Creating JSON documents from java classes using gson
  • getResourceAsStream (ClassLoader)
  • startActivity (Activity)
  • onCreateOptionsMenu (Activity)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Collectors (java.util.stream)
  • JFileChooser (javax.swing)
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now