Changeset 337 for trunk/org.bridgedb/src/org/bridgedb/IDMapperStack.java
- Timestamp:
- 04/08/10 11:04:53 (2 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/org.bridgedb/src/org/bridgedb/IDMapperStack.java
r333 r337 18 18 19 19 import java.util.ArrayList; 20 import java.util.Arrays; 20 21 import java.util.Collection; 21 22 import java.util.Collections; … … 438 439 // first round 439 440 Set<Xref> result = new HashSet<Xref>(); 441 Set<DataSource> dsFilter = new HashSet<DataSource>(Arrays.asList(resultDs)); 440 442 for (IDMapper i : gdbs) 441 443 { … … 444 446 // map ref in IDMapper i 445 447 Set<Xref> round1 = i.mapID(ref); 446 result.addAll (round1); 448 449 for (Xref r1 : round1) 450 { 451 if (resultDs.length == 0 || dsFilter.contains(r1.getDataSource())) 452 { 453 result.add (r1); 454 } 455 } 447 456 448 457 // then map the result of that in all IDMappers j (j != i)
