Object o = (Object) iterator.next(); if ( o instanceof ProteinParticipantTag ) { uniprotID = ( (ProteinParticipantTag) o ).getProteinInteractor().getPrimaryXref().getId();
Object o = (Object) iterator.next(); if ( o instanceof ProteinParticipantTag ) { uniprotID = ( (ProteinParticipantTag) o ).getProteinInteractor().getPrimaryXref().getId();
Object o = (Object) iterator.next(); if ( o instanceof ProteinParticipantTag ) { uniprotID = ( (ProteinParticipantTag) o ).getProteinInteractor().getPrimaryXref().getId();
/** * Get an Intact Protein out of a ProteinInteractorTag. * * @param proteinParticipant * * @return the IntAct Protein correcponding to the given ProteinParticipantTag. */ private static ProteinHolder getProtein( final ProteinParticipantTag proteinParticipant ) { final ProteinInteractorTag proteinInteractor = proteinParticipant.getProteinInteractor(); OrganismTag organism = proteinInteractor.getOrganism(); BioSource bioSource = null; if ( organism != null ) { bioSource = OrganismChecker.getBioSource( proteinInteractor.getOrganism() ); } String proteinId = proteinInteractor.getPrimaryXref().getId(); String db = proteinInteractor.getPrimaryXref().getDb(); // System.out.println( "Search interactor (" + proteinInteractor.getShortlabel() + ") from cache(" + // proteinId + ", " + db + ", " + bioSource.getShortLabel() + ")" ); return ProteinInteractorChecker.getProtein( proteinId, db, bioSource ); } }
/** * Get an Intact Protein out of a ProteinInteractorTag. * * @param proteinParticipant * * @return the IntAct Protein correcponding to the given ProteinParticipantTag. */ private static ProteinHolder getProtein( final ProteinParticipantTag proteinParticipant ) { final ProteinInteractorTag proteinInteractor = proteinParticipant.getProteinInteractor(); OrganismTag organism = proteinInteractor.getOrganism(); BioSource bioSource = null; if ( organism != null ) { bioSource = OrganismChecker.getBioSource( proteinInteractor.getOrganism() ); } String proteinId = proteinInteractor.getPrimaryXref().getId(); String db = proteinInteractor.getPrimaryXref().getDb(); // System.out.println( "Search interactor (" + proteinInteractor.getShortlabel() + ") from cache(" + // proteinId + ", " + db + ", " + bioSource.getShortLabel() + ")" ); return ProteinInteractorChecker.getProtein( proteinId, db, bioSource ); } }
/** * Get an Intact Protein out of a ProteinInteractorTag. * * @param proteinParticipant * * @return the IntAct Protein correcponding to the given ProteinParticipantTag. */ private static ProteinHolder getProtein( final ProteinParticipantTag proteinParticipant ) { final ProteinInteractorTag proteinInteractor = proteinParticipant.getProteinInteractor(); OrganismTag organism = proteinInteractor.getOrganism(); BioSource bioSource = null; if ( organism != null ) { bioSource = OrganismChecker.getBioSource( proteinInteractor.getOrganism() ); } String proteinId = proteinInteractor.getPrimaryXref().getId(); String db = proteinInteractor.getPrimaryXref().getDb(); // System.out.println( "Search interactor (" + proteinInteractor.getShortlabel() + ") from cache(" + // proteinId + ", " + db + ", " + bioSource.getShortLabel() + ")" ); return ProteinInteractorChecker.getProtein( proteinId, db, bioSource ); } }
ProteinParticipantTag psiComponent = (ProteinParticipantTag) iterator2.next(); sb.append( NEW_LINE ).append( '[' ); sb.append( psiComponent.getProteinInteractor().getPrimaryXref().getId() ); sb.append( ", " ); sb.append( psiComponent.getRole() );
ProteinParticipantTag psiComponent = (ProteinParticipantTag) iterator2.next(); sb.append( NEW_LINE ).append( '[' ); sb.append( psiComponent.getProteinInteractor().getPrimaryXref().getId() ); sb.append( ", " ); sb.append( psiComponent.getRole() );
String taxid = null; if ( proteinInteractor != null && proteinInteractor.getPrimaryXref() != null ) { uniprotID = proteinInteractor.getPrimaryXref().getId();
String taxid = null; if ( proteinInteractor != null && proteinInteractor.getPrimaryXref() != null ) { uniprotID = proteinInteractor.getPrimaryXref().getId();
String taxid = null; if ( proteinInteractor != null && proteinInteractor.getPrimaryXref() != null ) { uniprotID = proteinInteractor.getPrimaryXref().getId();
String taxid = null; if ( proteinInteractor != null && proteinInteractor.getPrimaryXref() != null ) { uniprotID = proteinInteractor.getPrimaryXref().getId();
String taxid = null; if ( proteinInteractor != null && proteinInteractor.getPrimaryXref() != null ) { uniprotID = proteinInteractor.getPrimaryXref().getId();
String taxid = null; if ( proteinInteractor != null && proteinInteractor.getPrimaryXref() != null ) { uniprotID = proteinInteractor.getPrimaryXref().getId();
String proteinId = proteinInteractor.getPrimaryXref().getId(); String db = proteinInteractor.getPrimaryXref().getDb(); createXref( protein, proteinInteractor.getPrimaryXref(), true );
String proteinId = proteinInteractor.getPrimaryXref().getId(); String db = proteinInteractor.getPrimaryXref().getDb(); createXref( protein, proteinInteractor.getPrimaryXref(), true );
String proteinId = proteinInteractor.getPrimaryXref().getId(); String db = proteinInteractor.getPrimaryXref().getDb(); createXref( protein, proteinInteractor.getPrimaryXref(), true );
final String proteinId = proteinInteractor.getPrimaryXref().getId(); final String db = proteinInteractor.getPrimaryXref().getDb(); final ProteinHolder proteinHolder = ProteinInteractorChecker.getProtein( proteinId, db, bioSource ); final CvComponentRole role = RoleChecker.getCvComponentRole( proteinParticipant.getRole() );
final String proteinId = proteinInteractor.getPrimaryXref().getId(); final String db = proteinInteractor.getPrimaryXref().getDb(); final ProteinHolder proteinHolder = ProteinInteractorChecker.getProtein( proteinId, db, bioSource ); final CvComponentRole role = RoleChecker.getCvComponentRole( proteinParticipant.getRole() );
final String proteinId = proteinInteractor.getPrimaryXref().getId(); final String db = proteinInteractor.getPrimaryXref().getDb(); final ProteinHolder proteinHolder = ProteinInteractorChecker.getProtein( proteinId, db, bioSource ); final CvExperimentalRole expRole = RoleChecker.getCvExperimentalRole( proteinParticipant.getRole() );