/** * Creates a candiate short label - not taking into account if an interaction with the same name exists in the database * * @param baitShortLabel bait gene name * @param preyShortLabel prey gene name * @return the short label */ protected static String createCandidateShortLabel( String baitShortLabel, String preyShortLabel ) { return createCandidateShortLabel( baitShortLabel, preyShortLabel, null ); }
/** * Creates a candiate short label - not taking into account if an interaction with the same name exists in the database * * @param baitShortLabel bait gene name * @param preyShortLabel prey gene name * * @return the short label */ protected static String createCandidateShortLabel(String baitShortLabel, String preyShortLabel) { return createCandidateShortLabel(baitShortLabel, preyShortLabel, null); }
/** * Creates a candiate short label - not taking into account if an interaction with the same name exists in the database * * @param baitShortLabel bait gene name * @param preyShortLabel prey gene name * @return the short label */ protected static String createCandidateShortLabel( String baitShortLabel, String preyShortLabel ) { return createCandidateShortLabel( baitShortLabel, preyShortLabel, null ); }
/** * Creates a shortLabel based on the participants of an interaction - NOT in sync with the database * (when interactions are persisted the short label needs to be in sync with the database. If there are * existing interactions with the same participants, the short label would be the same, so a prefix * with a number should be added) * * @param interaction the interaction used to calculate the shortlabel * @return the short label * @see uk.ac.ebi.intact.model.util.InteractionShortLabelGenerator * @since 1.6 */ public static String calculateShortLabel( final Interaction interaction ) { return InteractionShortLabelGenerator.createCandidateShortLabel( interaction ); }
/** * Creates a shortLabel based on the participants of an interaction - NOT in sync with the database * (when interactions are persisted the short label needs to be in sync with the database. If there are * existing interactions with the same participants, the short label would be the same, so a prefix * with a number should be added) * * @param interaction the interaction used to calculate the shortlabel * @return the short label * @see uk.ac.ebi.intact.model.util.InteractionShortLabelGenerator * @since 1.6 */ public static String calculateShortLabel(final Interaction interaction) { return InteractionShortLabelGenerator.createCandidateShortLabel(interaction); }
/** * Creates a shortLabel based on the participants of an interaction - NOT in sync with the database * (when interactions are persisted the short label needs to be in sync with the database. If there are * existing interactions with the same participants, the short label would be the same, so a prefix * with a number should be added) * * @param interaction the interaction used to calculate the shortlabel * @return the short label * @see uk.ac.ebi.intact.model.util.InteractionShortLabelGenerator * @since 1.6 */ public static String calculateShortLabel(final Interaction interaction) { return InteractionShortLabelGenerator.createCandidateShortLabel(interaction); }
String shortLabel2 = getLabel(components.get(1)); return createCandidateShortLabel( shortLabel1, shortLabel2 );
String shortLabel2 = getLabel(components.get(1)); return createCandidateShortLabel( shortLabel1, shortLabel2 );
String candidateShortLabel = createCandidateShortLabel(baitShortlabel, preyShortlabel);