@@ -0,0 +1,1797 @@
+package das;%0A%0Aimport org.biojava.bio.*;%0Aimport org.biojava.bio.seq.*;%0Aimport org.biojava.bio.seq.db.*;%0Aimport org.biojava.bio.symbol.*;%0Aimport org.biojava.bio.program.das.*;%0A%0Aimport java.net.*;%0Aimport java.io.*;%0Aimport java.util.*;%0A%0Apublic class TestDASG %7B%0A    public static void main(String%5B%5D args) throws Exception %7B%0A%09if (args.length != 2)%0A%09    throw new Exception(%22java das.TestDAS %3Curl%3E %3Cseq%3E%22);%0A%09String dbURLString = args%5B0%5D;%0A%09String seqName = args%5B1%5D;%0A%0A%09URL dbURL = new URL(dbURLString);%0A%09%0A%09DASSequenceDB dasDB = new DASSequenceDB(dbURL);%0A%09//  System.out.println(%22Top-level entry points:%22);%0A//  %09Set ids = dasDB.ids();%0A//  %09for (Iterator i = ids.iterator(); i.hasNext(); ) %7B%0A//  %09    System.out.println(i.next().toString());%0A//  %09%7D%0A%0A%09DASSequence dasSeq = (DASSequence) dasDB.getSequence(seqName);%0A%09// dasSeq.addAnnotationSource(annoURL);%0A%09// dasSeq.addAnnotationSource(miscURL);%0A%09System.out.println(%22Length: %22 + dasSeq.length());%0A%09System.out.println(%221st 10 bases: %22 + dasSeq.subStr(1, 10));%0A%0A%09printFeatures(dasSeq, new FeatureFilter.OverlapsLocation(new RangeLocation(12000000, 15000000)), System.out, %22%22);%0A%09// printFeatures(dasSeq, System.out, %22%22);%0A    %7D%0A%0A    public static void printFeatures(FeatureHolder fh, %0A%09%09%09%09     FeatureFilter ff,%0A%09%09%09%09     PrintStream pw,%0A%09%09%09%09     String prefix)%0A%09throws Exception%0A    %7B%0A%09for (Iterator i = fh.filter(ff, false).features(); i.hasNext(); ) %7B%0A%09    Feature f = (Feature) i.next();%0A%09    pw.print(prefix);%0A%09    pw.print(f.getType());%0A%09    pw.print(%22 at %22);%0A%09    pw.print(f.getLocation().toString());%0A%09    try %7B%0A%09%09String id = (String) f.getAnnotation().getProperty(DASSequence.PROPERTY_FEATUREID);%0A%09%09pw.print(%22 (%22 + id + ')');%0A%09    %7D catch (NoSuchElementException ex) %7B%0A%09    %7D%0A%09    pw.println();%0A%09    printFeatures(f, ff, pw, prefix + %22    %22);%0A%09%7D%0A    %7D%0A%7D%0A

Test of DAS.