Codota Logo
AnnotatedObjectUtils.searchXrefs
Code IndexAdd Codota to your IDE (free)

How to use
searchXrefs
method
in
uk.ac.ebi.intact.model.util.AnnotatedObjectUtils

Best Java code snippets using uk.ac.ebi.intact.model.util.AnnotatedObjectUtils.searchXrefs (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: uk.ac.ebi.intact.core/intact-core

public static <X extends Xref> X getPsiMiIdentityXref(AnnotatedObject<X, ?> annotatedObject) {
  if (annotatedObject == null) {
    throw new NullPointerException("annotatedObject should not be null");
  }
  X psiMiXref = null;
  Collection<X> identityXrefs = AnnotatedObjectUtils.searchXrefs(annotatedObject, CvDatabase.PSI_MI_MI_REF, CvXrefQualifier.IDENTITY_MI_REF);
  if (!identityXrefs.isEmpty()) {
    psiMiXref = identityXrefs.iterator().next();
  }
  return psiMiXref;
}
origin: uk.ac.ebi.intact.core/intact-core

if (log.isDebugEnabled()) log.debug("Populating identifier for: "+cvObject.getShortLabel());
Collection<CvObjectXref> miIdXrefs = AnnotatedObjectUtils.searchXrefs(cvObject, CvDatabase.PSI_MI_MI_REF, CvXrefQualifier.IDENTITY_MI_REF);
origin: uk.ac.ebi.intact.core/intact-core-readonly

public static <X extends Xref> X getPsiMiIdentityXref(AnnotatedObject<X, ?> annotatedObject) {
  if (annotatedObject == null) {
    throw new NullPointerException("annotatedObject should not be null");
  }
  X psiMiXref = null;
  Collection<X> identityXrefs = AnnotatedObjectUtils.searchXrefs(annotatedObject, CvDatabase.PSI_MI_MI_REF, CvXrefQualifier.IDENTITY_MI_REF);
  if (!identityXrefs.isEmpty()) {
    psiMiXref = identityXrefs.iterator().next();
  }
  return psiMiXref;
}
origin: uk.ac.ebi.intact.core/intact-core-readonly

listOfXrefLists.add(searchXrefs(ao, xrefFilter));
origin: uk.ac.ebi.intact.core/intact-core

listOfXrefLists.add(searchXrefs(ao, xrefFilter));
origin: uk.ac.ebi.intact.core/intact-core

/**
 * Search for all Xrefs having Xref with the given CvDatabase.
 *
 * @param ao the non null AnnotatedObject to search on.
 * @param db the non null CvDatabase filter.
 * @return a non null Collection of Xref, may be empty.
 */
public static Collection<Xref> searchXrefs(AnnotatedObject ao, CvDatabase db) {
  if (ao == null) {
    throw new NullPointerException("AnnotatedObject must not be null.");
  }
  if (db == null) {
    throw new NullPointerException("CvDatabase must not be null.");
  }
  CvObjectFilterGroup cvFilterGroup = new CvObjectFilterGroup();
  cvFilterGroup.addIncludedCvObject(db);
  return searchXrefs(ao, new XrefCvFilter(cvFilterGroup));
}
origin: uk.ac.ebi.intact.core/intact-core-readonly

/**
 * Search for all Xrefs having Xref with the given CvDatabase.
 *
 * @param ao the non null AnnotatedObject to search on.
 * @param db the non null CvDatabase filter.
 * @return a non null Collection of Xref, may be empty.
 */
public static Collection<Xref> searchXrefs(AnnotatedObject ao, CvDatabase db) {
  if (ao == null) {
    throw new NullPointerException("AnnotatedObject must not be null.");
  }
  if (db == null) {
    throw new NullPointerException("CvDatabase must not be null.");
  }
  CvObjectFilterGroup cvFilterGroup = new CvObjectFilterGroup();
  cvFilterGroup.addIncludedCvObject(db);
  return searchXrefs(ao, new XrefCvFilter(cvFilterGroup));
}
origin: uk.ac.ebi.intact.core/intact-core-readonly

/**
 * Search for all Xrefs having Xref with the given CvDatabase MI.
 *
 * @param ao   the non null AnnotatedObject to search on.
 * @param dbMi the non null CvDatabase filter.
 * @return a non null Collection of Xref, may be empty.
 */
public static <X extends Xref> Collection<X> searchXrefsByDatabase(AnnotatedObject<X, ?> ao, String dbMi) {
  if (ao == null) {
    throw new NullPointerException("AnnotatedObject must not be null.");
  }
  if (dbMi == null) {
    throw new NullPointerException("dbMi must not be null.");
  }
  CvObjectFilterGroup cvFilterGroup = new CvObjectFilterGroup();
  cvFilterGroup.addIncludedIdentifier(dbMi);
  return searchXrefs(ao, new XrefCvFilter(cvFilterGroup));
}
origin: uk.ac.ebi.intact.core/intact-core

/**
 * Search for all Xrefs having Xref with the given CvDatabase MI.
 *
 * @param ao   the non null AnnotatedObject to search on.
 * @param dbMi the non null CvDatabase filter.
 * @return a non null Collection of Xref, may be empty.
 */
public static <X extends Xref> Collection<X> searchXrefsByDatabase(AnnotatedObject<X, ?> ao, String dbMi) {
  if (ao == null) {
    throw new NullPointerException("AnnotatedObject must not be null.");
  }
  if (dbMi == null) {
    throw new NullPointerException("dbMi must not be null.");
  }
  CvObjectFilterGroup cvFilterGroup = new CvObjectFilterGroup();
  cvFilterGroup.addIncludedIdentifier(dbMi);
  return searchXrefs(ao, new XrefCvFilter(cvFilterGroup));
}
origin: uk.ac.ebi.intact.core/intact-core

/**
 * Search for all Xrefs having Xref with the given CvXrefQualifier.
 *
 * @param ao          the non null AnnotatedObject to search on.
 * @param qualifierMi the non null CvXrefQualifier filter.
 * @return a non null Collection of Xref, may be empty.
 */
public static <X extends Xref> Collection<X> searchXrefsByQualifier(AnnotatedObject<X, ?> ao, String qualifierMi) {
  if (ao == null) {
    throw new NullPointerException("AnnotatedObject must not be null.");
  }
  if (qualifierMi == null) {
    throw new NullPointerException("qualifierMi must not be null.");
  }
  CvObjectFilterGroup cvFilterGroup = new CvObjectFilterGroup();
  cvFilterGroup.addIncludedIdentifier(qualifierMi);
  return searchXrefs(ao, new XrefCvFilter(new CvObjectFilterGroup(), cvFilterGroup));
}
origin: uk.ac.ebi.intact.core/intact-core-readonly

/**
 * Search for all Xrefs having Xref with the given CvXrefQualifier.
 *
 * @param ao          the non null AnnotatedObject to search on.
 * @param qualifierMi the non null CvXrefQualifier filter.
 * @return a non null Collection of Xref, may be empty.
 */
public static <X extends Xref> Collection<X> searchXrefsByQualifier(AnnotatedObject<X, ?> ao, String qualifierMi) {
  if (ao == null) {
    throw new NullPointerException("AnnotatedObject must not be null.");
  }
  if (qualifierMi == null) {
    throw new NullPointerException("qualifierMi must not be null.");
  }
  CvObjectFilterGroup cvFilterGroup = new CvObjectFilterGroup();
  cvFilterGroup.addIncludedIdentifier(qualifierMi);
  return searchXrefs(ao, new XrefCvFilter(new CvObjectFilterGroup(), cvFilterGroup));
}
origin: uk.ac.ebi.intact/intact-core

Collection<Xref> xrefs = AnnotatedObjectUtils.searchXrefs( spliceVariant, isoformParent );
origin: uk.ac.ebi.intact.core/intact-core

/**
 * Search for all Xrefs having Xref with both the given CvDatabase and CvXrefQualifier MIs.
 *
 * @param ao          the non null AnnotatedObject to search on.
 * @param dbMi        the non null CvDatabase filter.
 * @param qualifierMi the non null CvXrefQualifier filter.
 * @return a non null Collection of Xref, may be empty.
 */
public static <X extends Xref> Collection<X> searchXrefs(AnnotatedObject<X, ?> ao, String dbMi, String qualifierMi) {
  if (ao == null) {
    throw new NullPointerException("AnnotatedObject must not be null.");
  }
  if (dbMi == null) {
    throw new NullPointerException("dbMi must not be null.");
  }
  CvObjectFilterGroup databaseCvFilterGroup = new CvObjectFilterGroup();
  databaseCvFilterGroup.addIncludedIdentifier(dbMi);
  CvObjectFilterGroup qualifierCvFilterGroup = new CvObjectFilterGroup();
  qualifierCvFilterGroup.addIncludedIdentifier(qualifierMi);
  return searchXrefs(ao, new XrefCvFilter(databaseCvFilterGroup, qualifierCvFilterGroup));
}
origin: uk.ac.ebi.intact.core/intact-core

/**
 * Search for all Xrefs having Xref with the given CvXrefQualifier.
 *
 * @param ao the non null AnnotatedObject to search on.
 * @param qu the non null CvXrefQualifier filter.
 * @return a non null Collection of Xref, may be empty.
 */
public static Collection<Xref> searchXrefs(AnnotatedObject ao, CvXrefQualifier qu) {
  if (ao == null) {
    throw new NullPointerException("AnnotatedObject must not be null.");
  }
  if (qu == null) {
    throw new NullPointerException("CvXrefQualifier must not be null.");
  }
  CvObjectFilterGroup cvFilterGroup = new CvObjectFilterGroup();
  cvFilterGroup.addIncludedCvObject(qu);
  return searchXrefs(ao, new XrefCvFilter(new CvObjectFilterGroup(), cvFilterGroup));
}
origin: uk.ac.ebi.intact.core/intact-core

/**
 * Search for all Xrefs having Xref with both the given CvDatabase and CvXrefQualifier.
 *
 * @param ao the non null AnnotatedObject to search on.
 * @param db the non null CvDatabase filter.
 * @param qu the non null CvXrefQualifier filter.
 * @return a non null Collection of Xref, may be empty.
 */
public static Collection<Xref> searchXrefs(AnnotatedObject ao, CvDatabase db, CvXrefQualifier qu) {
  if (ao == null) {
    throw new NullPointerException("AnnotatedObject must not be null.");
  }
  if (db == null) {
    throw new NullPointerException("CvDatabase must not be null.");
  }
  if (qu == null) {
    throw new NullPointerException("CvXrefQualifier must not be null.");
  }
  CvObjectFilterGroup cvFilterGroup = new CvObjectFilterGroup();
  cvFilterGroup.addIncludedCvObject(db);
  CvObjectFilterGroup qualifierCvFilterGroup = new CvObjectFilterGroup();
  qualifierCvFilterGroup.addIncludedCvObject(qu);
  return searchXrefs(ao, new XrefCvFilter(cvFilterGroup, qualifierCvFilterGroup));
}
origin: uk.ac.ebi.intact.core/intact-core-readonly

/**
 * Search for all Xrefs having Xref with the given CvXrefQualifier.
 *
 * @param ao the non null AnnotatedObject to search on.
 * @param qu the non null CvXrefQualifier filter.
 * @return a non null Collection of Xref, may be empty.
 */
public static Collection<Xref> searchXrefs(AnnotatedObject ao, CvXrefQualifier qu) {
  if (ao == null) {
    throw new NullPointerException("AnnotatedObject must not be null.");
  }
  if (qu == null) {
    throw new NullPointerException("CvXrefQualifier must not be null.");
  }
  CvObjectFilterGroup cvFilterGroup = new CvObjectFilterGroup();
  cvFilterGroup.addIncludedCvObject(qu);
  return searchXrefs(ao, new XrefCvFilter(new CvObjectFilterGroup(), cvFilterGroup));
}
origin: uk.ac.ebi.intact.core/intact-core-readonly

/**
 * Search for all Xrefs having Xref with both the given CvDatabase and CvXrefQualifier.
 *
 * @param ao the non null AnnotatedObject to search on.
 * @param db the non null CvDatabase filter.
 * @param qu the non null CvXrefQualifier filter.
 * @return a non null Collection of Xref, may be empty.
 */
public static Collection<Xref> searchXrefs(AnnotatedObject ao, CvDatabase db, CvXrefQualifier qu) {
  if (ao == null) {
    throw new NullPointerException("AnnotatedObject must not be null.");
  }
  if (db == null) {
    throw new NullPointerException("CvDatabase must not be null.");
  }
  if (qu == null) {
    throw new NullPointerException("CvXrefQualifier must not be null.");
  }
  CvObjectFilterGroup cvFilterGroup = new CvObjectFilterGroup();
  cvFilterGroup.addIncludedCvObject(db);
  CvObjectFilterGroup qualifierCvFilterGroup = new CvObjectFilterGroup();
  qualifierCvFilterGroup.addIncludedCvObject(qu);
  return searchXrefs(ao, new XrefCvFilter(cvFilterGroup, qualifierCvFilterGroup));
}
origin: uk.ac.ebi.intact.core/intact-core-readonly

/**
 * Search for all Xrefs having Xref with both the given CvDatabase and CvXrefQualifier MIs.
 *
 * @param ao          the non null AnnotatedObject to search on.
 * @param dbMi        the non null CvDatabase filter.
 * @param qualifierMi the non null CvXrefQualifier filter.
 * @return a non null Collection of Xref, may be empty.
 */
public static <X extends Xref> Collection<X> searchXrefs(AnnotatedObject<X, ?> ao, String dbMi, String qualifierMi) {
  if (ao == null) {
    throw new NullPointerException("AnnotatedObject must not be null.");
  }
  if (dbMi == null) {
    throw new NullPointerException("dbMi must not be null.");
  }
  CvObjectFilterGroup databaseCvFilterGroup = new CvObjectFilterGroup();
  databaseCvFilterGroup.addIncludedIdentifier(dbMi);
  CvObjectFilterGroup qualifierCvFilterGroup = new CvObjectFilterGroup();
  qualifierCvFilterGroup.addIncludedIdentifier(qualifierMi);
  return searchXrefs(ao, new XrefCvFilter(databaseCvFilterGroup, qualifierCvFilterGroup));
}
origin: uk.ac.ebi.intact.core/intact-core-readonly

/**
 * Get the Xref identities for an interactor, allowing the exclude the identities that come from the IMEx partners (intact, mint and dip)
 *
 * @param interactor
 * @param excludeIdentitiesFromImexPartners
 *
 * @return
 */
public static List<InteractorXref> getIdentityXrefs(Interactor interactor, boolean excludeIdentitiesFromImexPartners) {
  CvObjectFilterGroup qualifierFilterGroup = new CvObjectFilterGroup();
  qualifierFilterGroup.addIncludedIdentifier(CvXrefQualifier.IDENTITY_MI_REF);
  CvObjectFilterGroup databaseFilterGroup = new CvObjectFilterGroup();
  if (excludeIdentitiesFromImexPartners) {
    // TODO this has to be maintained in case we get new IMEx partners
    // TODO a work around could be to load the list of MI identities of all institutions present in the repository
    databaseFilterGroup.addExcludedIdentifier(CvDatabase.INTACT_MI_REF);
    databaseFilterGroup.addExcludedIdentifier(CvDatabase.MINT_MI_REF);
    databaseFilterGroup.addExcludedIdentifier(CvDatabase.DIP_MI_REF);
  }
  return AnnotatedObjectUtils.searchXrefs(interactor, new XrefCvFilter(databaseFilterGroup, qualifierFilterGroup));
}
origin: uk.ac.ebi.intact.core/intact-core

/**
 * Get the Xref identities for an interactor, allowing the exclude the identities that come from the IMEx partners (intact, mint and dip)
 *
 * @param interactor
 * @param excludeIdentitiesFromImexPartners
 *
 * @return
 */
public static List<InteractorXref> getIdentityXrefs(Interactor interactor, boolean excludeIdentitiesFromImexPartners) {
  CvObjectFilterGroup qualifierFilterGroup = new CvObjectFilterGroup();
  qualifierFilterGroup.addIncludedIdentifier(CvXrefQualifier.IDENTITY_MI_REF);
  CvObjectFilterGroup databaseFilterGroup = new CvObjectFilterGroup();
  if (excludeIdentitiesFromImexPartners) {
    // TODO this has to be maintained in case we get new IMEx partners
    // TODO a work around could be to load the list of MI identities of all institutions present in the repository
    databaseFilterGroup.addExcludedIdentifier(CvDatabase.INTACT_MI_REF);
    databaseFilterGroup.addExcludedIdentifier(CvDatabase.MINT_MI_REF);
    databaseFilterGroup.addExcludedIdentifier(CvDatabase.DIP_MI_REF);
  }
  return AnnotatedObjectUtils.searchXrefs(interactor, new XrefCvFilter(databaseFilterGroup, qualifierFilterGroup));
}
uk.ac.ebi.intact.model.utilAnnotatedObjectUtilssearchXrefs

Javadoc

Search for all Xrefs having Xref with both the given CvDatabase and CvXrefQualifier MIs.

Popular methods of AnnotatedObjectUtils

  • getAliasClassType
    Gets the generic Xref type for an AnnotatedObject class
  • getXrefClassType
    Gets the generic Xref type for an AnnotatedObject class
  • findAnnotationByTopicMiOrLabel
    Finds an Annotations with a topic that has an MI or label equal to the value provided
  • getParameterizedType
  • prepareShortLabel
    Trims a shortlabel if it is too long to be inserted in the database.
  • areCollectionEqual
    Method to compare Annotation, Xref and Aliases collections
  • containSameAliases
  • containSameAnnotations
  • containSameCollections
    Checks if two given annotated objects contain the same set of annotations, xrefs and aliases
  • containSameXrefs
  • containTheSameXrefs
    Check if the passed annotated objects contain the same set of filtered Xrefs.
  • createUniqueString
    Creates unique strings for Annotations,Xrefs and aliases.
  • containTheSameXrefs,
  • createUniqueString,
  • findParent,
  • isChildrenInitialized,
  • isCvTopicPublic,
  • isNewOrManaged,
  • removeChild,
  • searchXrefsByDatabase,
  • searchXrefsByQualifier

Popular in Java

  • Making http requests using okhttp
  • scheduleAtFixedRate (Timer)
  • onCreateOptionsMenu (Activity)
  • findViewById (Activity)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Set (java.util)
    A collection that contains no duplicate elements. More formally, sets contain no pair of elements e1
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.This exception may include information for locating the er
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now