Usefull functions

snakecdysis.usefull_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

multiprocessing_download(urls_list[, threads])

Used multiprocessing for download URL list on parallel

var_2_bool(key, tool, to_convert)

convert to boolean

Classes

DownloadProgressBar(*_, **__)

Build progress bar on terminal for downloading url link

Path(*args, **kwargs)

PurePath subclass that can make system calls.

tqdm(*_, **__)

Decorate an iterable object, returning an iterator which acts exactly like the original iterable, but prints a dynamically updating progressbar every time a value is requested.