utils
Tools for file handling, logger parametrization, dataframe manipulation…
Functions
Converts the dataframe's column names from camel case to snake case, and replace spaces by underscores |
|
|
Function to concatenate values of N columns into a list, excluding NaN |
|
Return the input_path in a PathLike format. |
|
Download idat files from GEO (Gene Expression Omnibus) given one or several GSM ids. |
|
Download a file and save it to the target. |
|
From a string representing the chromosome ID, get the chromosome number. |
|
Get values from one or several columns of a pandas dataframe, and return a flatten list of the values. |
|
Equivalent to Path.rglob() for MultiplexedPath. |
|
Get the current logger and sets its level if the parameter level is defined |
return the current logger level |
|
|
Find the resource folder, and creates it if it doesn't exist and if the parameter is set to True (default) |
|
Load any object from a pickle file: |
|
Merges the alternative chromosomes with their respective reference chromosome, e.g. 22_KI270928V1_ALT-> 22. |
|
Merge the values of a series into a single value. |
|
Remove the last part of a probe ID, split by underscore. |
|
Save any object as a pickle file |
|
Use an existing column specified by argument column as the new channel index. |
|
Change the index of a MultiIndexed DataFrame, to a single Index, using a level of the MultiIndex. |
|
Set the logger verbosity level |