Skip to content

Commit 7a36714

Browse files
committed
Uniprot has switched to https
1 parent fd4f8ef commit 7a36714

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

biojava-core/src/main/java/org/biojava/nbio/core/sequence/loader/UniprotProxySequenceReader.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ public class UniprotProxySequenceReader<C extends Compound> implements ProxySequ
7676
private static final String TREMBLID_PATTERN = "[A-NR-Z][0-9]([A-Z][A-Z0-9]{2}[0-9]){1,2}";
7777
public static final Pattern UP_AC_PATTERN = Pattern.compile("(" + SPID_PATTERN + "|" + TREMBLID_PATTERN + ")");
7878

79-
private static String uniprotbaseURL = "http://www.uniprot.org"; //"http://pir.uniprot.org";
79+
public static final String DEFAULT_UNIPROT_BASE_URL = "https://www.uniprot.org";
80+
81+
private static String uniprotbaseURL = DEFAULT_UNIPROT_BASE_URL;
8082
private static String uniprotDirectoryCache = null;
8183
private String sequence;
8284
private CompoundSet<C> compoundSet;

biojava-protein-disorder/src/test/java/org/biojava/nbio/ronn/NonstandardProteinCompoundTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ private void testUniprot(String uniprotID) throws CompoundNotFoundException, IOE
8484

8585
}
8686

87-
/** Fetch a protein sequence from the UniProt web site
87+
/**
88+
* Fetch a protein sequence from the UniProt web site
8889
*
8990
* @param uniProtID
9091
* @return a Protein Sequence

0 commit comments

Comments
 (0)