Various miscellaneous functions
amoptd_fix_path
(optd, newroot, i2mock=False)[source]¶Update all the paths in an AMPLE results dictionary to be rooted at newroot
Parameters: |
|
---|
ccp4_version
()[source]¶Get CCP4 version as a tuple
Returns: |
|
---|
construct_references
(optd)[source]¶Construct the reference list
Parameters: |
|
---|---|
Returns: |
|
filename_append
(filename=None, astr=None, directory=None, separator=’_’)[source]¶Append astr to filename, before the suffix, and return the new filename.
find_exe
(executable, dirs=None)[source]¶Find the executable exename.
Parameters: |
|
---|
ideal_helices
(optd)[source]¶Get some ideal helices
Parameters: |
|
---|---|
Returns: |
|
is_exe
(fpath)[source]¶Check if an executable exists
Parameters: |
|
---|---|
Returns: |
|
is_file
(fpath)[source]¶Check if a file exists
Parameters: |
|
---|
make_workdir
(run_dir, ccp4i2=False)[source]¶Make a work directory rooted at run_dir and return its path
Parameters: |
|
---|---|
Returns: |
|
read_amoptd
(amoptd_fname)[source]¶Read a PICKLE-formatted AMPLE options file
Parameters: |
|
---|---|
Returns: |
|
run_command
(cmd, logfile=None, directory=None, dolog=True, stdin=None, check=False, **kwargs)[source]¶Execute a command and return the exit code.
Parameters: |
|
---|---|
Returns: |
|
Notes
We take care of outputting stuff to the logs and opening/closing logfiles
saveAmoptd
(*args)[source]¶Save AMPLE options to a PICKLE-formatted file
Warning
This function was deprecated and will be removed in future releases. Please use save_amoptd()
instead.
See also
save_amoptd
(amoptd)[source]¶Save AMPLE options to a PICKLE-formatted file
Parameters: |
|
---|
split_models
(dfile, directory)[source]¶Split a single PDB with multiple models in individual PDB files
Parameters: |
|
---|---|
Returns: |
|
split_quark
(*args)[source]¶Split a single PDB with multiple models in individual PDB files
See also
tmpFileName
()[source]¶Return a filename for a temporary file
Warning
This function was deprecated and will be removed in future releases. Please use tmp_file_name()
instead.
See also
tmp_file_name
(delete=True, directory=None, suffix=”)[source]¶Return a filename for a temporary file
Parameters: |
|
---|