public static Pattern neighborOf ( ) { Pattern p = new Pattern ( SequenceEntityReference . class , "Protein 1" ) ; p . add ( linkedER ( true ) , "Protein 1" , "generic Protein 1" ) ; p . add ( erToPE ( ) , "generic Protein 1" , "SPE1" ) ; p . add ( linkToComplex ( ) , "SPE1" , "PE1" ) ; p . add ( peToInter ( ) , "PE1" , "Inter" ) ; p . add ( interToPE ( ) , "Inter" , "PE2" ) ; p . add ( linkToSpecific ( ) , "PE2" , "SPE2" ) ; p . add ( equal ( false ) , "SPE1" , "SPE2" ) ; p . add ( type ( SequenceEntity . class ) , "SPE2" ) ; p . add ( peToER ( ) , "SPE2" , "generic Protein 2" ) ; p . add ( linkedER ( false ) , "generic Protein 2" , "Protein 2" ) ; p . add ( equal ( false ) , "Protein 1" , "Protein 2" ) ; return p ; }
Constructs a pattern where first and last proteins are related through an interaction . They can be participants or controllers . No limitation .