DataSAIL

DataSAIL is an open-source software tool that splits machine learning datasets while minimizing Information Leakage. It formulates the splitting of a dataset as a constrained minimization problem and optimizes the data split towards an objective function that accounts for information leakage.

8
mentions
3
contributors

Cite this software

What DataSAIL can do for you

DataSAIL: Data Splitting Against Information Leaking

testing docs-image codecov anaconda update license downloads Python 3 DOI

DataSAIL: platforms DataSAIL-lite: platforms

DataSAIL is a tool that splits data while minimizing Information Leakage. This tool formulates the splitting of a dataset as a constrained minimization problem and computes the assignment of data points to splits while minimizing the objective function that accounts for information leakage.

Internally, DataSAIL uses disciplined quasi-convex programming and binary quadratic programs to formulate the optimization task. DataSAIL utilizes solves like SCIP, one of the fastest non-commercial solvers for this type of problem, and MOSEK, a commercial solver that distributes free licenses for academic use. There are other options; please check the documentation.

Apart from the short overview, you can find a more detailed explanation of the tool on ReadTheDocs.

Installation

DataSAIL is installable from conda using mamba. using

mamba create -n sail -c conda-forge -c kalininalab -c bioconda datasail
conda activate sail
pip install grakel

to install it into a new empty environment or

mamba install -c conda-forge -c kalininalab -c bioconda -c mosek datasail
pip install grakel

to install DataSAIL in an already existing environment. Alternatively, one can install DataSAIL-lite from conda. DataSAIL-lite is a version of DataSAIL that does not install all clustering algorithms as the standard DataSAIL.

DataSAIL is available for Python 3.8 and newer.

Usage

DataSAIL is installed as a command-line tool. So, in the conda environment, DataSAIL has been installed to, you can run

datasail --e-type P --e-data <path_to_fasta> --e-sim mmseqs --output <path_to_output_path> --technique C1e

to split a set of proteins that have been clustered using mmseqs. For a full list of arguments, run datasail -h and checkout ReadTheDocs. There is a more detailed explanation of the arguments and example notebooks.

When to use DataSAIL and when not to use

One can distinguish two main ways to train a machine-learning model on biological data.

  • Either the model shall be applied to data substantially different from the data to train on. In this case, it is essential to have test cases that correctly model this real-world application scenario by being as dissimilar as possible to the training data.
  • Or the training dataset already covers the whole space of possible samples shown to the model.

DataSAIL is created to compute complex data splits by separating data based on similarities. This makes complex data splits for the first scenario. So, you can use DataSAIL when your model is applied to data
different from your training data but not if the data in the application is more or less the same as in the training.

Citation

If you used DataSAIL to split your data, please cite DataSAIL in your publication.

@article{joeres2023datasail,
  title={DataSAIL: Data Splitting Against Information Leakage},
  author={Joeres, Roman and Blumenthal, David B. and Kalinina, Olga V},
  journal={bioRxiv},
  pages={2023--11},
  year={2023},
  publisher={Cold Spring Harbor Laboratory}
}
Logo of DataSAIL
Keywords
Programming languages
  • Python 98%
  • Smarty 2%
License
</>Source code

Participating organisations

Hel

Reference papers

Mentions

Contributors

OK
Olga Kalinina
Supervisor
Helmholtz Institute for Pharmaceutical Research Saarland
AG
Alexander Gress
Contributor
Helmholtz Institute for Pharmaceutical Research Saarland