From: amwaterhouse Date: Fri, 8 Apr 2005 15:01:16 +0000 (+0000) Subject: reads fasta files from uniprot web page X-Git-Tag: Release_2_0~454 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=6cbe1876d4a5fdd7d5b73e11bf2468fe4e75ce99;p=jalview.git reads fasta files from uniprot web page --- diff --git a/src/jalview/io/FastaFile.java b/src/jalview/io/FastaFile.java index 586ede6..4c1ba9e 100755 --- a/src/jalview/io/FastaFile.java +++ b/src/jalview/io/FastaFile.java @@ -54,6 +54,12 @@ public class FastaFile extends AlignFile { id = str.nextToken(); id = id.substring(1); + if(id.indexOf("UniProt/Swiss-Prot")>-1) + { + id = id.substring(id.indexOf("UniProt/Swiss-Prot|") + 19); + if(id.indexOf("|")>-1) + id = id.substring(id.indexOf("|") + 1); + } if (id.indexOf("/") > 0 ) {