Skip to content
Snippets Groups Projects
Commit a9685701 authored by Joana Pereira's avatar Joana Pereira
Browse files

implemented the detection of OMBBs that form complexes with OMBBs. it also...

implemented the detection of OMBBs that form complexes with OMBBs. it also works with input pdbs now.
parent 0eace76c
No related branches found
No related tags found
No related merge requests found
......@@ -2302,9 +2302,9 @@ def run_barros(arguments, offset = 1, step = 2, local_angle_threshold = 25, dist
target_chains = []
if len(chains_inpdb) > 1:
for chainID in chains_inpdb:
if input_mode == 'pdb_file':
if '.pdb' in pdbID or '.ent' in pdbID:
chain_pdb, _ = extract_chain(pdb_file, chain, outpdb = 'downloaded_pdbs/{}_{}.pdb'.format(pdbID, chainID))
target_chains.append([pdbID, chainID, chain_pdb, protein_type, membrane_thickness])
target_chains.append([pdbID.split('.')[0], chainID, chain_pdb, protein_type, membrane_thickness])
else:
chain_pdb, protein_type, membrane_thickness = download_pdb('{}_{}'.format(pdbID.split('_')[0], chainID))
target_chains.append([pdbID.split('_')[0], chainID, chain_pdb, protein_type, membrane_thickness])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment