Commit 37dd704e authored by jdurrant's avatar jdurrant
Browse files

Recompile js library.

parent a8683edf
......@@ -4,7 +4,7 @@
'use strict';var binana={};import{AssertionError,AttributeError,BaseException,DeprecationWarning,Exception,IndexError,IterableError,KeyError,NotImplementedError,RuntimeWarning,StopIteration,UserWarning,ValueError,Warning,__JsIterator__,__PyIterator__,__Terminal__,__add__,__and__,__call__,__class__,__envir__,__eq__,__floordiv__,__ge__,__get__,__getcm__,__getitem__,__getslice__,__getsm__,__gt__,__i__,__iadd__,__iand__,__idiv__,__ijsmod__,__ilshift__,__imatmul__,__imod__,__imul__,__in__,__init__,__ior__,
__ipow__,__irshift__,__isub__,__ixor__,__jsUsePyNext__,__jsmod__,__k__,__kwargtrans__,__le__,__lshift__,__lt__,__matmul__,__mergefields__,__mergekwargtrans__,__mod__,__mul__,__ne__,__neg__,__nest__,__or__,__pow__,__pragma__,__proxy__,__pyUseJsNext__,__rshift__,__setitem__,__setproperty__,__setslice__,__sort__,__specialattrib__,__sub__,__super__,__t__,__terminal__,__truediv__,__withblock__,__xor__,abs,all,any,assert,bool,bytearray,bytes,callable,chr,copy,deepcopy,delattr,dict,dir,divmod,enumerate,
filter,float,getattr,hasattr,input,int,isinstance,issubclass,len,list,map,max,min,object,ord,pow,print,property,py_TypeError,py_iter,py_metatype,py_next,py_reversed,py_typeof,range,repr,round,set,setattr,sorted,str,sum,tuple,zip}from"./org.transcrypt.__runtime__.js";import{OpenFile}from"./binana._utils.shim.js";import*as shim from"./binana._utils.shim.js";import*as __module_binana__ from"./binana.js";__nest__(binana,"",__module_binana__);export{shim,OpenFile};var __name__="binana.fs";export var save_file=
filter,float,getattr,hasattr,input,int,isinstance,issubclass,len,list,map,max,min,object,ord,pow,print,property,py_TypeError,py_iter,py_metatype,py_next,py_reversed,py_typeof,range,repr,round,set,setattr,sorted,str,sum,tuple,zip}from"./org.transcrypt.__runtime__.js";import{OpenFile}from"./binana._utils.shim.js";import*as shim from"./binana._utils.shim.js";import*as __module_binana__ from"./binana.js";__nest__(binana,"",__module_binana__);export{OpenFile,shim};var __name__="binana.fs";export var save_file=
function(filename,text){var f=OpenFile(filename,"w");f.write(text);f.close()};export var ls=function(){print(binana._utils.shim.fake_fs.py_keys())};export var load_file=function(filename){var f=OpenFile(filename,"r");var txt=f.read();f.close();return txt};
//# sourceMappingURL=binana.fs.map
\ No newline at end of file
......@@ -7,8 +7,8 @@ __ipow__,__irshift__,__isub__,__ixor__,__jsUsePyNext__,__jsmod__,__k__,__kwargtr
filter,float,getattr,hasattr,input,int,isinstance,issubclass,len,list,map,max,min,object,ord,pow,print,property,py_TypeError,py_iter,py_metatype,py_next,py_reversed,py_typeof,range,repr,round,set,setattr,sorted,str,sum,tuple,zip}from"./org.transcrypt.__runtime__.js";import*as _closest from"./binana.interactions._closest.js";import*as _close from"./binana.interactions._close.js";import*as _electrostatic_energies from"./binana.interactions._electrostatic_energies.js";import*as _flexibility from"./binana.interactions._flexibility.js";
import*as _hydrophobics from"./binana.interactions._hydrophobics.js";import*as _hydrogen_bonds from"./binana.interactions._hydrogen_bonds.js";import*as _ligand_atom_types from"./binana.interactions._ligand_atom_types.js";import*as _pi_pi from"./binana.interactions._pi_pi.js";import*as _salt_bridges from"./binana.interactions._salt_bridges.js";import*as _cat_pi from"./binana.interactions._cat_pi.js";import*as __module_binana_interactions__ from"./binana.interactions.js";__nest__(binana,"interactions",
__module_binana_interactions__);import*as __module_binana__ from"./binana.js";__nest__(binana,"",__module_binana__);import{ACTIVE_SITE_FLEXIBILITY_DIST_CUTOFF,CATION_PI_DIST_CUTOFF,CLOSE_CONTACTS_DIST1_CUTOFF,CLOSE_CONTACTS_DIST2_CUTOFF,ELECTROSTATIC_DIST_CUTOFF,HYDROGEN_BOND_ANGLE_CUTOFF,HYDROGEN_BOND_DIST_CUTOFF,HYDROPHOBIC_DIST_CUTOFF,PI_PADDING_DIST,PI_PI_INTERACTING_DIST_CUTOFF,PI_STACKING_ANGLE_TOLERANCE,SALT_BRIDGE_DIST_CUTOFF,T_STACKING_ANGLE_TOLERANCE,T_STACKING_CLOSEST_DIST_CUTOFF}from"./binana.interactions.default_params.js";
import{_set_default}from"./binana._utils.shim.js";import*as default_params from"./binana.interactions.default_params.js";export{_hydrogen_bonds,_closest,CLOSE_CONTACTS_DIST1_CUTOFF,HYDROPHOBIC_DIST_CUTOFF,_set_default,ACTIVE_SITE_FLEXIBILITY_DIST_CUTOFF,HYDROGEN_BOND_ANGLE_CUTOFF,_hydrophobics,_close,default_params,_ligand_atom_types,_electrostatic_energies,_flexibility,_salt_bridges,_pi_pi,_cat_pi,T_STACKING_CLOSEST_DIST_CUTOFF,CATION_PI_DIST_CUTOFF,ELECTROSTATIC_DIST_CUTOFF,SALT_BRIDGE_DIST_CUTOFF,
CLOSE_CONTACTS_DIST2_CUTOFF,HYDROGEN_BOND_DIST_CUTOFF,T_STACKING_ANGLE_TOLERANCE,PI_PI_INTERACTING_DIST_CUTOFF,PI_PADDING_DIST,PI_STACKING_ANGLE_TOLERANCE};var __name__="binana.interactions";export var get_cation_pi=function(ligand,receptor,cutoff,pi_padding){if(typeof cutoff=="undefined"||cutoff!=null&&cutoff.hasOwnProperty("__kwargtrans__"))var cutoff=null;if(typeof pi_padding=="undefined"||pi_padding!=null&&pi_padding.hasOwnProperty("__kwargtrans__"))var pi_padding=null;var cutoff=_set_default(cutoff,
import{_set_default}from"./binana._utils.shim.js";import*as default_params from"./binana.interactions.default_params.js";export{ACTIVE_SITE_FLEXIBILITY_DIST_CUTOFF,PI_PADDING_DIST,PI_PI_INTERACTING_DIST_CUTOFF,_flexibility,HYDROPHOBIC_DIST_CUTOFF,_hydrophobics,_hydrogen_bonds,CLOSE_CONTACTS_DIST2_CUTOFF,HYDROGEN_BOND_DIST_CUTOFF,T_STACKING_ANGLE_TOLERANCE,_closest,PI_STACKING_ANGLE_TOLERANCE,_set_default,default_params,SALT_BRIDGE_DIST_CUTOFF,CATION_PI_DIST_CUTOFF,_close,T_STACKING_CLOSEST_DIST_CUTOFF,
_ligand_atom_types,_cat_pi,_pi_pi,_salt_bridges,_electrostatic_energies,HYDROGEN_BOND_ANGLE_CUTOFF,CLOSE_CONTACTS_DIST1_CUTOFF,ELECTROSTATIC_DIST_CUTOFF};var __name__="binana.interactions";export var get_cation_pi=function(ligand,receptor,cutoff,pi_padding){if(typeof cutoff=="undefined"||cutoff!=null&&cutoff.hasOwnProperty("__kwargtrans__"))var cutoff=null;if(typeof pi_padding=="undefined"||pi_padding!=null&&pi_padding.hasOwnProperty("__kwargtrans__"))var pi_padding=null;var cutoff=_set_default(cutoff,
CATION_PI_DIST_CUTOFF);var pi_padding=_set_default(pi_padding,PI_PADDING_DIST);return _cat_pi.get_cation_pi(ligand,receptor,cutoff,pi_padding)};export var get_salt_bridges=function(ligand,receptor,cutoff){if(typeof cutoff=="undefined"||cutoff!=null&&cutoff.hasOwnProperty("__kwargtrans__"))var cutoff=null;var cutoff=_set_default(cutoff,SALT_BRIDGE_DIST_CUTOFF);return _salt_bridges.get_salt_bridges(ligand,receptor,cutoff)};export var get_pi_pi=function(ligand,receptor,pi_pi_general_dist_cutoff,pi_stacking_angle_tol,
t_stacking_angle_tol,t_stacking_closest_dist_cutoff,pi_padding){if(typeof pi_pi_general_dist_cutoff=="undefined"||pi_pi_general_dist_cutoff!=null&&pi_pi_general_dist_cutoff.hasOwnProperty("__kwargtrans__"))var pi_pi_general_dist_cutoff=null;if(typeof pi_stacking_angle_tol=="undefined"||pi_stacking_angle_tol!=null&&pi_stacking_angle_tol.hasOwnProperty("__kwargtrans__"))var pi_stacking_angle_tol=null;if(typeof t_stacking_angle_tol=="undefined"||t_stacking_angle_tol!=null&&t_stacking_angle_tol.hasOwnProperty("__kwargtrans__"))var t_stacking_angle_tol=
null;if(typeof t_stacking_closest_dist_cutoff=="undefined"||t_stacking_closest_dist_cutoff!=null&&t_stacking_closest_dist_cutoff.hasOwnProperty("__kwargtrans__"))var t_stacking_closest_dist_cutoff=null;if(typeof pi_padding=="undefined"||pi_padding!=null&&pi_padding.hasOwnProperty("__kwargtrans__"))var pi_padding=null;var pi_pi_general_dist_cutoff=_set_default(pi_pi_general_dist_cutoff,PI_PI_INTERACTING_DIST_CUTOFF);var pi_stacking_angle_tol=_set_default(pi_stacking_angle_tol,PI_STACKING_ANGLE_TOLERANCE);
......
......@@ -5,7 +5,7 @@
'use strict';var binana={};import{AssertionError,AttributeError,BaseException,DeprecationWarning,Exception,IndexError,IterableError,KeyError,NotImplementedError,RuntimeWarning,StopIteration,UserWarning,ValueError,Warning,__JsIterator__,__PyIterator__,__Terminal__,__add__,__and__,__call__,__class__,__envir__,__eq__,__floordiv__,__ge__,__get__,__getcm__,__getitem__,__getslice__,__getsm__,__gt__,__i__,__iadd__,__iand__,__idiv__,__ijsmod__,__ilshift__,__imatmul__,__imod__,__imul__,__in__,__init__,__ior__,
__ipow__,__irshift__,__isub__,__ixor__,__jsUsePyNext__,__jsmod__,__k__,__kwargtrans__,__le__,__lshift__,__lt__,__matmul__,__mergefields__,__mergekwargtrans__,__mod__,__mul__,__ne__,__neg__,__nest__,__or__,__pow__,__pragma__,__proxy__,__pyUseJsNext__,__rshift__,__setitem__,__setproperty__,__setslice__,__sort__,__specialattrib__,__sub__,__super__,__t__,__terminal__,__truediv__,__withblock__,__xor__,abs,all,any,assert,bool,bytearray,bytes,callable,chr,copy,deepcopy,delattr,dict,dir,divmod,enumerate,
filter,float,getattr,hasattr,input,int,isinstance,issubclass,len,list,map,max,min,object,ord,pow,print,property,py_TypeError,py_iter,py_metatype,py_next,py_reversed,py_typeof,range,repr,round,set,setattr,sorted,str,sum,tuple,zip}from"./org.transcrypt.__runtime__.js";import*as _get_params from"./binana._cli_params._get_params.js";import*as _start from"./binana._start.js";import*as output from"./binana.output.js";import*as interactions from"./binana.interactions.js";import*as load_ligand_receptor from"./binana.load_ligand_receptor.js";
import*as fs from"./binana.fs.js";import*as __module_binana__ from"./binana.js";__nest__(binana,"",__module_binana__);export{interactions,_start,load_ligand_receptor,fs,_get_params,output};var __name__="__main__";export var _sys=binana.sys;export var run=function(args){if(typeof args=="undefined"||args!=null&&args.hasOwnProperty("__kwargtrans__"))var args=null;console.warn("You probably don't want to call this using JavaScript (Python-only function).");if(args===null)var args=_sys.argv.__getslice__(0,
import*as fs from"./binana.fs.js";import*as __module_binana__ from"./binana.js";__nest__(binana,"",__module_binana__);export{fs,load_ligand_receptor,interactions,output,_get_params,_start};var __name__="__main__";export var _sys=binana.sys;export var run=function(args){if(typeof args=="undefined"||args!=null&&args.hasOwnProperty("__kwargtrans__"))var args=null;console.warn("You probably don't want to call this using JavaScript (Python-only function).");if(args===null)var args=_sys.argv.__getslice__(0,
null,1);else for(var [i,a]of enumerate(args))args[i]=str(a);var cmd_params=_get_params.CommandLineParameters(args);if(cmd_params.params["test"])return;else if(cmd_params.okay_to_proceed()==false){print("Error: You need to specify the ligand and receptor PDBQT files to analyze using\nthe -receptor and -ligand tags from the command line.\n");_sys.exit(0);return}if(cmd_params.error!=""){print("Warning: The following command-line parameters were not recognized:");print(" "+cmd_params.error+"\n")}_start._get_all_interactions(cmd_params)};
//# sourceMappingURL=binana.map
\ No newline at end of file
......@@ -5,7 +5,7 @@
'use strict';var binana={};var math={};import{AssertionError,AttributeError,BaseException,DeprecationWarning,Exception,IndexError,IterableError,KeyError,NotImplementedError,RuntimeWarning,StopIteration,UserWarning,ValueError,Warning,__JsIterator__,__PyIterator__,__Terminal__,__add__,__and__,__call__,__class__,__envir__,__eq__,__floordiv__,__ge__,__get__,__getcm__,__getitem__,__getslice__,__getsm__,__gt__,__i__,__iadd__,__iand__,__idiv__,__ijsmod__,__ilshift__,__imatmul__,__imod__,__imul__,__in__,
__init__,__ior__,__ipow__,__irshift__,__isub__,__ixor__,__jsUsePyNext__,__jsmod__,__k__,__kwargtrans__,__le__,__lshift__,__lt__,__matmul__,__mergefields__,__mergekwargtrans__,__mod__,__mul__,__ne__,__neg__,__nest__,__or__,__pow__,__pragma__,__proxy__,__pyUseJsNext__,__rshift__,__setitem__,__setproperty__,__setslice__,__sort__,__specialattrib__,__sub__,__super__,__t__,__terminal__,__truediv__,__withblock__,__xor__,abs,all,any,assert,bool,bytearray,bytes,callable,chr,copy,deepcopy,delattr,dict,dir,
divmod,enumerate,filter,float,getattr,hasattr,input,int,isinstance,issubclass,len,list,map,max,min,object,ord,pow,print,property,py_TypeError,py_iter,py_metatype,py_next,py_reversed,py_typeof,range,repr,round,set,setattr,sorted,str,sum,tuple,zip}from"./org.transcrypt.__runtime__.js";import*as _math_functions from"./binana._utils._math_functions.js";import{Mol as _Mol}from"./binana._structure.mol.js";import{Point as _Point}from"./binana._structure.point.js";import*as __module_math__ from"./math.js";
__nest__(math,"",__module_math__);import*as __module_binana__ from"./binana.js";__nest__(binana,"",__module_binana__);export{_Mol,_math_functions,_Point};var __name__="binana.load_ligand_receptor";export var _ligand_receptor_dists=null;export var _ligand_receptor_aromatic_dists=null;export var from_texts=function(ligand_text,receptor_text){var ligand=_Mol();ligand.load_pdb_from_text(ligand_text);var receptor=_Mol();receptor.load_pdb_from_text(receptor_text);receptor.assign_secondary_structure();_clear_cache();
__nest__(math,"",__module_math__);import*as __module_binana__ from"./binana.js";__nest__(binana,"",__module_binana__);export{_Mol,_Point,_math_functions};var __name__="binana.load_ligand_receptor";export var _ligand_receptor_dists=null;export var _ligand_receptor_aromatic_dists=null;export var from_texts=function(ligand_text,receptor_text){var ligand=_Mol();ligand.load_pdb_from_text(ligand_text);var receptor=_Mol();receptor.load_pdb_from_text(receptor_text);receptor.assign_secondary_structure();_clear_cache();
return tuple([ligand,receptor])};export var from_files=function(ligand_filename,receptor_filename){var ligand=_Mol();ligand.load_pdb_file(ligand_filename);var receptor=_Mol();receptor.load_pdb_file(receptor_filename);receptor.assign_secondary_structure();_clear_cache();return tuple([ligand,receptor])};export var _clear_cache=function(){_ligand_receptor_dists=null;_ligand_receptor_aromatic_dists=null};export var _get_ligand_receptor_dists=function(ligand,receptor){if(_ligand_receptor_dists!==null)return _ligand_receptor_dists;
_ligand_receptor_dists=[];for(var ligand_atom_index of ligand.all_atoms.py_keys())for(var receptor_atom_index of receptor.all_atoms.py_keys()){var ligand_atom=ligand.all_atoms[ligand_atom_index];var receptor_atom=receptor.all_atoms[receptor_atom_index];var dist=ligand_atom.coordinates.dist_to(receptor_atom.coordinates);_ligand_receptor_dists.append(tuple([ligand_atom,receptor_atom,dist]))}return _ligand_receptor_dists};export var _get_ligand_receptor_aromatic_dists=function(ligand,receptor,pi_pi_general_dist_cutoff){if(_ligand_receptor_aromatic_dists!==
null)return _ligand_receptor_aromatic_dists;_ligand_receptor_aromatic_dists=[];for(var ligand_aromatic of ligand.aromatic_rings)for(var receptor_aromatic of receptor.aromatic_rings){var dist=ligand_aromatic.center.dist_to(receptor_aromatic.center);if(dist<pi_pi_general_dist_cutoff){var ligand_aromatic_norm_vector=_Point(ligand_aromatic.plane_coeff[0],ligand_aromatic.plane_coeff[1],ligand_aromatic.plane_coeff[2]);var receptor_aromatic_norm_vector=_Point(receptor_aromatic.plane_coeff[0],receptor_aromatic.plane_coeff[1],
......
......@@ -5,7 +5,7 @@
'use strict';var binana={};import{AssertionError,AttributeError,BaseException,DeprecationWarning,Exception,IndexError,IterableError,KeyError,NotImplementedError,RuntimeWarning,StopIteration,UserWarning,ValueError,Warning,__JsIterator__,__PyIterator__,__Terminal__,__add__,__and__,__call__,__class__,__envir__,__eq__,__floordiv__,__ge__,__get__,__getcm__,__getitem__,__getslice__,__getsm__,__gt__,__i__,__iadd__,__iand__,__idiv__,__ijsmod__,__ilshift__,__imatmul__,__imod__,__imul__,__in__,__init__,__ior__,
__ipow__,__irshift__,__isub__,__ixor__,__jsUsePyNext__,__jsmod__,__k__,__kwargtrans__,__le__,__lshift__,__lt__,__matmul__,__mergefields__,__mergekwargtrans__,__mod__,__mul__,__ne__,__neg__,__nest__,__or__,__pow__,__pragma__,__proxy__,__pyUseJsNext__,__rshift__,__setitem__,__setproperty__,__setslice__,__sort__,__specialattrib__,__sub__,__super__,__t__,__terminal__,__truediv__,__withblock__,__xor__,abs,all,any,assert,bool,bytearray,bytes,callable,chr,copy,deepcopy,delattr,dict,dir,divmod,enumerate,
filter,float,getattr,hasattr,input,int,isinstance,issubclass,len,list,map,max,min,object,ord,pow,print,property,py_TypeError,py_iter,py_metatype,py_next,py_reversed,py_typeof,range,repr,round,set,setattr,sorted,str,sum,tuple,zip}from"./org.transcrypt.__runtime__.js";import{OpenFile as _openFile}from"./binana._utils.shim.js";import*as _json from"./binana._utils.shim.js";import*as __module_binana__ from"./binana.js";__nest__(binana,"",__module_binana__);import*as pdb_file from"./binana.output.pdb_file.js";
import*as _log from"./binana.output._log.js";import*as dictionary from"./binana.output.dictionary.js";import*as _directory from"./binana.output._directory.js";export{_directory,pdb_file,dictionary,_openFile,_log,_json};var __name__="binana.output";export var _write_main=function(parameters,ligand,receptor,closest,close,hydrophobics,hydrogen_bonds,salt_bridges,pi_pi,cat_pi,electrostatic_energies,active_site_flexibility,ligand_atom_types){var json_output=binana.output.dictionary.collect(closest,close,
import*as _log from"./binana.output._log.js";import*as dictionary from"./binana.output.dictionary.js";import*as _directory from"./binana.output._directory.js";export{pdb_file,_directory,_openFile,_json,_log,dictionary};var __name__="binana.output";export var _write_main=function(parameters,ligand,receptor,closest,close,hydrophobics,hydrogen_bonds,salt_bridges,pi_pi,cat_pi,electrostatic_energies,active_site_flexibility,ligand_atom_types){var json_output=binana.output.dictionary.collect(closest,close,
hydrophobics,hydrogen_bonds,salt_bridges,pi_pi,cat_pi,electrostatic_energies,active_site_flexibility,ligand_atom_types,__kwargtrans__({ligand_rotatable_bonds:ligand.rotatable_bonds_count}));var log_output=binana.output._log.collect(parameters,ligand,closest,close,hydrophobics,hydrogen_bonds,salt_bridges,pi_pi,cat_pi,electrostatic_energies,active_site_flexibility,ligand_atom_types,json_output);if(parameters.params["output_json"]!=""){var f=_openFile(parameters.params["output_json"],"w");f.write(_json.dumps(json_output,
__kwargtrans__({indent:2,sort_keys:true,separators:tuple([",",": "])})));f.close()}if(parameters.params["output_file"]!="")binana.output.pdb_file.write(ligand,receptor,closest,close,hydrophobics,hydrogen_bonds,salt_bridges,pi_pi,cat_pi,active_site_flexibility,log_output,false,parameters.params["output_file"]);if(parameters.params["output_dir"]!="")_directory.make_directory_output(parameters,closest,close,active_site_flexibility,hydrophobics,hydrogen_bonds,pi_pi,cat_pi,salt_bridges,ligand,receptor)};
......
......@@ -5,7 +5,7 @@
'use strict';var binana={};import{AssertionError,AttributeError,BaseException,DeprecationWarning,Exception,IndexError,IterableError,KeyError,NotImplementedError,RuntimeWarning,StopIteration,UserWarning,ValueError,Warning,__JsIterator__,__PyIterator__,__Terminal__,__add__,__and__,__call__,__class__,__envir__,__eq__,__floordiv__,__ge__,__get__,__getcm__,__getitem__,__getslice__,__getsm__,__gt__,__i__,__iadd__,__iand__,__idiv__,__ijsmod__,__ilshift__,__imatmul__,__imod__,__imul__,__in__,__init__,__ior__,
__ipow__,__irshift__,__isub__,__ixor__,__jsUsePyNext__,__jsmod__,__k__,__kwargtrans__,__le__,__lshift__,__lt__,__matmul__,__mergefields__,__mergekwargtrans__,__mod__,__mul__,__ne__,__neg__,__nest__,__or__,__pow__,__pragma__,__proxy__,__pyUseJsNext__,__rshift__,__setitem__,__setproperty__,__setslice__,__sort__,__specialattrib__,__sub__,__super__,__t__,__terminal__,__truediv__,__withblock__,__xor__,abs,all,any,assert,bool,bytearray,bytes,callable,chr,copy,deepcopy,delattr,dict,dir,divmod,enumerate,
filter,float,getattr,hasattr,input,int,isinstance,issubclass,len,list,map,max,min,object,ord,pow,print,property,py_TypeError,py_iter,py_metatype,py_next,py_reversed,py_typeof,range,repr,round,set,setattr,sorted,str,sum,tuple,zip}from"./org.transcrypt.__runtime__.js";import{OpenFile as _openFile}from"./binana._utils.shim.js";import*as _json from"./binana._utils.shim.js";import*as __module_binana__ from"./binana.js";__nest__(binana,"",__module_binana__);import*as pdb_file from"./binana.output.pdb_file.js";
import*as _log from"./binana.output._log.js";import*as dictionary from"./binana.output.dictionary.js";import*as _directory from"./binana.output._directory.js";export{_directory,pdb_file,dictionary,_openFile,_log,_json};var __name__="binana.output";export var _write_main=function(parameters,ligand,receptor,closest,close,hydrophobics,hydrogen_bonds,salt_bridges,pi_pi,cat_pi,electrostatic_energies,active_site_flexibility,ligand_atom_types){var json_output=binana.output.dictionary.collect(closest,close,
import*as _log from"./binana.output._log.js";import*as dictionary from"./binana.output.dictionary.js";import*as _directory from"./binana.output._directory.js";export{pdb_file,_directory,_openFile,_json,_log,dictionary};var __name__="binana.output";export var _write_main=function(parameters,ligand,receptor,closest,close,hydrophobics,hydrogen_bonds,salt_bridges,pi_pi,cat_pi,electrostatic_energies,active_site_flexibility,ligand_atom_types){var json_output=binana.output.dictionary.collect(closest,close,
hydrophobics,hydrogen_bonds,salt_bridges,pi_pi,cat_pi,electrostatic_energies,active_site_flexibility,ligand_atom_types,__kwargtrans__({ligand_rotatable_bonds:ligand.rotatable_bonds_count}));var log_output=binana.output._log.collect(parameters,ligand,closest,close,hydrophobics,hydrogen_bonds,salt_bridges,pi_pi,cat_pi,electrostatic_energies,active_site_flexibility,ligand_atom_types,json_output);if(parameters.params["output_json"]!=""){var f=_openFile(parameters.params["output_json"],"w");f.write(_json.dumps(json_output,
__kwargtrans__({indent:2,sort_keys:true,separators:tuple([",",": "])})));f.close()}if(parameters.params["output_file"]!="")binana.output.pdb_file.write(ligand,receptor,closest,close,hydrophobics,hydrogen_bonds,salt_bridges,pi_pi,cat_pi,active_site_flexibility,log_output,false,parameters.params["output_file"]);if(parameters.params["output_dir"]!="")_directory.make_directory_output(parameters,closest,close,active_site_flexibility,hydrophobics,hydrogen_bonds,pi_pi,cat_pi,salt_bridges,ligand,receptor)};
......
......@@ -4,7 +4,7 @@
'use strict';var binana={};import{AssertionError,AttributeError,BaseException,DeprecationWarning,Exception,IndexError,IterableError,KeyError,NotImplementedError,RuntimeWarning,StopIteration,UserWarning,ValueError,Warning,__JsIterator__,__PyIterator__,__Terminal__,__add__,__and__,__call__,__class__,__envir__,__eq__,__floordiv__,__ge__,__get__,__getcm__,__getitem__,__getslice__,__getsm__,__gt__,__i__,__iadd__,__iand__,__idiv__,__ijsmod__,__ilshift__,__imatmul__,__imod__,__imul__,__in__,__init__,__ior__,
__ipow__,__irshift__,__isub__,__ixor__,__jsUsePyNext__,__jsmod__,__k__,__kwargtrans__,__le__,__lshift__,__lt__,__matmul__,__mergefields__,__mergekwargtrans__,__mod__,__mul__,__ne__,__neg__,__nest__,__or__,__pow__,__pragma__,__proxy__,__pyUseJsNext__,__rshift__,__setitem__,__setproperty__,__setslice__,__sort__,__specialattrib__,__sub__,__super__,__t__,__terminal__,__truediv__,__withblock__,__xor__,abs,all,any,assert,bool,bytearray,bytes,callable,chr,copy,deepcopy,delattr,dict,dir,divmod,enumerate,
filter,float,getattr,hasattr,input,int,isinstance,issubclass,len,list,map,max,min,object,ord,pow,print,property,py_TypeError,py_iter,py_metatype,py_next,py_reversed,py_typeof,range,repr,round,set,setattr,sorted,str,sum,tuple,zip}from"./org.transcrypt.__runtime__.js";import{OpenFile}from"./binana._utils.shim.js";import*as shim from"./binana._utils.shim.js";import*as __module_binana__ from"./binana.js";__nest__(binana,"",__module_binana__);export{shim,OpenFile};var __name__="binana.fs";export var save_file=
filter,float,getattr,hasattr,input,int,isinstance,issubclass,len,list,map,max,min,object,ord,pow,print,property,py_TypeError,py_iter,py_metatype,py_next,py_reversed,py_typeof,range,repr,round,set,setattr,sorted,str,sum,tuple,zip}from"./org.transcrypt.__runtime__.js";import{OpenFile}from"./binana._utils.shim.js";import*as shim from"./binana._utils.shim.js";import*as __module_binana__ from"./binana.js";__nest__(binana,"",__module_binana__);export{OpenFile,shim};var __name__="binana.fs";export var save_file=
function(filename,text){var f=OpenFile(filename,"w");f.write(text);f.close()};export var ls=function(){print(binana._utils.shim.fake_fs.py_keys())};export var load_file=function(filename){var f=OpenFile(filename,"r");var txt=f.read();f.close();return txt};
//# sourceMappingURL=binana.fs.map
\ No newline at end of file
......@@ -7,8 +7,8 @@ __ipow__,__irshift__,__isub__,__ixor__,__jsUsePyNext__,__jsmod__,__k__,__kwargtr
filter,float,getattr,hasattr,input,int,isinstance,issubclass,len,list,map,max,min,object,ord,pow,print,property,py_TypeError,py_iter,py_metatype,py_next,py_reversed,py_typeof,range,repr,round,set,setattr,sorted,str,sum,tuple,zip}from"./org.transcrypt.__runtime__.js";import*as _closest from"./binana.interactions._closest.js";import*as _close from"./binana.interactions._close.js";import*as _electrostatic_energies from"./binana.interactions._electrostatic_energies.js";import*as _flexibility from"./binana.interactions._flexibility.js";
import*as _hydrophobics from"./binana.interactions._hydrophobics.js";import*as _hydrogen_bonds from"./binana.interactions._hydrogen_bonds.js";import*as _ligand_atom_types from"./binana.interactions._ligand_atom_types.js";import*as _pi_pi from"./binana.interactions._pi_pi.js";import*as _salt_bridges from"./binana.interactions._salt_bridges.js";import*as _cat_pi from"./binana.interactions._cat_pi.js";import*as __module_binana_interactions__ from"./binana.interactions.js";__nest__(binana,"interactions",
__module_binana_interactions__);import*as __module_binana__ from"./binana.js";__nest__(binana,"",__module_binana__);import{ACTIVE_SITE_FLEXIBILITY_DIST_CUTOFF,CATION_PI_DIST_CUTOFF,CLOSE_CONTACTS_DIST1_CUTOFF,CLOSE_CONTACTS_DIST2_CUTOFF,ELECTROSTATIC_DIST_CUTOFF,HYDROGEN_BOND_ANGLE_CUTOFF,HYDROGEN_BOND_DIST_CUTOFF,HYDROPHOBIC_DIST_CUTOFF,PI_PADDING_DIST,PI_PI_INTERACTING_DIST_CUTOFF,PI_STACKING_ANGLE_TOLERANCE,SALT_BRIDGE_DIST_CUTOFF,T_STACKING_ANGLE_TOLERANCE,T_STACKING_CLOSEST_DIST_CUTOFF}from"./binana.interactions.default_params.js";
import{_set_default}from"./binana._utils.shim.js";import*as default_params from"./binana.interactions.default_params.js";export{_hydrogen_bonds,_closest,CLOSE_CONTACTS_DIST1_CUTOFF,HYDROPHOBIC_DIST_CUTOFF,_set_default,ACTIVE_SITE_FLEXIBILITY_DIST_CUTOFF,HYDROGEN_BOND_ANGLE_CUTOFF,_hydrophobics,_close,default_params,_ligand_atom_types,_electrostatic_energies,_flexibility,_salt_bridges,_pi_pi,_cat_pi,T_STACKING_CLOSEST_DIST_CUTOFF,CATION_PI_DIST_CUTOFF,ELECTROSTATIC_DIST_CUTOFF,SALT_BRIDGE_DIST_CUTOFF,
CLOSE_CONTACTS_DIST2_CUTOFF,HYDROGEN_BOND_DIST_CUTOFF,T_STACKING_ANGLE_TOLERANCE,PI_PI_INTERACTING_DIST_CUTOFF,PI_PADDING_DIST,PI_STACKING_ANGLE_TOLERANCE};var __name__="binana.interactions";export var get_cation_pi=function(ligand,receptor,cutoff,pi_padding){if(typeof cutoff=="undefined"||cutoff!=null&&cutoff.hasOwnProperty("__kwargtrans__"))var cutoff=null;if(typeof pi_padding=="undefined"||pi_padding!=null&&pi_padding.hasOwnProperty("__kwargtrans__"))var pi_padding=null;var cutoff=_set_default(cutoff,
import{_set_default}from"./binana._utils.shim.js";import*as default_params from"./binana.interactions.default_params.js";export{ACTIVE_SITE_FLEXIBILITY_DIST_CUTOFF,PI_PADDING_DIST,PI_PI_INTERACTING_DIST_CUTOFF,_flexibility,HYDROPHOBIC_DIST_CUTOFF,_hydrophobics,_hydrogen_bonds,CLOSE_CONTACTS_DIST2_CUTOFF,HYDROGEN_BOND_DIST_CUTOFF,T_STACKING_ANGLE_TOLERANCE,_closest,PI_STACKING_ANGLE_TOLERANCE,_set_default,default_params,SALT_BRIDGE_DIST_CUTOFF,CATION_PI_DIST_CUTOFF,_close,T_STACKING_CLOSEST_DIST_CUTOFF,
_ligand_atom_types,_cat_pi,_pi_pi,_salt_bridges,_electrostatic_energies,HYDROGEN_BOND_ANGLE_CUTOFF,CLOSE_CONTACTS_DIST1_CUTOFF,ELECTROSTATIC_DIST_CUTOFF};var __name__="binana.interactions";export var get_cation_pi=function(ligand,receptor,cutoff,pi_padding){if(typeof cutoff=="undefined"||cutoff!=null&&cutoff.hasOwnProperty("__kwargtrans__"))var cutoff=null;if(typeof pi_padding=="undefined"||pi_padding!=null&&pi_padding.hasOwnProperty("__kwargtrans__"))var pi_padding=null;var cutoff=_set_default(cutoff,
CATION_PI_DIST_CUTOFF);var pi_padding=_set_default(pi_padding,PI_PADDING_DIST);return _cat_pi.get_cation_pi(ligand,receptor,cutoff,pi_padding)};export var get_salt_bridges=function(ligand,receptor,cutoff){if(typeof cutoff=="undefined"||cutoff!=null&&cutoff.hasOwnProperty("__kwargtrans__"))var cutoff=null;var cutoff=_set_default(cutoff,SALT_BRIDGE_DIST_CUTOFF);return _salt_bridges.get_salt_bridges(ligand,receptor,cutoff)};export var get_pi_pi=function(ligand,receptor,pi_pi_general_dist_cutoff,pi_stacking_angle_tol,
t_stacking_angle_tol,t_stacking_closest_dist_cutoff,pi_padding){if(typeof pi_pi_general_dist_cutoff=="undefined"||pi_pi_general_dist_cutoff!=null&&pi_pi_general_dist_cutoff.hasOwnProperty("__kwargtrans__"))var pi_pi_general_dist_cutoff=null;if(typeof pi_stacking_angle_tol=="undefined"||pi_stacking_angle_tol!=null&&pi_stacking_angle_tol.hasOwnProperty("__kwargtrans__"))var pi_stacking_angle_tol=null;if(typeof t_stacking_angle_tol=="undefined"||t_stacking_angle_tol!=null&&t_stacking_angle_tol.hasOwnProperty("__kwargtrans__"))var t_stacking_angle_tol=
null;if(typeof t_stacking_closest_dist_cutoff=="undefined"||t_stacking_closest_dist_cutoff!=null&&t_stacking_closest_dist_cutoff.hasOwnProperty("__kwargtrans__"))var t_stacking_closest_dist_cutoff=null;if(typeof pi_padding=="undefined"||pi_padding!=null&&pi_padding.hasOwnProperty("__kwargtrans__"))var pi_padding=null;var pi_pi_general_dist_cutoff=_set_default(pi_pi_general_dist_cutoff,PI_PI_INTERACTING_DIST_CUTOFF);var pi_stacking_angle_tol=_set_default(pi_stacking_angle_tol,PI_STACKING_ANGLE_TOLERANCE);
......
......@@ -5,7 +5,7 @@
'use strict';var binana={};import{AssertionError,AttributeError,BaseException,DeprecationWarning,Exception,IndexError,IterableError,KeyError,NotImplementedError,RuntimeWarning,StopIteration,UserWarning,ValueError,Warning,__JsIterator__,__PyIterator__,__Terminal__,__add__,__and__,__call__,__class__,__envir__,__eq__,__floordiv__,__ge__,__get__,__getcm__,__getitem__,__getslice__,__getsm__,__gt__,__i__,__iadd__,__iand__,__idiv__,__ijsmod__,__ilshift__,__imatmul__,__imod__,__imul__,__in__,__init__,__ior__,
__ipow__,__irshift__,__isub__,__ixor__,__jsUsePyNext__,__jsmod__,__k__,__kwargtrans__,__le__,__lshift__,__lt__,__matmul__,__mergefields__,__mergekwargtrans__,__mod__,__mul__,__ne__,__neg__,__nest__,__or__,__pow__,__pragma__,__proxy__,__pyUseJsNext__,__rshift__,__setitem__,__setproperty__,__setslice__,__sort__,__specialattrib__,__sub__,__super__,__t__,__terminal__,__truediv__,__withblock__,__xor__,abs,all,any,assert,bool,bytearray,bytes,callable,chr,copy,deepcopy,delattr,dict,dir,divmod,enumerate,
filter,float,getattr,hasattr,input,int,isinstance,issubclass,len,list,map,max,min,object,ord,pow,print,property,py_TypeError,py_iter,py_metatype,py_next,py_reversed,py_typeof,range,repr,round,set,setattr,sorted,str,sum,tuple,zip}from"./org.transcrypt.__runtime__.js";import*as _get_params from"./binana._cli_params._get_params.js";import*as _start from"./binana._start.js";import*as output from"./binana.output.js";import*as interactions from"./binana.interactions.js";import*as load_ligand_receptor from"./binana.load_ligand_receptor.js";
import*as fs from"./binana.fs.js";import*as __module_binana__ from"./binana.js";__nest__(binana,"",__module_binana__);export{interactions,_start,load_ligand_receptor,fs,_get_params,output};var __name__="__main__";export var _sys=binana.sys;export var run=function(args){if(typeof args=="undefined"||args!=null&&args.hasOwnProperty("__kwargtrans__"))var args=null;console.warn("You probably don't want to call this using JavaScript (Python-only function).");if(args===null)var args=_sys.argv.__getslice__(0,
import*as fs from"./binana.fs.js";import*as __module_binana__ from"./binana.js";__nest__(binana,"",__module_binana__);export{fs,load_ligand_receptor,interactions,output,_get_params,_start};var __name__="__main__";export var _sys=binana.sys;export var run=function(args){if(typeof args=="undefined"||args!=null&&args.hasOwnProperty("__kwargtrans__"))var args=null;console.warn("You probably don't want to call this using JavaScript (Python-only function).");if(args===null)var args=_sys.argv.__getslice__(0,
null,1);else for(var [i,a]of enumerate(args))args[i]=str(a);var cmd_params=_get_params.CommandLineParameters(args);if(cmd_params.params["test"])return;else if(cmd_params.okay_to_proceed()==false){print("Error: You need to specify the ligand and receptor PDBQT files to analyze using\nthe -receptor and -ligand tags from the command line.\n");_sys.exit(0);return}if(cmd_params.error!=""){print("Warning: The following command-line parameters were not recognized:");print(" "+cmd_params.error+"\n")}_start._get_all_interactions(cmd_params)};
//# sourceMappingURL=binana.map
\ No newline at end of file
......@@ -5,7 +5,7 @@
'use strict';var binana={};var math={};import{AssertionError,AttributeError,BaseException,DeprecationWarning,Exception,IndexError,IterableError,KeyError,NotImplementedError,RuntimeWarning,StopIteration,UserWarning,ValueError,Warning,__JsIterator__,__PyIterator__,__Terminal__,__add__,__and__,__call__,__class__,__envir__,__eq__,__floordiv__,__ge__,__get__,__getcm__,__getitem__,__getslice__,__getsm__,__gt__,__i__,__iadd__,__iand__,__idiv__,__ijsmod__,__ilshift__,__imatmul__,__imod__,__imul__,__in__,
__init__,__ior__,__ipow__,__irshift__,__isub__,__ixor__,__jsUsePyNext__,__jsmod__,__k__,__kwargtrans__,__le__,__lshift__,__lt__,__matmul__,__mergefields__,__mergekwargtrans__,__mod__,__mul__,__ne__,__neg__,__nest__,__or__,__pow__,__pragma__,__proxy__,__pyUseJsNext__,__rshift__,__setitem__,__setproperty__,__setslice__,__sort__,__specialattrib__,__sub__,__super__,__t__,__terminal__,__truediv__,__withblock__,__xor__,abs,all,any,assert,bool,bytearray,bytes,callable,chr,copy,deepcopy,delattr,dict,dir,
divmod,enumerate,filter,float,getattr,hasattr,input,int,isinstance,issubclass,len,list,map,max,min,object,ord,pow,print,property,py_TypeError,py_iter,py_metatype,py_next,py_reversed,py_typeof,range,repr,round,set,setattr,sorted,str,sum,tuple,zip}from"./org.transcrypt.__runtime__.js";import*as _math_functions from"./binana._utils._math_functions.js";import{Mol as _Mol}from"./binana._structure.mol.js";import{Point as _Point}from"./binana._structure.point.js";import*as __module_math__ from"./math.js";
__nest__(math,"",__module_math__);import*as __module_binana__ from"./binana.js";__nest__(binana,"",__module_binana__);export{_Mol,_math_functions,_Point};var __name__="binana.load_ligand_receptor";export var _ligand_receptor_dists=null;export var _ligand_receptor_aromatic_dists=null;export var from_texts=function(ligand_text,receptor_text){var ligand=_Mol();ligand.load_pdb_from_text(ligand_text);var receptor=_Mol();receptor.load_pdb_from_text(receptor_text);receptor.assign_secondary_structure();_clear_cache();
__nest__(math,"",__module_math__);import*as __module_binana__ from"./binana.js";__nest__(binana,"",__module_binana__);export{_Mol,_Point,_math_functions};var __name__="binana.load_ligand_receptor";export var _ligand_receptor_dists=null;export var _ligand_receptor_aromatic_dists=null;export var from_texts=function(ligand_text,receptor_text){var ligand=_Mol();ligand.load_pdb_from_text(ligand_text);var receptor=_Mol();receptor.load_pdb_from_text(receptor_text);receptor.assign_secondary_structure();_clear_cache();
return tuple([ligand,receptor])};export var from_files=function(ligand_filename,receptor_filename){var ligand=_Mol();ligand.load_pdb_file(ligand_filename);var receptor=_Mol();receptor.load_pdb_file(receptor_filename);receptor.assign_secondary_structure();_clear_cache();return tuple([ligand,receptor])};export var _clear_cache=function(){_ligand_receptor_dists=null;_ligand_receptor_aromatic_dists=null};export var _get_ligand_receptor_dists=function(ligand,receptor){if(_ligand_receptor_dists!==null)return _ligand_receptor_dists;
_ligand_receptor_dists=[];for(var ligand_atom_index of ligand.all_atoms.py_keys())for(var receptor_atom_index of receptor.all_atoms.py_keys()){var ligand_atom=ligand.all_atoms[ligand_atom_index];var receptor_atom=receptor.all_atoms[receptor_atom_index];var dist=ligand_atom.coordinates.dist_to(receptor_atom.coordinates);_ligand_receptor_dists.append(tuple([ligand_atom,receptor_atom,dist]))}return _ligand_receptor_dists};export var _get_ligand_receptor_aromatic_dists=function(ligand,receptor,pi_pi_general_dist_cutoff){if(_ligand_receptor_aromatic_dists!==
null)return _ligand_receptor_aromatic_dists;_ligand_receptor_aromatic_dists=[];for(var ligand_aromatic of ligand.aromatic_rings)for(var receptor_aromatic of receptor.aromatic_rings){var dist=ligand_aromatic.center.dist_to(receptor_aromatic.center);if(dist<pi_pi_general_dist_cutoff){var ligand_aromatic_norm_vector=_Point(ligand_aromatic.plane_coeff[0],ligand_aromatic.plane_coeff[1],ligand_aromatic.plane_coeff[2]);var receptor_aromatic_norm_vector=_Point(receptor_aromatic.plane_coeff[0],receptor_aromatic.plane_coeff[1],
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment