pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/biojava/biojava/commit/67ca7f20f22cf11488bea52748a5822313daa3a7

ylesheet" href="https://github.githubassets.com/assets/global-d18f184ea1a06a2c.css" /> Fixing phosphosite urls and changing default url timeout to 30s · biojava/biojava@67ca7f2 · GitHub
Skip to content

Commit 67ca7f2

Browse files
committed
Fixing phosphosite urls and changing default url timeout to 30s
1 parent 1bedd9a commit 67ca7f2

3 files changed

Lines changed: 16 additions & 13 deletions

File tree

biojava-modfinder/src/main/java/org/biojava/nbio/phosphosite/Dataset.java

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626

2727
import java.io.*;
2828
import java.net.URL;
29-
import java.nio.channels.FileChannel;
3029
import java.nio.file.Files;
3130
import java.nio.file.StandardCopyOption;
3231
import java.util.ArrayList;
@@ -49,19 +48,19 @@ public class Dataset {
4948

5049
private static final Logger logger = LoggerFactory.getLogger(Dataset.class);
5150

52-
public static final String ACETYLATION = "http://www.phosphosite.org/downloads/Acetylation_site_dataset.gz";
51+
public static final String ACETYLATION = "https://www.phosphosite.org/downloads/Acetylation_site_dataset.gz";
5352

54-
public static final String DISEASE_ASSOC = "http://www.phosphosite.org/downloads/Disease-associated_sites.gz";
53+
public static final String DISEASE_ASSOC = "https://www.phosphosite.org/downloads/Disease-associated_sites.gz";
5554

56-
public static final String METHYLATION = "http://www.phosphosite.org/downloads/Methylation_site_dataset.gz";
55+
public static final String METHYLATION = "https://www.phosphosite.org/downloads/Methylation_site_dataset.gz";
5756

58-
public static final String PHOSPHORYLATION = "http://www.phosphosite.org/downloads/Phosphorylation_site_dataset.gz";
57+
public static final String PHOSPHORYLATION = "https://www.phosphosite.org/downloads/Phosphorylation_site_dataset.gz";
5958

60-
public static final String REGULATORY = "http://www.phosphosite.org/downloads/Regulatory_sites.gz";
59+
public static final String REGULATORY = "https://www.phosphosite.org/downloads/Regulatory_sites.gz";
6160

62-
public static final String SUMOYLATION = "http://www.phosphosite.org/downloads/Sumoylation_site_dataset.gz";
61+
public static final String SUMOYLATION = "https://www.phosphosite.org/downloads/Sumoylation_site_dataset.gz";
6362

64-
public static final String UBIQUITINATION = "http://www.phosphosite.org/downloads/Ubiquitination_site_dataset.gz";
63+
public static final String UBIQUITINATION = "https://www.phosphosite.org/downloads/Ubiquitination_site_dataset.gz";
6564

6665

6766
public Dataset(){

biojava-modfinder/src/test/java/org/biojava/nbio/protmod/phosphosite/TestAcetylation.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,17 @@
1515
import static org.junit.Assert.fail;
1616

1717

18-
/** Makes sure there is a local installation of the Acetylation site file from Phosphosite and
18+
/**
19+
* Makes sure there is a local installation of the Acetylation site file from Phosphosite and
1920
* tests if it can get parsed by the parser.
2021
*
2122
* Created by andreas on 11/29/16.
2223
*/
2324
public class TestAcetylation {
2425

2526

26-
/** Make sure an Acetylation file is available locally.
27+
/**
28+
* Make sure an Acetylation file is available locally.
2729
* Downloads from Phosphosite if needed.
2830
*
2931
*/
@@ -42,7 +44,8 @@ public void setUp() throws IOException{
4244

4345
}
4446

45-
/** returns the local file name where the Acetylation file will get cached locally.
47+
/**
48+
* Returns the local file name where the Acetylation file will get cached locally.
4649
*
4750
* @param phosphoSiteFileLocation location of file at PhosphoSitePlus.
4851
* @return a File pointing to the location of the locally cached file.
@@ -64,7 +67,8 @@ private File getLocalFileName(String phosphoSiteFileLocation){
6467
return new File(localDir + "/" + fileName);
6568
}
6669

67-
/** Tests that the acetylation file can get parsed without problems.
70+
/**
71+
* Tests that the acetylation file can get parsed without problems.
6872
*
6973
*/
7074
@Test

biojava-structure/src/main/java/org/biojava/nbio/structure/align/util/URLConnectionTools.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
public class URLConnectionTools {
4646

4747
/** The default connection timeout in ms - 15 seconds*/
48-
public static final int DEFAULT_CONNECTION_TIMEOUT = 15000;
48+
public static final int DEFAULT_CONNECTION_TIMEOUT = 30000;
4949

5050
/**
5151
* Open HttpURLConnection. Recommended way to open URL connections in Java 1.7 and 1.8.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy