rename_source

msaexp.utils.rename_source(source_name)[source]

This function takes a source name as input and returns the adjusted name according to the following rules:

  • If the source name starts with “background”, it is replaced with “b”.

  • If the source name contains “_-”, it is replaced with “_m”.

Parameters
source_namestr

The original source name.

Returns
namestr

The adjusted source name.