@@ -955,15 +955,11 @@ mv -f -- "${BASE}/query.lookup_tmp" "${BASE}/query.lookup"
955955
956956 // Extract tkey column from .m8 and create subdbs for dimer coords
957957 for _ , database := range job .Database {
958- // RACHEL: check if we can skip this part
959- // params, err := ReadParams(filepath.Join(config.Paths.Databases, database+".params"))
960- // if err != nil {
961- // return &JobExecutionError{err}
962- // }
963- // dbpath := filepath.Join(config.Paths.Databases, database)
964- // if params.OverridePath != "" {
965- // dbpath = filepath.Clean(params.OverridePath)
966- // }
958+ m8Path := filepath .Join (resultBase , "alis_" + database + ".m8" )
959+ if info , statErr := os .Stat (m8Path ); statErr != nil || info .Size () == 0 {
960+ // Skip dimer extraction if there were no hits
961+ continue
962+ }
967963
968964 err = execCommandSync (
969965 config .Verbose ,
@@ -982,8 +978,7 @@ mv -f -- "${BASE}/query.lookup_tmp" "${BASE}/query.lookup"
982978 if err != nil {
983979 return & JobExecutionError {err }
984980 }
985- // replace interfacedb_ prefix to dimerdb
986- dimerdb := strings .Replace (database , "interfacedb_" , "dimerdb_" , 1 )
981+ dimerdb := strings .Replace (database , "_interface" , "_dimer" , 1 )
987982 dimerdbpath := filepath .Join (config .Paths .Databases , dimerdb )
988983
989984 err = execCommandSync (
0 commit comments