Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add error alerts for folder_with_pdbs .pdb error #79

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion helper_scripts/parse_multiple_chains.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ def main(args):
import numpy as np
import os, time, gzip, json
import glob
import sys

folder_with_pdbs_path = args.input_path
save_path = args.output_path
Expand Down Expand Up @@ -99,7 +100,10 @@ def parse_PDB_biounits(x, atoms=['N','CA','C'], chain=None):

pdb_dict_list = []
c = 0


if folder_with_pdbs_path[-4:]==".pdb":
sys.exit("Error in Submission Script: The fixed positions options require a folder with pdb's be passed in, not a pdb filename. Please rectifiy the \"folder_with_pdbs\" variable in your submission script.")

if folder_with_pdbs_path[-1]!='/':
folder_with_pdbs_path = folder_with_pdbs_path+'/'

Expand Down