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 attributes to retrieve for the genes of interest from the Ensembl database.

  • The filters to 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 attributes for the genes passing all the filters.

  • 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

-h, --help

Show the help message and exit.

Output files

Option

Description

-ol, --output-list

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 genes_list.txt.

-oa, --output-attributes

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 genes_attributes.txt.

Configuration files

Option

Description

-cg, --config-file-genes

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 $INSTALLDIR/bulkDGD/configs/genes.

Working directory options

Option

Description

-d, --work-dir

The working directory. The default is the current working directory.

Logging options

Option

Description

-lf, --log-file

The name of the log file. The default file name is bulkdgd_get_genes.log.

-lc, --log-console

Show log messages also on the console.

-v, --logging-verbose

Enable verbose logging (INFO level).

-vv, --logging-debug

Enable maximally verbose logging for debugging purposes (DEBUG level).

Parallelization options

Option

Description

-p, --parallelize

Whether to run the command in parallel.

-n, --n-proc

The number of processes to start. The default number of processes started is 1.

-ds, --dirs

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.