AlloViz.AlloViz.utils.make_list¶
- AlloViz.AlloViz.utils.make_list(obj, if_all, apply=<function <lambda>>)[source]¶
Process the passed object and return a list of strings
Check if the object is a string, a list, or “all” and return the a list with the appropriate values (if it is the case, after applying the apply function to them). Make the string a list of length 1, return the unedited list, or return the passed if_all object if obj is ‘“all”’. If it is the case, the individual string(s) of the returned list are processed with the passed apply function (default does nothing).
- Parameters:
- objstr or list
String or list to process.
- if_all
Object to return if obj == “all”.
- applyfunc, optional
Function to apply to the list’s strings before returning. Default does nothing.