---
agentTools:
  projectIndex: https://easy-import.readme.io/llms.txt
---

# `-e -j -f` Export files

(optional)

The process of import and export generates a set of files that will be consistent across different assemblies and therefore useful for use in comparative analyses, converting to BLAST databases, etc. Exported `.json` files that can be used for assembly/annotation statistic visualisation.

[block:code]
{
  "codes": [
    {
      "code": "docker run --rm \\\n           --name easy-import-operophtera_brumata_v1_core_32_85_1 \\\n           --link genomehubs-mysql \\\n           -v ~/demo/genomehubs-import/import/conf:/import/conf \\\n           -v ~/demo/genomehubs-import/import/data:/import/data \\\n           -v ~/demo/genomehubs-import/download/data:/import/download \\\n           -v ~/demo/genomehubs-import/blast/data:/import/blast \\\n           -e DATABASE=operophtera_brumata_v1_core_32_85_1 \\\n           -e FLAGS=\"-e\" \\\n           genomehubs/easy-import:latest",
      "language": "text",
      "name": "run export_sequences.pl"
    }
  ]
}
[/block]

`export_json.pl` generates three `.json` files:

* `<assembly_name>.meta.json` contains basic metadata for the assembly and basic summary statistics including assembly span and number of gene models.
* `<assembly_name>.assembly-stats.json` contains an assembly summary in the format used by [github.com/rjchallis/assembly\_stats](https://github.com/rjchallis/assembly_stats) to produce a number of individual and comparative views of several assembly statistics.
* `<assembly_name>.codon-usage.json` contains a summary of scaffold, gene, exon, etc. lengths, base composition and codon usage in the format used by [github.com/rjchallis/codon\_usage](https://github.com/rjchallis/codon_usage) to visualise expected and observed codon usage patterns.

[block:code]
{
  "codes": [
    {
      "code": "docker run --rm \\\n           --name easy-import-operophtera_brumata_v1_core_32_85_1 \\\n           --link genomehubs-mysql \\\n           -v ~/demo/genomehubs-import/import/conf:/import/conf \\\n           -v ~/demo/genomehubs-import/import/data:/import/data \\\n           -v ~/demo/genomehubs-import/download/data:/import/download \\\n           -e DATABASE=operophtera_brumata_v1_core_32_85_1 \\\n           -e FLAGS=\"-j\" \\\n           genomehubs/easy-import:latest",
      "language": "text",
      "name": "run export_json.pl"
    }
  ]
}
[/block]

Gene models and annotated scaffolds may also be exported in GFF3/EMBL format using \`\`export\_features.pl. This script will always export GFF3 and will additionally export EMBL format ready for submission to the INSDC if the required fields (see below) are specified in `[META]`. The resulting file should be validated using the [ENA flat file validator](http://www.ebi.ac.uk/ena/software/flat-file-validator) to confirm the output is valid prior to submission.

[block:code]
{
  "codes": [
    {
      "code": "docker run --rm \\\n           --name easy-import-operophtera_brumata_v1_core_32_85_1 \\\n           --link genomehubs-mysql \\\n           -v ~/demo/genomehubs-import/import/conf:/import/conf \\\n           -v ~/demo/genomehubs-import/import/data:/import/data \\\n           -v ~/demo/genomehubs-import/download/data:/import/download \\\n           -e DATABASE=operophtera_brumata_v1_core_32_85_1 \\\n           -e FLAGS=\"-f\" \\\n           genomehubs/easy-import:latest",
      "language": "text",
      "name": "run export_features.pl"
    }
  ]
}
[/block]

[block:api-header]
{
  "title": "Configuration options"
}
[/block]

Additional entries are required in `[META]` in order to export to EMBL format:

```
[META]
	ASSEMBLY.BIOPROJECT=PRJEB00000
        ASSEMBLY.LOCUS_TAG=ABC123
        SPECIES.EMBL_DIVISION=INV
```

Where the bioproject and locus tag must be registered during the submission registration process and the embl division corresponds to the available taxonomic divisions in the EMBL format [documentation](ftp://ftp.embl.de/pub/databases/embl/doc/usrman.txt)