-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from afloresep/pull-req
Pull req
- Loading branch information
Showing
12 changed files
with
1,163 additions
and
198 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import os | ||
import subprocess | ||
import sys | ||
|
||
def run_analyze_FEP(parent_folder, command_args): | ||
for root, dirs, files in os.walk(parent_folder): | ||
for dir_name in dirs: | ||
if dir_name.startswith('FEP_'): | ||
full_path = os.path.join(root, dir_name) | ||
cmd = ['python', 'analyze_FEP.py', '-F', full_path] + command_args | ||
subprocess.run(cmd) | ||
|
||
if __name__ == "__main__": | ||
if len(sys.argv) < 3: | ||
print("Usage: python script_name.py <parent_folder> <command_args>") | ||
sys.exit(1) | ||
|
||
parent_folder = sys.argv[1] | ||
command_args = sys.argv[2:] | ||
|
||
if not os.path.isdir(parent_folder): | ||
print(f"Error: '{parent_folder}' is not a valid directory.") | ||
sys.exit(1) | ||
|
||
run_analyze_FEP(parent_folder, command_args) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Move all your ligands here. See README.md for further instructions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Move the protein here. See README.md for further instructions |
Oops, something went wrong.