cpg_flow.targets.helpers
This module provides helper functions for handling sequencing type subdirectories.
Functions: seq_type_subdir: Returns a subdirectory name based on the sequencing type from the configuration.
1""" 2This module provides helper functions for handling sequencing type subdirectories. 3 4Functions: 5 seq_type_subdir: Returns a subdirectory name based on the sequencing type from the configuration. 6 7""" 8 9from cpg_utils.config import get_config 10 11 12def seq_type_subdir() -> str: 13 """ 14 Subdirectory parametrised by sequencing type. For genomes, we don't prefix at all. 15 """ 16 seq_type = get_config()["workflow"].get("sequencing_type") 17 return "" if not seq_type or seq_type == "genome" else seq_type
def
seq_type_subdir() -> str:
13def seq_type_subdir() -> str: 14 """ 15 Subdirectory parametrised by sequencing type. For genomes, we don't prefix at all. 16 """ 17 seq_type = get_config()["workflow"].get("sequencing_type") 18 return "" if not seq_type or seq_type == "genome" else seq_type
Subdirectory parametrised by sequencing type. For genomes, we don't prefix at all.