eva-sub-cli 0.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- eva_sub_cli-0.4/.github/workflows/publish_packages.yml +45 -0
- eva_sub_cli-0.4/.github/workflows/tests.yml +35 -0
- eva_sub_cli-0.4/.gitignore +135 -0
- eva_sub_cli-0.4/Getting_Started_with_eva_sub_cli.md +128 -0
- eva_sub_cli-0.4/LICENSE +201 -0
- eva_sub_cli-0.4/PKG-INFO +169 -0
- eva_sub_cli-0.4/README.md +140 -0
- eva_sub_cli-0.4/conda/build.sh +48 -0
- eva_sub_cli-0.4/conda/meta.yaml +57 -0
- eva_sub_cli-0.4/docker/Dockerfile +28 -0
- eva_sub_cli-0.4/eva_sub_cli/__init__.py +27 -0
- eva_sub_cli-0.4/eva_sub_cli/_version.py +16 -0
- eva_sub_cli-0.4/eva_sub_cli/auth.py +106 -0
- eva_sub_cli-0.4/eva_sub_cli/date_utils.py +32 -0
- eva_sub_cli-0.4/eva_sub_cli/etc/EVA_Submission_template.xlsx +0 -0
- eva_sub_cli-0.4/eva_sub_cli/etc/eva-biosamples.json +174 -0
- eva_sub_cli-0.4/eva_sub_cli/etc/eva_logo.png +0 -0
- eva_sub_cli-0.4/eva_sub_cli/etc/eva_schema.json +369 -0
- eva_sub_cli-0.4/eva_sub_cli/etc/spreadsheet2json_conf.yaml +135 -0
- eva_sub_cli-0.4/eva_sub_cli/exceptions/__init__.py +0 -0
- eva_sub_cli-0.4/eva_sub_cli/exceptions/submission_not_found_exception.py +4 -0
- eva_sub_cli-0.4/eva_sub_cli/exceptions/submission_status_exception.py +5 -0
- eva_sub_cli-0.4/eva_sub_cli/executables/__init__.py +0 -0
- eva_sub_cli-0.4/eva_sub_cli/executables/check_fasta_insdc.py +159 -0
- eva_sub_cli-0.4/eva_sub_cli/executables/check_metadata_semantics.py +18 -0
- eva_sub_cli-0.4/eva_sub_cli/executables/cli.py +100 -0
- eva_sub_cli-0.4/eva_sub_cli/executables/samples_checker.py +144 -0
- eva_sub_cli-0.4/eva_sub_cli/executables/trim_down.py +78 -0
- eva_sub_cli-0.4/eva_sub_cli/executables/xlsx2json.py +335 -0
- eva_sub_cli-0.4/eva_sub_cli/file_utils.py +72 -0
- eva_sub_cli-0.4/eva_sub_cli/jinja_templates/fasta_check.html +86 -0
- eva_sub_cli-0.4/eva_sub_cli/jinja_templates/file_validation.html +93 -0
- eva_sub_cli-0.4/eva_sub_cli/jinja_templates/html_report.html +138 -0
- eva_sub_cli-0.4/eva_sub_cli/jinja_templates/metadata_validation.html +52 -0
- eva_sub_cli-0.4/eva_sub_cli/jinja_templates/project_details.html +37 -0
- eva_sub_cli-0.4/eva_sub_cli/jinja_templates/sample_name_check.html +60 -0
- eva_sub_cli-0.4/eva_sub_cli/jinja_templates/shallow_validation.html +29 -0
- eva_sub_cli-0.4/eva_sub_cli/metadata_utils.py +46 -0
- eva_sub_cli-0.4/eva_sub_cli/nextflow/validation.nf +304 -0
- eva_sub_cli-0.4/eva_sub_cli/orchestrator.py +199 -0
- eva_sub_cli-0.4/eva_sub_cli/report.py +40 -0
- eva_sub_cli-0.4/eva_sub_cli/semantic_metadata.py +230 -0
- eva_sub_cli-0.4/eva_sub_cli/submission_ws.py +61 -0
- eva_sub_cli-0.4/eva_sub_cli/submit.py +98 -0
- eva_sub_cli-0.4/eva_sub_cli/validators/__init__.py +0 -0
- eva_sub_cli-0.4/eva_sub_cli/validators/docker_validator.py +207 -0
- eva_sub_cli-0.4/eva_sub_cli/validators/native_validator.py +68 -0
- eva_sub_cli-0.4/eva_sub_cli/validators/validation_results_parsers.py +203 -0
- eva_sub_cli-0.4/eva_sub_cli/validators/validator.py +483 -0
- eva_sub_cli-0.4/eva_sub_cli.egg-info/PKG-INFO +169 -0
- eva_sub_cli-0.4/eva_sub_cli.egg-info/SOURCES.txt +103 -0
- eva_sub_cli-0.4/eva_sub_cli.egg-info/dependency_links.txt +1 -0
- eva_sub_cli-0.4/eva_sub_cli.egg-info/entry_points.txt +7 -0
- eva_sub_cli-0.4/eva_sub_cli.egg-info/requires.txt +7 -0
- eva_sub_cli-0.4/eva_sub_cli.egg-info/top_level.txt +1 -0
- eva_sub_cli-0.4/pyproject.toml +51 -0
- eva_sub_cli-0.4/pytest.ini +3 -0
- eva_sub_cli-0.4/requirements.txt +7 -0
- eva_sub_cli-0.4/setup.cfg +18 -0
- eva_sub_cli-0.4/setup.py +4 -0
- eva_sub_cli-0.4/tests/ignore_test_nextflow_validation.yml +6 -0
- eva_sub_cli-0.4/tests/resources/EVA_Submission_test.json +147 -0
- eva_sub_cli-0.4/tests/resources/EVA_Submission_test.xlsx +0 -0
- eva_sub_cli-0.4/tests/resources/EVA_Submission_test_fails.xlsx +0 -0
- eva_sub_cli-0.4/tests/resources/EVA_Submission_test_with_asm_report.json +156 -0
- eva_sub_cli-0.4/tests/resources/assembly_check/invalid.vcf.assembly_check.log +9 -0
- eva_sub_cli-0.4/tests/resources/assembly_check/invalid.vcf.text_assembly_report.txt +14 -0
- eva_sub_cli-0.4/tests/resources/assembly_reports/input_passed.txt +3 -0
- eva_sub_cli-0.4/tests/resources/fasta_files/Saccharomyces_cerevisiae_I.fa +3838 -0
- eva_sub_cli-0.4/tests/resources/fasta_files/input_passed.fa +1000 -0
- eva_sub_cli-0.4/tests/resources/sample_checker/example1.vcf.gz +0 -0
- eva_sub_cli-0.4/tests/resources/sample_checker/example2.vcf +8 -0
- eva_sub_cli-0.4/tests/resources/sample_checker/example3.vcf +8 -0
- eva_sub_cli-0.4/tests/resources/sample_checker/metadata.json +86 -0
- eva_sub_cli-0.4/tests/resources/validation_reports/expected_report_metadata_json.html +473 -0
- eva_sub_cli-0.4/tests/resources/validation_reports/expected_report_metadata_xlsx.html +485 -0
- eva_sub_cli-0.4/tests/resources/validation_reports/expected_shallow_metadata_xlsx_report.html +509 -0
- eva_sub_cli-0.4/tests/resources/validation_reports/validation_output/assembly_check/input_passed.vcf.assembly_check.log +9 -0
- eva_sub_cli-0.4/tests/resources/validation_reports/validation_output/assembly_check/input_passed.vcf.text_assembly_report.1680102476700.txt +0 -0
- eva_sub_cli-0.4/tests/resources/validation_reports/validation_output/assembly_check/input_passed.vcf.valid_assembly_report.1680102476700.txt +500 -0
- eva_sub_cli-0.4/tests/resources/validation_reports/validation_output/other_validations/input_passed.fa_check.yml +8 -0
- eva_sub_cli-0.4/tests/resources/validation_reports/validation_output/other_validations/metadata_conversion_errors.yml +4 -0
- eva_sub_cli-0.4/tests/resources/validation_reports/validation_output/other_validations/metadata_semantic_check.yml +10 -0
- eva_sub_cli-0.4/tests/resources/validation_reports/validation_output/other_validations/metadata_validation.txt +44 -0
- eva_sub_cli-0.4/tests/resources/validation_reports/validation_output/other_validations/sample_checker.yml +7 -0
- eva_sub_cli-0.4/tests/resources/validation_reports/validation_output/vcf_format/input_passed.vcf.errors.1680102476854.db +0 -0
- eva_sub_cli-0.4/tests/resources/validation_reports/validation_output/vcf_format/input_passed.vcf.errors.1680102476854.txt +1 -0
- eva_sub_cli-0.4/tests/resources/validation_reports/validation_output/vcf_format/input_passed.vcf.vcf_format.log +4 -0
- eva_sub_cli-0.4/tests/resources/vcf_files/example2.vcf.gz +0 -0
- eva_sub_cli-0.4/tests/resources/vcf_files/input_passed.vcf +355 -0
- eva_sub_cli-0.4/tests/test_auth.py +91 -0
- eva_sub_cli-0.4/tests/test_check_fasta_insdc.py +104 -0
- eva_sub_cli-0.4/tests/test_cli.py +40 -0
- eva_sub_cli-0.4/tests/test_docker_validator.py +151 -0
- eva_sub_cli-0.4/tests/test_file_utils.py +46 -0
- eva_sub_cli-0.4/tests/test_orchestrator.py +248 -0
- eva_sub_cli-0.4/tests/test_report.py +371 -0
- eva_sub_cli-0.4/tests/test_samples_checker.py +50 -0
- eva_sub_cli-0.4/tests/test_semantic_metadata.py +211 -0
- eva_sub_cli-0.4/tests/test_submit.py +137 -0
- eva_sub_cli-0.4/tests/test_utils.py +14 -0
- eva_sub_cli-0.4/tests/test_validaton_results_parsers.py +32 -0
- eva_sub_cli-0.4/tests/test_validator.py +267 -0
- eva_sub_cli-0.4/tests/test_xlsx2json.py +215 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
name: Publish Docker image
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types: [published]
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
push_to_registries:
|
|
9
|
+
name: Push Docker image to multiple registries
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
permissions:
|
|
12
|
+
packages: write
|
|
13
|
+
contents: read
|
|
14
|
+
steps:
|
|
15
|
+
- name: Check out the repo
|
|
16
|
+
uses: actions/checkout@v4
|
|
17
|
+
|
|
18
|
+
- name: Log in to Docker Hub
|
|
19
|
+
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
|
|
20
|
+
with:
|
|
21
|
+
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
22
|
+
password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
|
23
|
+
|
|
24
|
+
- name: Log in to the Container registry
|
|
25
|
+
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
|
|
26
|
+
with:
|
|
27
|
+
registry: ghcr.io
|
|
28
|
+
username: ${{ github.actor }}
|
|
29
|
+
password: ${{ secrets.TOKEN_FOR_GHCR }}
|
|
30
|
+
|
|
31
|
+
- name: Extract metadata (tags, labels) for Docker
|
|
32
|
+
id: meta
|
|
33
|
+
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
|
|
34
|
+
with:
|
|
35
|
+
images: |
|
|
36
|
+
ebivariation/eva-sub-cli
|
|
37
|
+
ghcr.io/ebivariation/eva-sub-cli
|
|
38
|
+
|
|
39
|
+
- name: Build and push Docker images
|
|
40
|
+
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
|
|
41
|
+
with:
|
|
42
|
+
context: docker
|
|
43
|
+
push: true
|
|
44
|
+
tags: ${{ steps.meta.outputs.tags }}
|
|
45
|
+
labels: ${{ steps.meta.outputs.labels }}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
name: Python tests
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [ main ]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [ main ]
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
build:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
strategy:
|
|
13
|
+
matrix:
|
|
14
|
+
python-version: [3.9]
|
|
15
|
+
|
|
16
|
+
steps:
|
|
17
|
+
- uses: actions/checkout@v2
|
|
18
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
19
|
+
uses: actions/setup-python@v2
|
|
20
|
+
with:
|
|
21
|
+
python-version: ${{ matrix.python-version }}
|
|
22
|
+
- name: Install dependencies and build docker image
|
|
23
|
+
run: |
|
|
24
|
+
python -m pip install --upgrade pip
|
|
25
|
+
pip install flake8 pytest
|
|
26
|
+
python -m pip install .
|
|
27
|
+
- name: Lint with flake8
|
|
28
|
+
run: |
|
|
29
|
+
# stop the build if there are Python syntax errors or undefined names
|
|
30
|
+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
|
31
|
+
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
|
|
32
|
+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
|
33
|
+
- name: Test with pytest
|
|
34
|
+
run: |
|
|
35
|
+
PYTHONPATH=. pytest tests -k "not integration"
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
pip-wheel-metadata/
|
|
24
|
+
share/python-wheels/
|
|
25
|
+
*.egg-info/
|
|
26
|
+
.installed.cfg
|
|
27
|
+
*.egg
|
|
28
|
+
MANIFEST
|
|
29
|
+
|
|
30
|
+
# PyInstaller
|
|
31
|
+
# Usually these files are written by a python script from a template
|
|
32
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
33
|
+
*.manifest
|
|
34
|
+
*.spec
|
|
35
|
+
|
|
36
|
+
# Installer logs
|
|
37
|
+
pip-log.txt
|
|
38
|
+
pip-delete-this-directory.txt
|
|
39
|
+
|
|
40
|
+
# Unit test / coverage reports
|
|
41
|
+
htmlcov/
|
|
42
|
+
.tox/
|
|
43
|
+
.nox/
|
|
44
|
+
.coverage
|
|
45
|
+
.coverage.*
|
|
46
|
+
.cache
|
|
47
|
+
nosetests.xml
|
|
48
|
+
coverage.xml
|
|
49
|
+
*.cover
|
|
50
|
+
*.py,cover
|
|
51
|
+
.hypothesis/
|
|
52
|
+
.pytest_cache/
|
|
53
|
+
|
|
54
|
+
# Translations
|
|
55
|
+
*.mo
|
|
56
|
+
*.pot
|
|
57
|
+
|
|
58
|
+
# Django stuff:
|
|
59
|
+
*.log
|
|
60
|
+
local_settings.py
|
|
61
|
+
db.sqlite3
|
|
62
|
+
db.sqlite3-journal
|
|
63
|
+
|
|
64
|
+
# Flask stuff:
|
|
65
|
+
instance/
|
|
66
|
+
.webassets-cache
|
|
67
|
+
|
|
68
|
+
# Scrapy stuff:
|
|
69
|
+
.scrapy
|
|
70
|
+
|
|
71
|
+
# Sphinx documentation
|
|
72
|
+
docs/_build/
|
|
73
|
+
|
|
74
|
+
# PyBuilder
|
|
75
|
+
target/
|
|
76
|
+
|
|
77
|
+
# Jupyter Notebook
|
|
78
|
+
.ipynb_checkpoints
|
|
79
|
+
|
|
80
|
+
# IPython
|
|
81
|
+
profile_default/
|
|
82
|
+
ipython_config.py
|
|
83
|
+
|
|
84
|
+
# pyenv
|
|
85
|
+
.python-version
|
|
86
|
+
|
|
87
|
+
# pipenv
|
|
88
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
89
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
90
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
91
|
+
# install all needed dependencies.
|
|
92
|
+
#Pipfile.lock
|
|
93
|
+
|
|
94
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
|
|
95
|
+
__pypackages__/
|
|
96
|
+
|
|
97
|
+
# Celery stuff
|
|
98
|
+
celerybeat-schedule
|
|
99
|
+
celerybeat.pid
|
|
100
|
+
|
|
101
|
+
# SageMath parsed files
|
|
102
|
+
*.sage.py
|
|
103
|
+
|
|
104
|
+
# Environments
|
|
105
|
+
.env
|
|
106
|
+
.venv
|
|
107
|
+
env/
|
|
108
|
+
venv/
|
|
109
|
+
ENV/
|
|
110
|
+
env.bak/
|
|
111
|
+
venv.bak/
|
|
112
|
+
|
|
113
|
+
# Spyder project settings
|
|
114
|
+
.spyderproject
|
|
115
|
+
.spyproject
|
|
116
|
+
|
|
117
|
+
# Rope project settings
|
|
118
|
+
.ropeproject
|
|
119
|
+
|
|
120
|
+
# mkdocs documentation
|
|
121
|
+
/site
|
|
122
|
+
|
|
123
|
+
# mypy
|
|
124
|
+
.mypy_cache/
|
|
125
|
+
.dmypy.json
|
|
126
|
+
dmypy.json
|
|
127
|
+
|
|
128
|
+
# Pyre type checker
|
|
129
|
+
.pyre/
|
|
130
|
+
|
|
131
|
+
# PyCharm
|
|
132
|
+
.idea/
|
|
133
|
+
|
|
134
|
+
#setuptools_scm version file
|
|
135
|
+
_version.py
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
# Comprehensive overview of the required inputs for eva-sub-cli tool
|
|
2
|
+
|
|
3
|
+
The eva-sub-cli tool requires the following inputs:
|
|
4
|
+
|
|
5
|
+
- One or several valid VCF files
|
|
6
|
+
- Completed metadata spreadsheet
|
|
7
|
+
- Reference genome in fasta format
|
|
8
|
+
|
|
9
|
+
The VCF file must adhere to official VCF specifications, and the metadata spreadsheet provides contextual information about the dataset. In the following sections, we will examine each of these inputs in detail.
|
|
10
|
+
|
|
11
|
+
# VCF File
|
|
12
|
+
|
|
13
|
+
A VCF (Variant Call Format) file is a type of file used in bioinformatics to store information about genetic variants. It includes data about the differences (or variants) between a sample's DNA and a reference genome. Typically, generating a VCF file involves several steps: preparing your sample, sequencing the DNA, aligning it to a reference genome, identifying variants, and finally, formatting this information into a VCF file. The overall goal is to systematically capture and record genetic differences in a standardised format. A VCF file consists of two main parts: the header and the body.
|
|
14
|
+
|
|
15
|
+
Header: The header contains metadata about the file, such as the format version, reference genome information, and descriptions of the data fields. Each line in the header starts with a double ##, except for the last header line which starts with a single #.
|
|
16
|
+
|
|
17
|
+
File format version
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
##fileformat=VCFv4.2
|
|
21
|
+
##INFO=<ID=DP,Number=1,Type=Integer,Description="Total Depth">
|
|
22
|
+
##FILTER=<ID=PASS,Description="All filters passed">
|
|
23
|
+
##FORMAT=<ID=GT,Number=1,Type=String,Description="Genotype">
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Body: The body of the VCF file contains the actual variant data, with each row representing a single variant. The columns in the body are : CHROM, POS, ID, REF, ALT, QUAL, FILTER, INFO, FORMAT, Sample Columns
|
|
28
|
+
|
|
29
|
+
```
|
|
30
|
+
#CHROM POS ID REF ALT QUAL FILTER INFO FORMAT [SampleIDs...]
|
|
31
|
+
```
|
|
32
|
+
Here's a small example to illustrate the structure of a VCF file: Example VCF file archived at EVA to be inserted
|
|
33
|
+
|
|
34
|
+
# Metadata Spreadsheet
|
|
35
|
+
|
|
36
|
+
The spreadsheet provides comprehensive contextual information about the dataset, ensuring that each submission is accompanied by detailed descriptions that facilitate proper understanding and use of the data. Key elements included in the metadata spreadsheet are analysis and project information, sample information, sequencing methodologies, experimental details.
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
| WORKSHEET | EXPLANATION |
|
|
40
|
+
| ----------------- | -------------------- |
|
|
41
|
+
| Submitter Details | This sheet captures the details of the submitter|
|
|
42
|
+
| Project | The objective of this sheet is to gather general information about the Project including submitter, submitting centre, collaborators, project title, description and publications. |
|
|
43
|
+
| Sample | Projects consist of analyses that are run on samples. We accept sample information in the form of BioSample, ENA or EGA accession(s). We also accept BioSamples sampleset accessions. If your samples are not yet accessioned, and are therefore novel, please use the "Novel sample(s)" sections of the Sample(s) worksheet to have them registered at BioSample |
|
|
44
|
+
| Analysis | For EVA, each analysis is one vcf file, plus an unlimited number of ancillary files. This sheet allows EVA to link vcf files to a project and to other EVA analyses. Additionally, this worksheet contains experimental meta-data detailing the methodology of each analysis. Important to note; one project can have multiple associated analyses |
|
|
45
|
+
| Files | Filenames and associated checking data associated with this EVA submission should be entered into this worksheet. Each file should be linked to exactly one analysis. |
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
# Validation checks
|
|
49
|
+
|
|
50
|
+
The CLI tool performs the following validation checks and generates corresponding reports:
|
|
51
|
+
|
|
52
|
+
- Metadata check to ensure that the metadata fields have been correctly filled in
|
|
53
|
+
- VCF check to ensure that the VCF file follows the VCF format specification
|
|
54
|
+
- Assembly check to ensure that the genome and the VCF match
|
|
55
|
+
- Sample name check to ensure that the samples in the metadata can be associated with the sample in the VCF
|
|
56
|
+
|
|
57
|
+
In the following sections, we will examine each of these checks in detail, starting with the Metadata check.
|
|
58
|
+
|
|
59
|
+
# Metadata check
|
|
60
|
+
|
|
61
|
+
Once the user passes the metadata spreadsheet for validation checks, the eva-sub-cli tool verifies that all mandatory columns, marked in bold in the spreadsheet, are filled in. This data is crucial for further validation processes, such as retrieving the INDSC accession of the reference genome used to call the variants, and for sample and project metadata. If any mandatory columns or sheets are missing, the CLI tool will raise errors.
|
|
62
|
+
|
|
63
|
+
Key points to note before validating your metadata spreadsheet with the eva-sub-cli tool:
|
|
64
|
+
|
|
65
|
+
- Please do not change the existing structure of the spreadsheet
|
|
66
|
+
- Ensure all mandatory columns (marked in bold) are filled.
|
|
67
|
+
- Pre-registered samples must be released and not kept in private status
|
|
68
|
+
- Sample names in the spreadsheet must match those in the VCF file.
|
|
69
|
+
- Analysis aliases must match across the sheets (Analysis, Sample, and File sheets).
|
|
70
|
+
|
|
71
|
+
Common Errors Seen with Metadata Checks:
|
|
72
|
+
|
|
73
|
+
- Analysis alias is not filled in for the respective samples in the Sample’s tab .
|
|
74
|
+
- Reference field is not filled with an INSDC accession. Submitters can sometimes use a non-GCA accession or generic assembly name as their reference genome.
|
|
75
|
+
- Tax ID and the scientific name of the organism do not match.
|
|
76
|
+
- Collection data and geographic location of the samples are not filled if the samples being submitted are novel.
|
|
77
|
+
|
|
78
|
+
# VCF Checks
|
|
79
|
+
|
|
80
|
+
Ensuring data consistency upon submission is crucial for interoperability and supporting cross-study comparative genomics. Before accepting a VCF submission, the cli tool verifies that the submitted information adheres to the official VCF specifications. Additionally, submitted variants must be supported by either experimentally determined sample genotypes or population allele frequencies.
|
|
81
|
+
|
|
82
|
+
Key points to note before validating your VCF file with the eva-sub-cli tool:
|
|
83
|
+
|
|
84
|
+
- File Format Version: Always start the header with the version number (versions 4.1, 4.2, and 4.3 are accepted).
|
|
85
|
+
- Header Metadata: Should include the reference genome, information fields (INFO), filters (FILTER), AF and genotype metadata
|
|
86
|
+
- Variant Information: VCF files must provide either sample genotypes and/or aggregated sample summary-level allele frequencies.
|
|
87
|
+
- Unique Variants: Variant lines should be unique and not specify duplicate loci.
|
|
88
|
+
- Reference Genome: All variants must be submitted with positions on a reference genome accessionned by a member of the INSDC consortium [Genbank](https://www.ncbi.nlm.nih.gov/genbank/), [ENA](https://www.ebi.ac.uk/ena/browser/home), or [DDBJ](https://www.ddbj.nig.ac.jp/index-e.html).
|
|
89
|
+
|
|
90
|
+
Common Errors Seen with VCF Checks:
|
|
91
|
+
|
|
92
|
+
- The VCF version is not one of 4.1, 4.2, or 4.3.
|
|
93
|
+
- The VCF file contains extra spaces, blanks, or extra quotations causing validation to fail. Tools like bcftools can help verify the header before validating the file.
|
|
94
|
+
- GT and AF fields are not defined in the header section.
|
|
95
|
+
- VCF uses non-GCA contig alias
|
|
96
|
+
- The fields used do not conform to the official VCF specifications
|
|
97
|
+
|
|
98
|
+
# Assembly Check
|
|
99
|
+
|
|
100
|
+
The EVA requires that all variants be submitted with an asserted position on an INSDC sequence. This means that the reference allele for every variant must match a position in a sequence that has been accessioned in either the GenBank or ENA database. Aligning all submitted data with INSDC sequences enables integration with other EMBL-EBI resources, including Ensembl, and is crucial for maintaining standardisation at the EVA. Therefore, all sequence identifiers in your VCF must match those in the reference FASTA file.
|
|
101
|
+
|
|
102
|
+
Key points to note before validating your data with the eva-sub-cli Tool:
|
|
103
|
+
|
|
104
|
+
- Ensure that the reference sequences in the FASTA file used to call the variants are accessioned in INSDC.
|
|
105
|
+
- Verify that the VCF file does not use non-GCA contig aliases by cross-checking with the reference assembly report.
|
|
106
|
+
|
|
107
|
+
Common errors seen with assembly checks:
|
|
108
|
+
|
|
109
|
+
- VCF file uses a non-GCA contig alias causing the assembly check to fail
|
|
110
|
+
- Contigs used do not exist in the assembly report of the reference genome
|
|
111
|
+
- Major Allele Used as REF Allele: This typically occurs when a specific version of Plink or Tassel is used to create VCF files, causing the tool to use the major allele as the reference allele. In such cases, submitters should use the GCA FASTA sequence to create corrected files.
|
|
112
|
+
|
|
113
|
+
# Sample Name Concordance Check
|
|
114
|
+
|
|
115
|
+
The sample name concordance check ensures that the sample names in the metadata spreadsheet match those in the VCF file. This is achieved by cross-checking the 'Sample name in VCF' column in the spreadsheet with the sample names registered in the VCF file. Any discrepancies must be addressed by the submitter when the CLI tool generates a report of the mismatches found.
|
|
116
|
+
|
|
117
|
+
Key points to note before validating your data with the eva-sub-cli tool:
|
|
118
|
+
|
|
119
|
+
- Ensure that sample names between the VCF file and the metadata spreadsheet match. This comparison is case-sensitive.
|
|
120
|
+
- Ensure there are no extra spaces in the sample names.
|
|
121
|
+
|
|
122
|
+
Common errors seen with sample concordance checks:
|
|
123
|
+
|
|
124
|
+
- Link between “Sample” and “File” provided via the Analysis alias is not correctly defined in the metadata which causes the sample name concordance check to fail.
|
|
125
|
+
- Extra white spaces in the sample names can lead to mismatches.
|
|
126
|
+
- Case sensitivity issues between the sample names in the VCF file and the metadata spreadsheet.
|
|
127
|
+
|
|
128
|
+
|
eva_sub_cli-0.4/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|