Data analysis Edit me
What are the best practices for data analysis?
When carrying out your analysis, you should also keep in mind that all your data analysis has to be reproducible. This will complement your research data management approach since your data will be FAIR compliant but also your tools and analysis environments. In other words, you should be able to tell what data and what code or tools were used to generate your results.
This will help to tackle reproducibility problems but also will improve the impact of your research through collaborations with scientists who will reproduce your in silico experiments.
There are many ways that will bring reproducibility to your data analysis. You can act at several levels:
- By providing your code.
- By providing your execution environment.
- By providing your workflows.
- By providing your data analysis execution.
- Make your code available. If you have to develop some software for your data analysis, it is always a good idea to publish your code. The git versioning system offers both a way to release your code but offers also a versioning system. You can also use Git to interact with your software users. Be sure to specify a license for your code (see the licensing section).
- Use package and environment management system. By using package and environment management systems like Conda and its bioinformatics specialized channel Bioconda, researchers that have got access to your code will be able to easily install specific versions of tools, even older ones, in an isolated environment. They will be able to compile/run your code in an equivalent computational environment, including any dependencies such as the correct version of R or particular libraries and command-line tools your code use. You can also share and preserve your setup by specifying in a environment file which tools you installed.
- Use container environments. As an alternative to package management systems you can consider container environments like Docker or Singularity.
- Use workflow management systems. Scientific Workflow management systems will help you organize and automate how computational tools are to be executed. Compared to composing tools using a standalone script, workflow systems also help document the different computational analyses applied to your data, and can help with scalability, such as cloud execution. Reproducibility is also enhanced by the use of workflows, as they typically have bindings for specifying software packages or containers for the tools you use from the workflow, allowing others to re-run your workflow without needing to pre-install every piece of software it needs. It is a flourishing field and many other workflow management systems are available, some of which are general-purpose (e.g. any command line tool), while others are domain-specific and have tighter tool integration. Among the many workflow management systems available, one can mention
- Workflow platforms that manage your data and provide an interface (web, GUI, APIs) to run complex pipelines and review their results. For instance: Galaxy and Arvados (CWL-based, open source).
- Workflow runners that take a workflow written in a proprietary or standardized format (such as the CWL standard) and execute it locally or on a remote compute infrastructure. For instance, toil-cwl-runner, the reference CWL runner (cwltool), Nextflow, Snakemake, Cromwell.
- Use notebooks. Using notebooks, you will be able to create reproducible documents mixing text and code; which can help explain your analysis choices; but also be used as an exploratory method to examine data in detail. Notebooks can be used in conjunction with the other solutions mentioned above, as typically the notebook can be converted to a script. Some of the most well-known notebooks systems are: Jupyter, with built-in support for code in Python, R and Julia, and many other kernels; RStudio based on R. See the table below for additional tools.
How can you use package and environment management systems?
By using package and environment management systems like Conda and its bioinformatics specialized channel Bioconda, you will be able to easily install specific versions of tools, even older ones, in an isolated environment. You can also share and preserve your setup by specifying in a environment file which tools you installed.
Conda works by making a nested folder containing the traditional UNIX directory structure
lib/ but installed from Conda’s repositories instead of from a Linux distribution.
- As such Conda enables consistent installation of computational tools independent of your distribution or operating system version. Conda is available for Linux, macOS and Windows, giving consistent experience across operating systems (although not all software is available for all OSes).
- Package management systems work particularly well for installing free and Open Source software, but can also be useful for creating an isolated environment for installing commercial software packages; for instance if they requires an older Python version than you have pre-installed.
- Conda is one example of a generic package management, but individual programming languages typically have their environment management and package repositories.
- You may want to consider submitting a release of your own code, or at least the general bits of it, to the package repositories for your programming language.
- MacOS-specific package management systems: Homebrew, Macports.
- Windows-specific package management systems: Chocolatey and Windows Package Manager
- Linux distributions also have their own package management systems (
apt) that have a wide variety of tools available, but at the cost of less flexibility in terms of the tool versions, to ensure they exist co-installed.
- Tips and tricks to navigate the landscape of software package management solutions:
- If you need multiple tools/programming languages, but your machines have different OS types or versions, list packages in a Conda
- If you need conflicting versions of some tools/libraries for different operations, make separate Conda environments.
- If you need a few open source libraries for my Python script, none which require complilation, make a
- If you need multiple tools/programming languages, but your machines have different OS types or versions, list packages in a Conda
How can you use container environments?
In short containers works almost like a virtual machine (VMs), in that it re-creates a whole Linux distibution with separation of processes, files and network.
- Containers are more lightweight than VMs since they don’t virtualize hardware. This allows a container to run with a fixed version of the distribution independent of the host, and have just the right, minimal dependencies installed.
- The container isolation also adds a level of isolation, which although not as secure as VMs, can reduce the attack vectors. For instance if the database container was compromised by unwelcome visitors, they would not have access to modify the web server configuration, and the container would not be able to expose additional services to the Internet.
- A big advantage of containers is that there are large registries of community-provided container images.
- Note that modifying things inside a container is harder than in a usual machine, as changes from the image are lost when a container is recreated.
- Typically containers run just one tool or applications, and for service deployment this is useful for instance to run mySQL database in a separate container from a NodeJS application.
- Docker is the most well-known container runtime, followed by Singularity. These require (and could be used to access) system administrator privileges to be set up.
- uDocker and Podman are also user space alternatives that have compatible command line usage.
- Large registries of community-provided container images are Docker Hub and RedHat Quay.io. These are often ready-to-go, not requiring any additional configuration or installations, allowing your application to quickly have access to open source server solutions.
- Biocontainers have a large selection of bioinformatics tools.
- To customize a Docker image, it is possible to use techniques such as volumes to store data and Dockerfile. This is useful for installing your own application inside a new container image, based on a suitable base image where you can do your
apt installand software setup in a reproducible fashion - and share your own application as an image on Docker Hub.
- Container linkage can be done by container composition using tools like Docker Compose.
- More advanced container deployment solutions like Kubernetes and Computational Workflow Management systems can also manage cloud instances and handle analytical usage.
- Tips and tricks to navigate the landscape of container solutions:
- If you just need to run a database server, describe how to run it as a Docker/Singularity container.
- If you need several servers running, connected together, set up containers in Docker Compose.
- If you need to install many things, some of which are not available as packages, make a new
Dockerfilerecipe to build container image.
- If you need to use multiple tools in a pipeline, find Conda or container images, compose them in a Computational Workflow.
- If you need to run tools in a cloud instance, but it has nothing preinstalled, use Conda or containers to ensure installion on cloud VM matches your local machine.
- If you just need a particular open source tool installed, e.g. ImageMagick, check the document how to install: For Ubuntu 20.04, try
apt install imagemagick.
Relevant tools and resources
|Tool or resource||Description||Tags||Registry|
|Amazon Web Services||Amazon Web Services||storage data analysis transfer|
|Arvados||With Arvados, bioinformaticians run and scale compute-intensive workflows, developers create biomedical applications, and IT administrators manage large compute and storage resources.||IT support policy officer researcher data analysis|
|Bioconda||Bioconda is a bioinformatics channel for the Conda package manager||IT support data analysis|
|BoostDM||BoostDM is a method to score all possible point mutations (single base substitutions) in cancer genes for their potential to be involved in tumorigenesis.||data analysis human data|
|CalibraCurve||A highly useful and flexible tool for calibration of targeted MS?based measurements. CalibraCurve enables an automated batch-mode determination of dynamic linear ranges and quantification limits for both targeted proteomics and similar assays. The software uses a variety of measures to assess the accuracy of the calibration and provides intuitive visualizations.||data analysis|
|Cancer Genome Interpreter||Cancer Genome Interpreter (CGI) is designed to support the identification of tumor alterations that drive the disease and detect those that may be therapeutically actionable.||data analysis human data|
|Chipster||Chipster is a user-friendly analysis software for high-throughput data such as RNA-seq and single cell RNA-seq. It contains analysis tools and a large reference genome collection.||csc data analysis researcher IT support|
|Common Workflow Language (CWL)||An open standard for describing workflows that are build from command line tools||IT support policy officer researcher data analysis|
|Conda||Open source package management systemn||IT support data analysis|
|DisGeNET||A discovery platform containing collections of genes and variants associated to human diseases.||data analysis human data researcher|
|Docker||Docker is a software for the execution of applications in virtualized environments called containers. It is linked to DockerHub, a library for sharing container images||IT support data analysis|
|Galaxy||Open, web-based platform for data intensive biomedical research. Whether on the free public server or your own instance, you can perform, reproduce, and share complete analyses.||nels data analysis researcher IT support|
|GENEID||Geneid is an ab initio gene finding program used to predict genes along DNA sequences in a large set of organisms.||data analysis researcher|
|GRAPE 2.0||The GRAPE pipeline provides an extensive pipeline for RNA-Seq analyses. It allows the creation of an automated and integrated workflow to manage, analyse and visualize RNA-Seq data.||data analysis|
|HumanMine||HumanMine integrates many types of human data and provides a powerful query engine, export for results, analysis for lists of data and FAIR access via web services.||data organisation data manager researcher human data data analysis|
|iCloud||Data sharing||storage data analysis transfer|
|IntoGen||IntoGen collects and analyses somatic mutations in thousands of tumor genomes to identify cancer driver genes.||data analysis human data|
|Jupyter||Jupyter notebooks allow to share code, documentation||IT support data analysis|
|LUMI||EuroHPC world-class supercomputer||data analysis researcher IT support csc|
|Nextflow||Nextflow is a framework for data analysis workflow execution||IT support data analysis|
|OpenEBench||ELIXIR benchmarking platform to support community-led scientific benchmarking efforts and the technical monitoring of bioinformatics reosurces||data analysis data manager IT support|
|OTP||One Touch Pipeline (OTP) is a data management platform for running bioinformatics pipelines in a high-throughput setting, and for organising the resulting data and metadata.||human data metadata DMP data analysis|
|OwnCloud||Cloud storage and file sharing service||storage IT support transfer data analysis|
|PAA||PAA is an R/Bioconductor tool for protein microarray data analysis aimed at biomarker discovery.||data analysis researcher human data|
|PIA - Protein Inference Algorithms||PIA is a toolbox for mass spectrometrey based protein inference and identification analysis.||data analysis researcher|
|PMut||Platform for the study of the impact of pathological mutations in protein stuctures.||data analysis human data|
|R Markdown||R Markdown documents are fully reproducible. Use a productive notebook interface to weave together narrative text and code to produce elegantly formatted output. Use multiple languages including R, Python, and SQL.||data analysis researcher|
|Reva||Reva connects cloud storages and application providers||data analysis transfer|
|Rstudio||Rstudio notebooks allow to share code, documentation||data analysis IT support researcher|
|Rucio||Rucio - Scientific Data Management||storage data analysis transfer|
|ScienceMesh||ScienceMesh - frictionless scientific collaboration and access to research services||storage data analysis transfer|
|semares||All-in-one platform for life science data management, semantic data integration, data analysis and visualization||researcher data manager metadata data analysis IT support storage|
|Singularity||Singularity is a container platform.||IT support data analysis|
|Snakemake||Snakemake is a framework for data analysis workflow execution||IT support data analysis|