Skip to main content

This script facilitates the submission of projects, samples, runs, assemblies, and other analyses to the public repository ENA (European Nucleotide Archive). It also assists in validating AMR (Antimicrobial Resistance) antibiograms before submission.

Project description

ENA-CLI

Introduction

ENA-CLI is a command-line tool designed to facilitate the validation and submission of data to the European Nucleotide Archive (ENA). This tool streamlines the process of preparing and uploading data files, ensuring they meet ENA's submission requirements.

Installation

pip install enaCLI

templates

Test Data

File Upload Reminder

Before using the ENA-CLI for other submission (5), ensure you have uploaded your files to ENA using the Webin file uploader. Detailed instructions on how to upload files can be found here.

Doker image

Usage

1. Project Submission

Usage

enaCLI project -h

Example

enaCLI project -u Webin-XXXX -p 'XXXXXX' -m templates/templates.xlsx -t

Options

  • -u: Webin submission account
  • -p: Password for the submission account
  • -m: Manifest file (template: templates/templates.xlsx)
  • -t: Use Webin test service (optional)

2. Sample Submission

Usage

enaCLI sample -h

Example

enaCLI sample -u Webin-XXXX -p 'XXXXXX' -m templates/templates.xlsx -t

Options

  • -u: Webin submission account
  • -p: Password for the submission account
  • -m: Manifest file (template: templates/templates.xlsx)
  • -t: Use Webin test service (optional)

3. Run Submission

Usage

enaCLI run -h

Example

enaCLI run -u Webin-XXXX -p 'XXXXXX' -m templates/templates.xlsx -i test_data/run -t

Options

  • -u: Webin submission account
  • -p: Password for the submission account
  • -m: Manifest file (template: templates/templates.xlsx)
  • -i: Input directory for files declared in the manifest file
  • -C: Center name of the submitter (optional)
  • -t: Use Webin test service (optional)

4. Genome Assembly Submissions

Usage

enaCLI genome -h

Example

enaCLI genome -u Webin-XXXX -p 'XXXXXX' -m templates/templates.xlsx -i test_data/genome -c genome -t

Options

  • -u: Webin submission account
  • -p: Password for the submission account
  • -m: Manifest file (template: templates/templates.xlsx)
  • -i: Input directory for files declared in the manifest file
  • -c: Assembly submission type (choices: genome, transcriptome)
  • -C: Center name of the submitter (optional)
  • -t: Use Webin test service (optional)

5. Targeted Command

The targeted command facilitates the submission of targeted sequences to the public repository ENA (European Nucleotide Archive). It requires the following mandatory arguments:

  • -u, --username: Webin submission account (e.g., Webin-XXX).
  • -p, --password: Password for the submission account.
  • -m, --manifestFile: Path to the manifest file specifying the details of the submission. The manifest file should follow the template provided in templates/templates.xlsx.
  • -i, --inputDir: Path to the input directory containing the files declared in the manifest file.

Additionally, the following optional arguments can be provided:

  • -C, --centerName: The center name of the submitter (mandatory for broker accounts).
  • -t, --test: Use Webin test service instead of the production service. Please note that the Webin upload area is shared between test and production services, and that test submission files will not be archived.

Usage Example:

enaCLI targeted -u Webin-XXXX -p 'XXXXXX' -m templates/templates.xlsx -i test_data/targeted -t

6. Other Submission

Usage

enaCLI other -h

Example

enaCLI other -u Webin-XXXX -p 'XXXXXX' -m templates/templates.xlsx -i test_data/other -a AMR_ANTIBIOGRAM -t

Options

  • -u: Webin submission account
  • -p: Password for the submission account
  • -m: Manifest file (template: templates/templates.xlsx)
  • -i: Input directory for files declared in the manifest file
  • -a: Analysis type (choices: GENOME_MAP, REFERENCE_ALIGNMENT, SEQUENCE_ANNOTATION, ASSEMBLY_GRAPH, PROCESSED_READ, PATHOGEN_ANALYSIS, AMR_ANTIBIOGRAM, COVID-19_FILTERED_VCF, COVID-19_CONSENSUS, PHYLOGENY_ANALYSIS)
  • -C: Center name of the submitter (optional)
  • -t: Use Webin test service (optional)

Options Explanation

Mandatory Options

  • -u: Webin submission account: Indicates the Webin submission account.
  • -p: Password: Indicates the password for the Webin submission account.
  • -m: Manifest file: Specifies the path to the manifest file.
  • -a: Analysis type: Specifies the type of analysis provided in the XML.
  • -c: Assembly submission type: Specifies the type of assembly submission.

Optional Options

  • -C: Center name: Specifies the center name of the submitter.
  • -t: Test submission: Submits the data as a test (optional).

Contact Information

For any errors or assistance, please contact the ENA helpdesk.

License

This project is licensed under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

enaCLI-1.0.3.tar.gz (69.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

enaCLI-1.0.3-py3-none-any.whl (69.1 MB view details)

Uploaded Python 3

File details

Details for the file enaCLI-1.0.3.tar.gz.

File metadata

  • Download URL: enaCLI-1.0.3.tar.gz
  • Upload date:
  • Size: 69.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.16

File hashes

Hashes for enaCLI-1.0.3.tar.gz
Algorithm Hash digest
SHA256 4245ebebb4e2dac328484b2029afd2dbbc5bedecddc9ced76ae5294f00c6ca31
MD5 57de7d12048ca5bee0865a7acf67b26e
BLAKE2b-256 06f6c0bb68bc2ae477310c15b5d07a010c4eef48ccc08d6f8c8d562d5972f79b

See more details on using hashes here.

File details

Details for the file enaCLI-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: enaCLI-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 69.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.16

File hashes

Hashes for enaCLI-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 246fd5e5e5139796620eecc41c6a8ac11cc0358f472e5d0e8a3ca5ffd0e4cab4
MD5 5368b80ccd70eeb35fc64f041fda36df
BLAKE2b-256 4002c7672907038ca2015a0cc41f9eebfe2759cb376c7a76c8047ba061390748

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page