Skip to main content

Expression Atlas metadata validator

This is a Python module to parse a set of MAGE-TAB files and check for compatibility with the Expression Atlas and Single Cell Expression Atlas analysis pipelines. The main validation script automatically detects the experiment type from the MAGE-TAB and runs the respective tests. Currently general checks (for bulk and single-cell experiment) as well as Single Cell Expression Atlas specific checks are supported. The controlled vocabulary for the checks are stored in the metadata-validation-config repository.

Requirements

Python 3.6, requests (tested with version 2.20.1), and GitPython (tested with version 3.1.7)

Install

Install with pip:

pip install atlas-metadata-validator

Set environment variables to fetch the validation configuration for controlled vocabulary terms:

export VALIDATION_CONFIG_REPO='https://github.com/ebi-gene-expression-group/metadata-validation-config'
export VALIDATION_CONFIG_FILE='atlas_validation_config.json'

(if not specified the above values are used as default)

Set local path where to store the validation config files, default is working dir when calling the script

export VALIDATION_CONFIG_LOCAL_PATH='/path/to/your/local/copy/'

Single-cell MAGE-TAB validator

A MAGE-TAB pre-validation module for running checks that guarantee the experiment can be processed for Single Cell Expression Atlas. The checks are mainly covering the pre-validation by https://github.com/ebi-gene-expression-group/scxa-control-workflow/blob/master/bin/sdrfToNfConf.R in order to guarantee correct processing. It reads metadata directly from the MAGE-TAB and generates a log file in the directory of the IDF file.

The checks can be invoked using the atlas_validation script with an IDF file path as input:

atlas_validation.py path/to/test.idf.txt 

Options

  • The SDRF file is expected in the same directory as the IDF file. If this is not the case, the location of the SDRF and other data files can be specified with -d PATH_TO_DATA option.
  • The script guesses the experiment type (sequencing, microarray or single-cell) from the MAGE-TAB. If this was unsuccessful the experiment type can be set by specifying the respective argument -seq, -ma or -sc.
  • The data file and URI checks may take long time. Hence there is an option to skip these checks with -x.
  • Verbose logging can be activated with -v.
  • Special validation rules for HCA-imported experiments can be invoked with -hca option. The validator will otherwise guess if the experiment is an HCA import based on the HCAD accession code in the ExpressionAtlasAccession field.

Metadata

Release files for atlas-metadata-validator 1.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for atlas-metadata-validator 1.4.1
File Size Uploaded
atlas-metadata-validator-1.4.1.tar.gz 10.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for atlas-metadata-validator 1.4.1
File Interpreter ABI Platform
atlas_metadata_validator-1.4.1-py3-none-any.whl Python 3 none any Details

Total release size: 28.0 kB

Release files / atlas-metadata-validator-1.4.1.tar.gz

Download URL atlas-metadata-validator-1.4.1.tar.gz
Size 10.3 kB
Tags Source
SHA-256 checksum
How to use checksums
94217245d3a70c40fef5c7c9c249a4bfb08c462df32bfd233e8e73241f7d957a
BLAKE2b-256 checksum
How to use checksums
dca0e4f1e6374a9ae06b29ca1b5b83a3667113917702ef05423cabb96b22465d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.6

Release files / atlas_metadata_validator-1.4.1-py3-none-any.whl

Download URL atlas_metadata_validator-1.4.1-py3-none-any.whl
Size 17.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ee2a5491b8dcc2c4fc915f8209c4bfb128ca41df4b17657fdf2ef94606660b91
BLAKE2b-256 checksum
How to use checksums
2ef91cdab7185997e36368bd2c20df304f1a42f0362b74e67be179da06911ea3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.6

Release history Release notifications | RSS feed

1.6.1

2 release files

1.6.0

1 release file

1.5.0

1 release file

This release

1.4.1 This release

2 release files

1.4.0

2 release files

1.3.0

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page