@@ -143,13 +143,21 @@ fn simulate(simulation_path: &str, setup: &SetupFile, swarm_filename: &str, step
143
143
println ! ( "Reading starting positions from {:?}" , swarm_filename) ;
144
144
let positions = parse_input_coordinates ( swarm_filename) ;
145
145
146
+ let receptor_filename = if simulation_path == "" {
147
+ format ! ( "{}{}" , DEFAULT_LIGHTDOCK_PREFIX , setup. receptor_pdb)
148
+ } else {
149
+ format ! ( "{}/{}{}" , simulation_path, DEFAULT_LIGHTDOCK_PREFIX , setup. receptor_pdb)
150
+ } ;
146
151
// Parse receptor input PDB structure
147
- let receptor_filename: String = format ! ( "{}/{}{}" , simulation_path, DEFAULT_LIGHTDOCK_PREFIX , setup. receptor_pdb) ;
148
152
println ! ( "Reading receptor input structure: {}" , receptor_filename) ;
149
153
let ( receptor, _errors) = pdbtbx:: open ( & receptor_filename, pdbtbx:: StrictnessLevel :: Medium ) . unwrap ( ) ;
150
154
155
+ let ligand_filename = if simulation_path == "" {
156
+ format ! ( "{}{}" , DEFAULT_LIGHTDOCK_PREFIX , setup. ligand_pdb)
157
+ } else {
158
+ format ! ( "{}/{}{}" , simulation_path, DEFAULT_LIGHTDOCK_PREFIX , setup. ligand_pdb)
159
+ } ;
151
160
// Parse ligand input PDB structure
152
- let ligand_filename: String = format ! ( "{}/{}{}" , simulation_path, DEFAULT_LIGHTDOCK_PREFIX , setup. ligand_pdb) ;
153
161
println ! ( "Reading ligand input structure: {}" , ligand_filename) ;
154
162
let ( ligand, _errors) = pdbtbx:: open ( & ligand_filename, pdbtbx:: StrictnessLevel :: Medium ) . unwrap ( ) ;
155
163
0 commit comments