tomodrgn.utils.prefix_paths#
- prefix_paths(mrcs: list[str], datadir: str) list[str] [source]#
Test which of various modifications to the image .mrcs files correctly locates the files on disk. Tries no modification; prepending datadir to the basename of each image; prepending datadir to the full path of each image.
- Parameters:
mrcs – list of strings corresponding to the path to each image file specified in the star file (expected format: the path_to_mrc part of index@path_to_mrc)
datadir – str corresponding to absolute or relative path to prepend to mrcs
- Returns:
list of strings corresponding to the confirmed path to each image file