From 6cbe1876d4a5fdd7d5b73e11bf2468fe4e75ce99 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Fri, 8 Apr 2005 15:01:16 +0000 Subject: [PATCH] reads fasta files from uniprot web page --- src/jalview/io/FastaFile.java | 6 ++++++ 1 file changed, 6 insertions(+) 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 ) { -- 1.7.10.2