File tree Expand file tree Collapse file tree
biojava3-structure/src/main/java/org/biojava/bio/structure/align/client Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3030import org .biojava .bio .structure .align .util .ResourceManager ;
3131import org .biojava .bio .structure .align .xml .AFPChainXMLConverter ;
3232import org .biojava .bio .structure .align .xml .PdbPairsMessage ;
33+ import org .biojava .bio .structure .domain .RemotePDPProvider ;
3334import org .biojava .bio .structure .io .FileParsingParameters ;
35+ import org .biojava .bio .structure .scop .RemoteScopInstallation ;
36+ import org .biojava .bio .structure .scop .ScopFactory ;
3437import org .biojava3 .core .util .FlatFileCache ;
3538import org .biojava3 .core .util .PrettyXMLWriter ;
3639
@@ -89,6 +92,22 @@ public FarmJobRunnable(FarmJobParameters params){
8992 // multiple farm jobs share the same SoftHashMap for caching coordinates
9093 cache = new AtomCache ( params .getPdbFilePath (), params .isPdbDirSplit ());
9194
95+
96+ if ( params .getServer ()!= null && (!params .getServer ().equals ("" ) ) ) {
97+ RemotePDPProvider pdpprovider = new RemotePDPProvider ();
98+
99+ pdpprovider .setServer (params .getServer ()+"/domains/" );
100+
101+ cache .setPdpprovider (pdpprovider );
102+
103+ RemoteScopInstallation scop = new RemoteScopInstallation ();
104+
105+ scop .setServer (params .getServer ()+"/domains/" );
106+ ScopFactory .setScopDatabase (scop );
107+
108+ }
109+
110+
92111 // enforce to replace remediated files with new versions...
93112 FileParsingParameters fparams = cache .getFileParsingParams ();
94113 fparams .setUpdateRemediatedFiles (params .isUpdateRemediatedFiles ());
You can’t perform that action at this time.
0 commit comments