private static void printBiosource( BioSource bs, CvCellType cellType, CvTissue tissue ) { System.out.println( "Updating biosource: " + bs.getShortLabel() + "(taxid: " + bs.getTaxId() + " | CellType: " + (cellType != null ? cellType.getShortLabel() : "-") + " | Tissue: " + (tissue != null ? tissue.getShortLabel() : "-") + " | #alias: "+ bs.getAliases().size() +")" ); }
CvAliasType synType = IntactContext.getCurrentInstance().getDaoFactory().getCvObjectDao(CvAliasType.class).getByPsiMiRef(CvAliasType.SYNONYM_MI_REF); for (String syn : taxTerm.getSynonyms()){ bs.getAliases().add(new BioSourceAlias(IntactContext.getCurrentInstance().getInstitution(), bs, synType, syn));
CvAliasType synType = IntactContext.getCurrentInstance().getDaoFactory().getCvObjectDao(CvAliasType.class).getByPsiMiRef(CvAliasType.SYNONYM_MI_REF); for (String syn : taxTerm.getSynonyms()){ bs.getAliases().add(new BioSourceAlias(IntactContext.getCurrentInstance().getInstitution(), bs, synType, syn));
bs.getAliases().clear(); if( ! taxon.getSynonyms().isEmpty() ) {