uk.ac.ebi.intact.model.Feature.addRange()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(4.5k)|赞(0)|评价(0)|浏览(172)

本文整理了Java中uk.ac.ebi.intact.model.Feature.addRange()方法的一些代码示例,展示了Feature.addRange()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Feature.addRange()方法的具体详情如下:
包路径:uk.ac.ebi.intact.model.Feature
类名称:Feature
方法名:addRange

Feature.addRange介绍

[英]Adds a new Range object to a Feature instance. NOte that if the Range is already present then it will not be added again.
[中]将新范围对象添加到要素实例。请注意,如果该范围已存在,则不会再次添加该范围。

代码示例

代码示例来源:origin: uk.ac.ebi.intact.core/intact-core

/**
  * This creates a stable (non-random) interaction
  */
 public Interaction createDeterministicInteraction() {
   Interaction interaction = createInteraction("fooprey-barbait",
                         createDeterministicProtein("A2", "barbait"),
                         createDeterministicProtein("A1", "fooprey"),
                         createDeterministicExperiment());
   interaction.getAnnotations().add(createAnnotation("This is an annotation", CvTopic.COMMENT_MI_REF, CvTopic.COMMENT));
   CvFeatureType featureType = createCvObject(CvFeatureType.class, CvFeatureType.EXPERIMENTAL_FEATURE_MI_REF, CvFeatureType.EXPERIMENTAL_FEATURE);
   Feature feature = createFeature("feature1", featureType);
   feature.setComponent(null);
   Range range = createRange(1, 1, 5, 5);
   feature.addRange(range);
   interaction.getComponents().iterator().next().addBindingDomain(feature);
//       interaction.getComponents().iterator().next().addComponentParameter(createDeterministicComponentParameter());
//       interaction.addXref(createPrimaryReferenceXref( interaction , "testreference"));
   interaction.addConfidence( createDeterministicConfidence());
   interaction.addParameter( createDeterministicInteractionParameter() );
   return interaction;
 }

代码示例来源:origin: uk.ac.ebi.intact.core/intact-core-readonly

/**
  * This creates a stable (non-random) interaction
  */
 public Interaction createDeterministicInteraction() {
   Interaction interaction = createInteraction("fooprey-barbait",
                         createDeterministicProtein("A2", "barbait"),
                         createDeterministicProtein("A1", "fooprey"),
                         createDeterministicExperiment());
   interaction.getAnnotations().add(createAnnotation("This is an annotation", CvTopic.COMMENT_MI_REF, CvTopic.COMMENT));
   CvFeatureType featureType = createCvObject(CvFeatureType.class, CvFeatureType.EXPERIMENTAL_FEATURE_MI_REF, CvFeatureType.EXPERIMENTAL_FEATURE);
   Feature feature = createFeature("feature1", featureType);
   feature.setComponent(null);
   Range range = createRange(1, 1, 5, 5);
   feature.addRange(range);
   interaction.getComponents().iterator().next().addBindingDomain(feature);
//       interaction.getComponents().iterator().next().addComponentParameter(createDeterministicComponentParameter());
//       interaction.addXref(createPrimaryReferenceXref( interaction , "testreference"));
   interaction.addConfidence( createDeterministicConfidence());
   interaction.addParameter( createDeterministicInteractionParameter() );
   return interaction;
 }

代码示例来源:origin: uk.ac.ebi.intact.dataexchange.psimi/intact-psixml-converters

feature.addRange(range);

代码示例来源:origin: uk.ac.ebi.intact.core/intact-core-readonly

public Feature cloneFeature(Feature feature) throws IntactClonerException {
  if (feature == null) return null;
  Feature clone = new Feature();
  clonerManager.addClone(feature, clone);
  clone.setOwner(clone(feature.getOwner()));
  clone.setShortLabel(feature.getShortLabel());
  clone.setCvFeatureType(clone(feature.getCvFeatureType()));
  clone.setCvFeatureIdentification(clone(feature.getCvFeatureIdentification()));
  if (isCollectionClonable(feature.getRanges())) {
    Collection<Range> ranges = IntactCore.ensureInitializedRanges(feature);
    for (Range range : ranges) {
      clone.addRange(clone(range));
    }
  }
  clone.setComponent(clone(feature.getComponent()));
  return clone;
}

代码示例来源:origin: uk.ac.ebi.intact.core/intact-core

public Feature cloneFeature(Feature feature) throws IntactClonerException {
  if (feature == null) return null;
  Feature clone = new Feature();
  clonerManager.addClone(feature, clone);
  clone.setOwner(clone(feature.getOwner()));
  clone.setShortLabel(feature.getShortLabel());
  clone.setCvFeatureType(clone(feature.getCvFeatureType()));
  clone.setCvFeatureIdentification(clone(feature.getCvFeatureIdentification()));
  if (isCollectionClonable(feature.getRanges())) {
    Collection<Range> ranges = IntactCore.ensureInitializedRanges(feature);
    for (Range range : ranges) {
      clone.addRange(clone(range));
    }
  }
  clone.setComponent(clone(feature.getComponent()));
  return clone;
}

代码示例来源:origin: uk.ac.ebi.intact.dataexchange.psimi.legacy/data-conversion

feature.addRange( range );

代码示例来源:origin: uk.ac.ebi.intact.util/data-conversion

feature.addRange( range );

代码示例来源:origin: uk.ac.ebi.intact.app/data-conversion

feature.addRange( range );

相关文章