/** * Gets the next available suffix for a provided shortLabel * * @param shortLabel Can already have a suffix or not. * * @return The next available shortLabel */ public static String nextAvailableShortlabel(String shortLabel) { Integer nextSuffix = calculateNextSuffix(shortLabel); InteractionShortLabel label = new InteractionShortLabel(shortLabel); if (nextSuffix != null) { label.setSuffix(nextSuffix); } return label.getCompleteLabel(); }
/** * Gets the next available suffix for a provided shortLabel * * @param shortLabel Can already have a suffix or not. * @return The next available shortLabel */ public static String nextAvailableShortlabel( String shortLabel ) { Integer nextSuffix = calculateNextSuffix( shortLabel ); InteractionShortLabel label = new InteractionShortLabel( shortLabel ); if ( nextSuffix != null ) { label.setSuffix( nextSuffix ); } return label.getCompleteLabel(); }
public String getCompleteLabel() { return getCompleteLabel(true); }
public String getCompleteLabel() { return getCompleteLabel( true ); }
public String getCompleteLabel() { return getCompleteLabel( true ); }
/** * Gets the next available suffix for a provided shortLabel * * @param shortLabel Can already have a suffix or not. * @return The next available shortLabel */ public static String nextAvailableShortlabel( String shortLabel ) { Integer nextSuffix = calculateNextSuffix( shortLabel ); InteractionShortLabel label = new InteractionShortLabel( shortLabel ); if ( nextSuffix != null ) { label.setSuffix( nextSuffix ); } return label.getCompleteLabel(); }
/** * 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 * @param suffix e.g. "1" * * @return the short label */ protected static String createCandidateShortLabel(String baitShortLabel, String preyShortLabel, Integer suffix) { InteractionShortLabel label = new InteractionShortLabel(baitShortLabel, preyShortLabel, suffix); return label.getCompleteLabel(); }
/** * Creates a candiate short label - not taking into account if an interaction with the same name exists in the database * * @param completeLabel label * @return the short label */ protected static String createCandidateShortLabel( String completeLabel ) throws IllegalLabelFormatException { InteractionShortLabel label = new InteractionShortLabel( completeLabel ); return label.getCompleteLabel(); }
/** * Removes the suffix of a shortLabel * * @param shortLabel a shortLabel with or without suffix * @return the shortlabel without suffix */ protected static String removeSuffix( String shortLabel ) { InteractionShortLabel label = new InteractionShortLabel( shortLabel ); return label.getCompleteLabel( false ); }
/** * 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 * @param suffix e.g. "1" * @return the short label */ protected static String createCandidateShortLabel( String baitShortLabel, String preyShortLabel, Integer suffix ) { InteractionShortLabel label = new InteractionShortLabel( baitShortLabel, preyShortLabel, suffix ); return label.getCompleteLabel(); }
/** * Creates a candiate short label - not taking into account if an interaction with the same name exists in the database * * @param completeLabel label * @return the short label */ protected static String createCandidateShortLabel( String completeLabel ) throws IllegalLabelFormatException { InteractionShortLabel label = new InteractionShortLabel( completeLabel ); return label.getCompleteLabel(); }
/** * 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 * @param suffix e.g. "1" * @return the short label */ protected static String createCandidateShortLabel( String baitShortLabel, String preyShortLabel, Integer suffix ) { InteractionShortLabel label = new InteractionShortLabel( baitShortLabel, preyShortLabel, suffix ); return label.getCompleteLabel(); }
/** * Removes the suffix of a shortLabel * * @param shortLabel a shortLabel with or without suffix * * @return the shortlabel without suffix */ protected static String removeSuffix(String shortLabel) { InteractionShortLabel label = new InteractionShortLabel(shortLabel); return label.getCompleteLabel(false); }
/** * Removes the suffix of a shortLabel * * @param shortLabel a shortLabel with or without suffix * @return the shortlabel without suffix */ protected static String removeSuffix( String shortLabel ) { InteractionShortLabel label = new InteractionShortLabel( shortLabel ); return label.getCompleteLabel( false ); }