public static String getSpeciesTaxId(InteractionImpl complex) { if (!complex.getExperiments().isEmpty()) { Experiment exp = complex.getExperiments().iterator().next(); BioSource bioSource = exp.getBioSource(); if (bioSource != null) { return bioSource.getTaxId(); } } return null; }
public static String getSpeciesTaxId(InteractionImpl complex) { if (!complex.getExperiments().isEmpty()) { Experiment exp = complex.getExperiments().iterator().next(); BioSource bioSource = exp.getBioSource(); if (bioSource != null) { return bioSource.getTaxId(); } } return null; }
public static String getSpeciesName(InteractionImpl complex) { if (!complex.getExperiments().isEmpty()) { Experiment exp = complex.getExperiments().iterator().next(); BioSource bioSource = exp.getBioSource(); if (bioSource != null) { return bioSource.getFullName() != null ? bioSource.getFullName() : bioSource.getShortLabel(); } } return null; }
public static String getSpeciesName(InteractionImpl complex) { if (!complex.getExperiments().isEmpty()) { Experiment exp = complex.getExperiments().iterator().next(); BioSource bioSource = exp.getBioSource(); if (bioSource != null) { return bioSource.getFullName() != null ? bioSource.getFullName() : bioSource.getShortLabel(); } } return null; }
Experiment exp = interaction.getExperiments().iterator().next(); CvInteraction detectionMethod = exp.getCvInteraction(); CvInteractionType interactionType = interaction.getCvInteractionType();
Collection<Experiment> experiments = intact.getExperiments(); if (experiments.size() == 1){
experiments = IntactContext.getCurrentInstance().getDaoFactory().getInteractionDao().getByAc(interaction.getAc()).getExperiments(); interaction.setExperiments(experiments); } else {
experiments = IntactContext.getCurrentInstance().getDaoFactory().getInteractionDao().getByAc(interaction.getAc()).getExperiments(); interaction.setExperiments(experiments); } else {