File tree Expand file tree Collapse file tree 3 files changed +16
-13
lines changed
main/java/org/biojava/nbio/phosphosite
test/java/org/biojava/nbio/protmod/phosphosite
biojava-structure/src/main/java/org/biojava/nbio/structure/align/util Expand file tree Collapse file tree 3 files changed +16
-13
lines changed Original file line number Diff line number Diff line change 2626
2727import java .io .*;
2828import java .net .URL ;
29- import java .nio .channels .FileChannel ;
3029import java .nio .file .Files ;
3130import java .nio .file .StandardCopyOption ;
3231import 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 (){
Original file line number Diff line number Diff line change 1515import 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 */
2324public 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
Original file line number Diff line number Diff line change 4545public 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.
You can’t perform that action at this time.
0 commit comments