Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
minerva
core
Commits
f062dd04
Commit
f062dd04
authored
Oct 12, 2021
by
Piotr Gawron
Browse files
use europe mirror for UCSC files
parent
24647eee
Pipeline
#48229
passed with stage
in 13 minutes and 24 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
annotation/src/main/java/lcsb/mapviewer/annotation/cache/BigFileCache.java
View file @
f062dd04
...
...
@@ -299,7 +299,7 @@ public class BigFileCache {
if
(!
FTPReply
.
isPositiveCompletion
(
reply
))
{
throw
new
IOException
(
"FTP server refused connection."
);
}
//
ftp.enterLocalPassiveMode();
ftp
.
enterLocalPassiveMode
();
ftp
.
login
(
"anonymous"
,
""
);
ftp
.
setFileType
(
FTP
.
BINARY_FILE_TYPE
);
...
...
@@ -638,7 +638,7 @@ public class BigFileCache {
if
(!
FTPReply
.
isPositiveCompletion
(
reply
))
{
throw
new
IOException
(
"FTP server refused connection."
);
}
//
ftp.enterLocalPassiveMode();
ftp
.
enterLocalPassiveMode
();
ftp
.
login
(
"anonymous"
,
""
);
ftp
.
setFileType
(
FTP
.
BINARY_FILE_TYPE
);
...
...
@@ -848,7 +848,7 @@ public class BigFileCache {
if
(!
FTPReply
.
isPositiveCompletion
(
reply
))
{
throw
new
IOException
(
"FTP server refused connection."
);
}
//
ftp.enterLocalPassiveMode();
ftp
.
enterLocalPassiveMode
();
ftp
.
login
(
"anonymous"
,
""
);
ftp
.
setFileType
(
FTP
.
BINARY_FILE_TYPE
);
...
...
annotation/src/main/java/lcsb/mapviewer/annotation/services/genome/UcscReferenceGenomeConnector.java
View file @
f062dd04
...
...
@@ -43,7 +43,7 @@ public class UcscReferenceGenomeConnector extends AbstractReferenceGenomeConnect
/**
* Server domain name.
*/
private
static
final
String
SERVER
=
"hgdownload
.cs
e.ucsc.edu"
;
private
static
final
String
SERVER
=
"hgdownload
-euro.so
e.ucsc.edu"
;
/**
* Default class logger.
*/
...
...
@@ -224,7 +224,7 @@ public class UcscReferenceGenomeConnector extends AbstractReferenceGenomeConnect
throw
new
FileNotAvailableException
(
"Cannot find file with genome for: "
+
organism
+
"; "
+
version
+
". FTP server refused connection."
);
}
else
{
//
ftp.enterLocalPassiveMode();
ftp
.
enterLocalPassiveMode
();
ftp
.
login
(
"anonymous"
,
""
);
ftp
.
setFileType
(
FTP
.
BINARY_FILE_TYPE
);
...
...
@@ -324,7 +324,7 @@ public class UcscReferenceGenomeConnector extends AbstractReferenceGenomeConnect
* @return local path on ftp server to folder with data about reference genome
*/
private
String
getGenomePath
(
MiriamData
organism
,
String
version
)
{
return
"/goldenPath/"
+
version
+
"/bigZips/"
;
return
"/
apache/htdocs/
goldenPath/"
+
version
+
"/bigZips/"
;
}
/**
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment