Releases: Center-for-Health-Data-Science/bulkDGD
Version 1.0.5
Version 1.0.4
[v1.0.4] - 2024-07-29
Internal changes
- Added the
uniquify_file_path()function to thebulkDGD.core.modelmodule because if imported frombulkDGD.utilthe documentation would not build correctly.
Version 1.0.3
[v1.0.3] - 2024-07-23
Several updates to the Recount3 sub-package.
Other changes:
-
Fixed a bug with the
bulkDGD.util.get_handlersfunction. -
Removed the batch number from the name of the output files in
dgd_get_recount3_data.
Internal changes (for contributors):
- The
recount3.util._check_categoryfunction was removed (together with the associatedrecount3.defaults.RECOUNT3_SUPPORTED_CATEGORIES_FILEvalue the text files inrecount3/dataused for checking) because it added an unnecessary layer of complexity (the download will fail anyway and will report the error if the GTEx/TCGA/SRA code is incorrect).
Version 1.0.2
[v1.0.2] - 2024-07-22
Bug fixes
- Committed and pushed the bulkDGD/util.py file, which was not included in the previous release.
Version 1.0.1
[v1.0.1] - 2024-07-18
API-breaking changes:
- The output data frames produced by the
dgd_get_recount3_dataexecutable now contain both gene expression data and metadata unless otherwise filtered (see below).
Other changes:
-
Now the
experiment_attributescolumn, if present in the metadata columns of an SRA study, will be split into its constituent components when writing the output data frames for thedgd_get_recount3_dataexecutable (as it is already the case with thesample_attributescolumn). -
The user can now pass a YAML file to
dgd_get_recount3_datato download data from the Recount3 platform in bulk and filter them. -
The user can now pass
metadata_to_keepandmetadata_to_droplists of metadata columns in the input file todgd_get_recount3_datato keep or drop specific metadata columns in the output data frames. These can be passed both as columns if the input file is a CSV file or as specific keywords if the input file is a YAML file. -
The
recount3.util.get_metadatafunction now returns the metadata data frame with therecount3_project_nameandrecount3_samples_categorycolumns added. -
The
model_untrained.yamlconfiguration file was added to the examples of configuration files available within the package.
Internal changes (for contributors):
-
Two new internal functions in the
bulkDGD.recount3.utilmodule (_load_samples_batches_csv'andload_samples_batches_yaml) were introduced to parse the input files todgd_get_recount3_data. The public functionload_samples_batchessimply calls one of them depending on the file's extension. -
The
bulkDGD.util.get_handlersfunction now accepts two new arguments,log_level_consoleandlog_level_fileinstead of the oldlog_levelto have more fine-grained control over the log level of the handlers. -
The log level of the console handler for the
_dgd_get_recount3_data_single_batchexecutable was changed to ERROR so as not to clutter the console too much with all the INFO messages from the subprocesses (which get logged to their own log files anyway if the overall log level is INFO or below). -
The header of the
bulkDGD/recount3/data/sra_metadata_fields.txtfile was changed to better describe the metadata fields included in it.
Documentation:
-
The documentation was updated to reflect the user-facing changes.
-
The readme files for the configurations were removed because of the redundancy in the content of the documentation and the configuration files themselves.
Version 1.0.0
[v1.0.0] - 2024-07-07
Added
-
The
train()method was added to the 'core.model.DGDModel' class to train the DGD model. -
The
dgd_trainexecutable was added to train the DGD model using the command line. -
A new type of configuration file containing the options to train the DGD model is available. An example can be found in the newly created
bulkDGD/ioutil/configs/trainingdirectory inside the package. This file, along with the other configuration files, is installed with the package. -
A new example of a configuration file (
model_untrained.yaml) containing the options to set up the DGD model is available in the 'bulkDGD/ioutil/configs/model' directory for when the model needs to be set up before training. -
The documentation now includes a new tutorial on how to train the DGD model (Tutorial 3).
-
The
load_loss()andsave_loss()functions were introduced in the newbulkDGD.ioutil.lossiomodule to load and save CSV files containing the losses reported during the training procedure.
API-breaking changes
- The configuration file used to find the representations for new samples now has a new format. Please take a look at the documentation for a detailed explanation of the new format. The format is not backward compatible.
Internal changes (for contributors)
-
The
_get_data_loader()method has been introduced into thecore.model.DGDModelclass to create data loaders. -
There is now only one internal method in the
core.model.DGDModelclass responsible for optimizing one or multiple representations for a set of samples,_optimize_rep(). The_get_representations_one_opt()and the_get_representations_two_opt()methods have been updated accordingly. -
New sanity checks have been introduced when loading configurations (
ioutil.configiomodule). -
A new
_get_final_dataframes_trainmethod has been introduced to create the data frames produced by the newtrain()method in thecore.model.DGDModelclass.
Notes
-
The documentation was updated to reflect all changes made to the codebase.
-
Anders Lykkebo-Valløe is now a contributor.
-
Andreas Bjerregaard is now a contributor.