boolean direct, boolean dna)\r
{\r
boolean found = false;\r
+ SequenceI[] typer=new SequenceI[1];\r
if (dataset == null)\r
return false;\r
if (dataset.getSequences() == null)\r
}\r
if (nxt != sequenceI && nxt != sequenceI.getDatasetSequence())\r
{\r
+ // check if this is the correct sequence type\r
+ {\r
+ typer[0] = nxt;\r
+ boolean isDna = jalview.util.Comparison.isNucleotide(typer);\r
+ if ((direct && isDna == dna) || (!direct && isDna!=dna))\r
+ {\r
+ // skip this sequence because it is same molecule type\r
+ continue;\r
+ }\r
+ }\r
+\r
// look for direct or indirect references in common\r
DBRefEntry[] poss = null, cands = null;\r
if (direct)\r