- final String name = node.getNodeData().getSequence().getName();
- final Matcher matcher1 = identifier_pattern_1.matcher( name );
- final Matcher matcher2 = identifier_pattern_2.matcher( name );
- String group1 = "";
- String group2 = "";
- if ( matcher1.matches() ) {
- group1 = matcher1.group( 1 );
- group2 = matcher1.group( 2 );
- System.out.println( "1 1=" + group1 );
- System.out.println( "1 2=" + group2 );
- }
- if ( matcher2.matches() ) {
- group1 = matcher2.group( 1 );
- group2 = matcher2.group( 2 );
- System.out.println( "2 1=" + group1 );
- System.out.println( "2 2=" + group2 );
- }
- if ( !ForesterUtil.isEmpty( group1 ) && !ForesterUtil.isEmpty( group2 ) ) {
- query = group1 + "%7C" + group2;
+ final Accession acc = AptxUtil.obtainSequenceAccessionFromName( node.getNodeData().getSequence().getName() );
+ if ( acc != null ) {
+ query = acc.getSource() + "%7C" + acc.getValue();