Util subpackage
Various miscellaneous functions
-
get_sequence
(input_f, output_s)[source]
Output sequence file from input pdb file
-
output_files
(run_dir, result, output_pdb, output_mtz)[source]
Return output pdb/mtz from best result in result obj
-
result_by_score_from_csv
(f, score, ascending=True)[source]
Return result with the best defined score
-
summarize_result
(results, csv_file=None, columns=None)[source]
Summarize the search results
-
tmp_dir
(directory=None, prefix='tmp', suffix='')[source]
Return a filename for a temporary directory
Parameters: |
- directory (str, optional) – Path to a directory to write the files to.
- prefix (str, optional) – A prefix to the temporary filename
- suffix (str, optional) – A suffix to the temporary filename
|
-
tmp_file
(delete=False, directory=None, prefix='tmp', stem=None, suffix='')[source]
Return a filename for a temporary file
The naming convention of scripts will be prefix
+ stem
+ suffix
.
Parameters: |
- delete (bool, optional) – Delete the file, thus return name only [default: True]
- directory (str, optional) – Path to a directory to write the files to
- prefix (str, optional) – A prefix to the temporary filename
- stem (str, optional) – The steam part of the script name
- suffix (str, optional) – A suffix to the temporary filename
|