import jalview.ws.seqfetcher.ASequenceFetcher;
import jalview.ws.seqfetcher.DbSourceProxy;
+import java.util.ArrayList;
import java.util.Enumeration;
import java.util.List;
import java.util.Vector;
System.out.println("Type: " + types[t]);
SequenceI[] prod = jalview.analysis.CrossRef
.findXrefSequences(al.getSequencesArray(), dna,
- types[t]).getSequencesArray();
+ types[t], null, new ArrayList<SequenceI>())
+ .getSequencesArray();
System.out.println("Found "
+ ((prod == null) ? "no" : "" + prod.length)
+ " products");
// sequences.
SequenceI[] seqs = al.getSequencesArray();
Alignment prodal = jalview.analysis.CrossRef.findXrefSequences(
- seqs, dna, null, ds);
+ seqs, dna, null, ds, new ArrayList<SequenceI>());
System.out.println("Found "
+ ((prodal == null) ? "no" : "" + prodal.getHeight())
+ " products");
assertEquals("Expected local reference map to be 3 nucleotides", dr[0]
.getMap().getWidth(), 3);
AlignmentI sprods = CrossRef.findXrefSequences(
- alsq.getSequencesArray(), true, dr[0].getSource(),
- alsq.getDataset());
+ alsq.getSequencesArray(), true, dr[0].getSource(), alsq,
+ new ArrayList<SequenceI>());
assertNotNull(
"Couldn't recover cross reference sequence from dataset. Was it ever added ?",
sprods);