starling.utilities

Functions

check_device

Function to check the device was correctly set.

check_distance_map_for_error

Check a distance map for physically impossible inter-residue distances.

check_file_exists

Function to check if a file exists.

fix_ref_to_home

Function to fix the path to the home directory.

get_data

get_macOS_version

Function to check the macOS version.

get_off_diagonals

Function to calculate the the off-diagonal elements of a matrix.

helix_dm

Generate an L x L distance matrix for an alpha-helix made of L residues.

parse_output_path

Parse the output path from the command line arguments.

read_starling_ensemble

Function to read a STARLING ensemble from a file in the STARLING format (.starling) or a compressed starling file (.gzip, .xz).

remove_extension

Function to remove the extension from a file.

symmetrize_distance_maps

Symmetrizes a stack of distance maps along an axis by reflecting the upper triangle onto the lower triangle and setting the diagonal values to zero.

write_starling_ensemble

Function to write the STARLING ensemble to a file in the STARLING format (.starling).