reads fasta files from uniprot web page
authoramwaterhouse <Andrew Waterhouse>
Fri, 8 Apr 2005 15:01:16 +0000 (15:01 +0000)
committeramwaterhouse <Andrew Waterhouse>
Fri, 8 Apr 2005 15:01:16 +0000 (15:01 +0000)
src/jalview/io/FastaFile.java

index 586ede6..4c1ba9e 100755 (executable)
@@ -54,6 +54,12 @@ public class FastaFile extends AlignFile {
 \r
            id = str.nextToken();\r
            id = id.substring(1);\r
+           if(id.indexOf("UniProt/Swiss-Prot")>-1)\r
+            {\r
+              id = id.substring(id.indexOf("UniProt/Swiss-Prot|") + 19);\r
+              if(id.indexOf("|")>-1)\r
+                id = id.substring(id.indexOf("|") + 1);\r
+            }\r
 \r
            if (id.indexOf("/") > 0 ) {\r
 \r