Skip to main content

Command Line Interface to upload data to the European Nucleotide Archive

Project description

ENA upload tool

About

The program submits experimental data and respective metadata to the European Nucleotide Archive (ENA). The metadata should be provided in separate tables corresponding to the following ENA objects:

  • STUDY
  • SAMPLE
  • EXPERIMENT
  • RUN

The program to perform the following actions:

  • add: add an object to the archive
  • modify: modify an object in the archive
  • cancel: cancel a private object and its dependent objects (under development)
  • release: release a private object immediately to the public (under development)

The tool dependencies in LINUX

  • curl
  • Genshi
  • subprocess
  • shlex
  • json
  • argparse
  • hashlib
  • ftplib
  • uuid
  • datetime
  • lxml
  • pandas

Installation

Linux/macOS:

sudo python3 -m pip install git+git://github.com/usegalaxy-eu/ena-upload-cli.git

Test the tool

This is still a developmental version, please run the tool in the program directory for now.

inputs:

  • metadata tables
    • examples in example_table
    • Please define actions in status column e.g. add, modify, cancel, release
    • to perform bulk submission of all objects, the aliases ids in different ENA objects should be in the association where alias ids in experiment object link all objects together
  • experimental data
    • examples in example_data

outputs:

  • In the same directory of inputs
  • metadata tables with updated info in status and other relevant columns, e.g:
    • updated status: added, modified, canceled, released
    • accession ids
    • submission date

test command: add metadata and sequence data

python ena_upload.py --action add --center 'your_center_name' --webin_id your_id --password your_password --study example_tables/ENA_template_studies.tsv --sample example_tables/ENA_template_samples.tsv --experiment example_tables/ENA_template_experiments.tsv --run example_tables/ENA_template_runs.tsv --data example_data/*gz

test command: modify a metadata

python ena_upload.py --action modify --center 'your_center_name' --webin_id your_id --password your_password --study example_tables/ENA_template_studies-2020-05-01T14\:21.tsv

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

ena-upload-cli-0.1.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

ena_upload_cli-0.1-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file ena-upload-cli-0.1.tar.gz.

File metadata

  • Download URL: ena-upload-cli-0.1.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for ena-upload-cli-0.1.tar.gz
Algorithm Hash digest
SHA256 ebf5d8b4cdec3f72cf30df94f4282222f4b0750279f283d8a42ba12343955644
MD5 0840a3f034600a7f3c30687c76243e07
BLAKE2b-256 c3d403a28f3d4eb546599f0b894ada6aa3bb533fe73d0ee9e6117a1d4a17c511

See more details on using hashes here.

Provenance

File details

Details for the file ena_upload_cli-0.1-py3-none-any.whl.

File metadata

  • Download URL: ena_upload_cli-0.1-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for ena_upload_cli-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b410f2e8cdca090bae7052fd5170d3ae7523ec10e9ff1a4cda9669d7f2487946
MD5 5bd4e3658517427ae68234608878329d
BLAKE2b-256 f38042c9e1c37be9493344309fd33e1e7617147fa1ac0638dbab16171b874d57

See more details on using hashes here.

Provenance

Supported by

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