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

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

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

Feature.getShortLabel介绍

暂无

代码示例

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

System.out.println( "\t\tSelect an intact feature, shortlabel=" + intactFeature.getShortLabel() );

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

System.out.println( "\t\tSelect an intact feature, shortlabel=" + intactFeature.getShortLabel() );

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

System.out.println( "\t\tSelect an intact feature, shortlabel=" + intactFeature.getShortLabel() );

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

log.debug("\t\t\tFeatures: ");
for (Feature f : c.getBindingDomains()) {
  log.debug("\t\t\t\tFeature: "+f.getShortLabel());

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

protected UniquenessStringBuilder createUniquenessString(Feature feature) {
  if (keyExists(feature)) {
    UniquenessStringBuilder builder = getKey(feature);
    if (builder != null){
      return builder;
    }
    else{
      identityToCrc.remove(System.identityHashCode(feature));
    }
  }
  UniquenessStringBuilder sb = new UniquenessStringBuilder();
  putKey(feature, sb);
  if (feature == null) return sb;
  // short label
  // We need to add the short label for the feature because in mutations in the same amino acid is the only way to
  // distinguish between two features when the AC is not assigned yet.
  sb.append(feature.getShortLabel());
  // feature type
  sb.append(createUniquenessString(feature.getCvFeatureType()));
  // feature identification
  sb.append(createUniquenessString(feature.getCvFeatureIdentification()));
  // ranges
  List<Range> ranges = new ArrayList<Range>(feature.getRanges());
  Collections.sort(ranges, new RangeComparator());
  for (Range range : ranges) {
    sb.append(createUniquenessString(range));
  }
  return sb;
}

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

protected UniquenessStringBuilder createUniquenessString(Feature feature) {
  if (keyExists(feature)) {
    UniquenessStringBuilder builder = getKey(feature);
    if (builder != null){
      return builder;
    }
    else{
      identityToCrc.remove(System.identityHashCode(feature));
    }
  }
  UniquenessStringBuilder sb = new UniquenessStringBuilder();
  putKey(feature, sb);
  if (feature == null) return sb;
  // short label
  // We need to add the short label for the feature because in mutations in the same amino acid is the only way to
  // distinguish between two features when the AC is not assigned yet.
  sb.append(feature.getShortLabel());
  // feature type
  sb.append(createUniquenessString(feature.getCvFeatureType()));
  // feature identification
  sb.append(createUniquenessString(feature.getCvFeatureIdentification()));
  // ranges
  List<Range> ranges = new ArrayList<Range>(feature.getRanges());
  Collections.sort(ranges, new RangeComparator());
  for (Range range : ranges) {
    sb.append(createUniquenessString(range));
  }
  return sb;
}

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

log.error("Feature without feature type " + intactObject.getShortLabel());
log.error("Feature without any ranges : " + intactObject.getShortLabel());

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

log.error("Feature without feature type : " + feature.getShortLabel());
log.error("Feature without any ranges : " + feature.getShortLabel());

代码示例来源: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;
}

相关文章