genomepy.utils.get_localname

genomepy.utils.get_localname(name: Any, localname=None) str

Returns the safe version of the given localname.

If no localname is provided, return the safe version of the name. If the name is a working URL, return the safe version of the filename.