git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d932a2e
)
reads fasta files from uniprot web page
author
amwaterhouse
<Andrew Waterhouse>
Fri, 8 Apr 2005 15:01:16 +0000
(15:01 +0000)
committer
amwaterhouse
<Andrew Waterhouse>
Fri, 8 Apr 2005 15:01:16 +0000
(15:01 +0000)
src/jalview/io/FastaFile.java
patch
|
blob
|
history
diff --git
a/src/jalview/io/FastaFile.java
b/src/jalview/io/FastaFile.java
index
586ede6
..
4c1ba9e
100755
(executable)
--- a/
src/jalview/io/FastaFile.java
+++ b/
src/jalview/io/FastaFile.java
@@
-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