bulkdgd get genes
This command allows you to create customized lists of genes to use with the bulkDGD model.
bulkdgd get genes takes in input a YAML configuration file containing:
The
attributesto retrieve for the genes of interest from the Ensembl database.The
filtersto use on the genes retrieved from the Ensembl database (to keep, for instance, only protein-coding genes or genes producing only protein-coding transcripts).
The command produces two output files:
A CSV file containing the
attributesfor the genes passing all thefilters.A plain text file containing the Ensembl IDs of the genes reported in the CSV file. This file can be directly used when setting up a new instance of the bulkDGD model or preprocessing a set of samples to be used with the model.
Parallelization
If the command is parallelized over several configuration files, each is assumed to be identically named and placed in a different directory. The paths to such directories must be specified using the -ds, --dirs option (see the full description in the Parallelization options section below) and must be relative to the specified working directory (-d, --work-dir option).
The configuration files must be placed in different directories and referenced by their corresponding options by name (not path).
The output and log files for each run will be written in the directory where the corresponding input/configuration files were placed. If the command is not parallelized, these files will be written in the working directory.
Command line
bulkdgd get genes [-h] [-ol OUTPUT_LIST] [-oa OUTPUT_ATTRIBUTES] -cg CONFIG_FILE_GENES [-d WORK_DIR] [-lf LOG_FILE] [-lc] [-v] [-vv] [-p] [-n N_PROC] [-ds DIRS [DIRS ...]]
Options
Help options
Option |
Description |
|---|---|
|
Show the help message and exit. |
Output files
Option |
Description |
|---|---|
|
The name of the output plain text file containing the list of genes of interest, identified using their Ensembl IDs. The default file name is |
|
The name of the output CSV file containing the attributes retrieved from the Ensembl database for the genes of interest. The default file name is |
Configuration files
Option |
Description |
|---|---|
|
The YAML configuration file containing the options used to query the Ensembl database for the genes of interest. If it is a name without an extension, it is assumed to be the name of a configuration file in |
Working directory options
Option |
Description |
|---|---|
|
The working directory. The default is the current working directory. |
Logging options
Option |
Description |
|---|---|
|
The name of the log file. The default file name is |
|
Show log messages also on the console. |
|
Enable verbose logging (INFO level). |
|
Enable maximally verbose logging for debugging purposes (DEBUG level). |
Parallelization options
Option |
Description |
|---|---|
|
Whether to run the command in parallel. |
|
The number of processes to start. The default number of processes started is 1. |
|
The directories containing the input/configuration files. It can be either a list of names or paths, a pattern that the names or paths match, or a plain text file containing the names of or the paths to the directories. If names are given, the directories are assumed to be inside the working directory. If paths are given, they are assumed to be relative to the working directory. |