/** * It takes an interactions Collection and retrieves the ACs for the interactions that have a NucleicAcid or * SmallMolecule as component. * This is used in case psi version is PSI 1.0 as it does not allow Nucleic Acid as Interaction's participant. * @param interactions Collection of interactions * @return a list with the ACs which should be filtered */ public static List<String> filterInteractions(Collection<Interaction> interactions){ List<String> filteredAcs = new ArrayList<String>(); for (Interaction interaction : interactions) { if ( InteractionUtils.containsNonProteinInteractors(interaction) || InteractionUtils.isSelfInteraction(interaction) || InteractionUtils.isUnaryInteraction( interaction ) ) { filteredAcs.add(interaction.getAc()); } } return filteredAcs; }
/** * It takes an interactions Collection and retrieves the ACs for the interactions that have a NucleicAcid or * SmallMolecule as component. * This is used in case psi version is PSI 1.0 as it does not allow Nucleic Acid as Interaction's participant. * @param interactions Collection of interactions * @return a list with the ACs which should be filtered */ public static List<String> filterInteractions(Collection<Interaction> interactions){ List<String> filteredAcs = new ArrayList<String>(); for (Interaction interaction : interactions) { if ( InteractionUtils.containsNonProteinInteractors(interaction) || InteractionUtils.isSelfInteraction(interaction) || InteractionUtils.isUnaryInteraction( interaction ) ) { filteredAcs.add(interaction.getAc()); } } return filteredAcs; }
/** * It takes an interactions Collection and retrieves the ACs for the interactions that have a NucleicAcid or * SmallMolecule as component. * This is used in case psi version is PSI 1.0 as it does not allow Nucleic Acid as Interaction's participant. * @param interactions Collection of interactions * @return a list with the ACs which should be filtered */ public static List<String> filterInteractions(Collection<Interaction> interactions){ List<String> filteredAcs = new ArrayList<String>(); for (Interaction interaction : interactions) { if ( InteractionUtils.containsNonProteinInteractors(interaction) || InteractionUtils.isSelfInteraction(interaction) || InteractionUtils.isUnaryInteraction( interaction ) ) { filteredAcs.add(interaction.getAc()); } } return filteredAcs; }