snakemake.common.num_if_possible

snakemake.common.num_if_possible(s)[source]

Convert string to number if possible, otherwise return string.