Louis BECQUEY

force python3.8 for the post-computation scripts

Showing 1 changed file with 11 additions and 7 deletions
...@@ -1203,8 +1203,8 @@ class Pipeline: ...@@ -1203,8 +1203,8 @@ class Pipeline:
1203 1203
1204 # Run statistics files 1204 # Run statistics files
1205 os.chdir(runDir) 1205 os.chdir(runDir)
1206 - subprocess.run(["python3", "regression.py"]) 1206 + subprocess.run(["python3.8", "regression.py"])
1207 - subprocess.run(["python3", "statistics.py", path_to_3D_data, path_to_seq_data]) 1207 + subprocess.run(["python3.8", "statistics.py", path_to_3D_data, path_to_seq_data])
1208 1208
1209 # Save additional informations 1209 # Save additional informations
1210 conn = sqlite3.connect(runDir+"/results/RNANet.db") 1210 conn = sqlite3.connect(runDir+"/results/RNANet.db")
...@@ -1309,8 +1309,11 @@ def warn(message, error=False): ...@@ -1309,8 +1309,11 @@ def warn(message, error=False):
1309 # Cut if too long 1309 # Cut if too long
1310 if len(message)>66: 1310 if len(message)>66:
1311 x = message.find(' ', 50, 66) 1311 x = message.find(' ', 50, 66)
1312 - warn(message[:x], error=error) 1312 + if x != -1:
1313 - warn(message[x+1:], error=error) 1313 + warn(message[:x], error=error)
1314 + warn(message[x+1:], error=error)
1315 + else:
1316 + warn(message[:x], error=error)
1314 return 1317 return
1315 1318
1316 if error: 1319 if error:
...@@ -2011,9 +2014,10 @@ def work_pssm(f, fill_gaps): ...@@ -2011,9 +2014,10 @@ def work_pssm(f, fill_gaps):
2011 re_mappings += new_mappings 2014 re_mappings += new_mappings
2012 2015
2013 except ValueError: 2016 except ValueError:
2014 - with open(runDir + "/errors.txt", "a") as errf: 2017 + # with open(runDir + "/errors.txt", "a") as errf:
2015 - errf.write(f"Chain {s.id} not found in list of chains to process. ignoring.\n") 2018 + # errf.write(f"Chain {s.id} not found in list of chains to process. ignoring.\n")
2016 - 2019 + pass
2020 +
2017 pbar.update(1) 2021 pbar.update(1)
2018 pbar.close() 2022 pbar.close()
2019 2023
......