[Biojava-l] Need Help
Goh khee Teck
kheeteck at msn.com
Fri Oct 7 00:30:11 EDT 2005
Hi..
Anybody know how to retrieve the annotation property
"ORIGIN"
My code look like this
while(sequences.hasNext()){
try {
seq = sequences.nextSequence();
//Annotation
Annotation anno = seq.getAnnotation();
//print each key value pair
for (Iterator i = anno.keys().iterator(); i.hasNext();
) {
Object key = i.next();
System.out.println(key +" : "+ anno.getProperty(key));
}//for
}//while
It print out the value for each annotation key but for
ORIGIN, there is nothing.
ORIGIN FOR A typical genbank file SCU49845
looks like
ORIGIN
1 gatcctccat atacaacggt atctccacct caggtttaga tctcaacaac ggaaccattg
61 ccgacatgag acagttaggt atcgtcgaga gttacaagct aaaacgagca gtagtcagct
121 ctgcatctga agccgctgaa gttctactaa gggtggataa catcatccgt gcaagaccaa
181 gaaccgccaa tagacaacat atgtaacata tttaggatat acctcgaaaa taataaaccg
241 ccacactgtc attattataa ttagaaacag aacgcaaaaa ttatccacta tataattcaa
301 agacgcgaaa aaaaaagaac aacgcgtcat agaacttttg gcaattcgcg tcacaaataa
361 attttggcaa cttatgtttc ctcttcgagc agtactcgag ccctgtctca agaatgtaat
421 aatacccatc gtaggtatgg ttaaagatag catctccaca acctcaaagc tccttgccga
481 gagtcgccct cctttgtcga gtaattttca cttttcatat gagaacttat tttcttattc
541 tttactctca catcctgtag tgattgacac tgcaacagcc accatcacta gaagaacaga
601 acaattactt aatagaaaaa ttatatcttc ctcgaaacga tttcctgctt ccaacatcta
661 cgtatatcaa gaagcattca cttaccatga cacagcttca gatttcatta ttgctgacag
721 ctactatatc actactccat ctagtagtgg ccacgcccta tgaggcatat cctatcggaa
Regards
KheeTeck
_________________________________________________________________
Download MSN Messenger emoticons and display pictures.
http://ilovemessenger.msn.com/?mkt=en-sg
More information about the Biojava-l
mailing list