Usefull functions

snakecdysis.useful_function Module

Functions

check_privileges()

used to know if user have root access to reset package installation

convert_genome_size(size)

download_url(tuple_value)

download url to output path.

get_dir(path)

List of directory included on folder

get_files_ext(path, extensions[, add_ext])

List of files with specify extension included on folder

get_files_ext2(path, extensions[, add_ext])

List of files with specify extension included on folder

multiprocessing_download(urls_list[, threads])

Used multiprocessing for download URL list on parallel

sort_human(in_list[, _nsre])

Sort a list with alpha/digit on the way that humans expect,

var_2_bool(key[, tool, to_convert])

convert to boolean

Classes

DownloadProgressBar(*_, **__)

Build progress bar on terminal for downloading url link