Examples

First make sure dasobert.jar is in your classpath:
export CLASSPATH="$CLASSPATH:$DASODIR/ant-build/dasobert.jar"
Get a reference sequence: Go into
cd $DASODIR/doc/examples/
javac GetSequence.java
java getSequence
which should provide approx the following output:


$ java GetSequence
Apr 19, 2006 3:03:20 PM org.biojava.dasobert.das.SequenceThread retrieveSequence
INFO: requesting sequence from http://www.ebi.ac.uk/das-srv/uniprot/das/aristotle/sequence?segment=P50225
0/10th seconds have passed
1/10th seconds have passed
2/10th seconds have passed
3/10th seconds have passed
4/10th seconds have passed
5/10th seconds have passed
6/10th seconds have passed
7/10th seconds have passed
8/10th seconds have passed
9/10th seconds have passed
10/10th seconds have passed
11/10th seconds have passed
12/10th seconds have passed
13/10th seconds have passed
14/10th seconds have passed
15/10th seconds have passed
16/10th seconds have passed
17/10th seconds have passed
18/10th seconds have passed
>P50225
MELIQDTSRPPLEYVKGVPLIKYFAEALGPLQSFQARPDDLLISTYPKSGTTWVSQILDMIYQGGDLEKCHRAPIFMRVP
FLEFKAPGIPSGMETLKDTPAPRLLKTHLPLALLPQTLLDQKVKVVYVARNAKDVAVSYYHFYHMAKVHPEPGTWDSFLE
KFMVGEVSYGSWYQHVQEWWELSRTHPVLYLFYEDMKENPKREIQKILEFVGRSLPEETVDFMVQHTSFKEMKKNPMTNY
TTVPQEFMDHSISPFMRKGMAGDWKTTFTVAQNERFDADYAEKMAGCSLSFRSEL
19/10th seconds have passed

Proxy configuration

Eventually you need to edit the proxy configuration in the example files.

More examples

more examples are available from $DASODIR/doc/examples/