File tree Expand file tree Collapse file tree
core/src/main/java/org/biojava/bio/seq/db Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -65,7 +65,8 @@ public FetchURL(String databaseName, String format) {
6565 retmode = format ;
6666 } else
6767 if (databaseName .trim ().equalsIgnoreCase ("locuslink" )) {
68- db = "locuslink" ;
68+ throw new IllegalArgumentException ("NCBI LocusLink was replaced by Entrez Gene " +
69+ "in 2005. NCBI no longer provides LocusLink, and has also discontinued its URL redirect service." );
6970 }
7071 }
7172
@@ -76,10 +77,7 @@ public String getbaseURL() {
7677 baseURL = "https://www.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?" ;
7778 } else if (db .equalsIgnoreCase ("Swiss-prot" )) {
7879 baseURL = "http://us.expasy.org/cgi-bin/get-sprot-raw.pl?" ;
79- } else if (db .equalsIgnoreCase ("LocusLink" )) {
80- baseURL = "https://www.ncbi.nlm.nih.gov/LocusLink/LocRpt.cgi?" ;
8180 }
82-
8381 return baseURL ;
8482 }
8583
You can’t perform that action at this time.
0 commit comments