User 677b9c22ff
19-01-2007 02:36:12
Hi,
is there an plugin option to calculate the given number of aromatic and aliphatic rings of a given molecule - like getAromaticRingCountOfSize(5)
or getAliphaticRingCountOfSize(5)?
Thanks Tobias
(except this one, from the fp example)
is there an plugin option to calculate the given number of aromatic and aliphatic rings of a given molecule - like getAromaticRingCountOfSize(5)
or getAliphaticRingCountOfSize(5)?
Thanks Tobias
(except this one, from the fp example)
Code: |
private boolean isRing( int ringSize ) { int[][] aromRings = arom.getAromRings(); for ( int i = 0; i < aromRings.length; i++ ) { if ( aromRings[ i ].length == ringSize ) { return true; } } int[][] aliphRings = arom.getNonAromRings(); for ( int i = 0; i < aliphRings.length; i++ ) { if ( aliphRings[ i ].length == ringSize ) { return true; } } return false; } |