phe.utils

Submodules

Module contents

calculate_memory_for_sort()[source]

Calculate available memory for samtools sort function. If there is enough memory, no temp files are created. Enough is defined as at least 1G per CPU.

Returns:

sort_memory: str or None

String to use directly with -m option in sort, or None.