5. Run analyses

GenomeHubs supports importing the results of analyses such as InterProScan into Ensembl databases to add functional annotations to imported assemblies. Docker container images are provided to allow these analyses to be run with the correct settings, but the analyses can also be run in whichever way is best suited to your compute infrastructure, provided the output files have the required format.

Blastp against SwissProt

Hits to sequences in the SwissProt database can be imported into a GenomeHubs Ensembl database to provide functional annotation.
Download and unzip the latest SwissProt database:
$ mkdir -p ~/genomehubs/external_files && cd ~/genomehubs/external_files
$ wget
$ gunzip uniprot_sprot.fasta.gz
Format the SwissProt BLAST database:
$ docker run --rm \
--name uniprot_sprot-makeblastdb \
-v ~/genomehubs/external_files:/in \
-v ~/genomehubs/external_files:/out \
genomehubs/ncbi-blast:19.05 \
makeblastdb -dbtype prot -in /in/uniprot_sprot.fasta -out /out/uniprot_sprot.fasta -parse_seqids -hash_index
Run blastp:
$ mkdir -p ~/genomehubs/v1/download/data/Operophtera_brumata_Obru1/blastp
$ docker run --rm \
--name Operophtera_brumata_Obru1-blastp \
-v ~/genomehubs/v1/download/data/Operophtera_brumata_Obru1/fasta/pep:/query \
-v ~/genomehubs/v1/download/data/Operophtera_brumata_Obru1/blastp:/out \
-v ~/genomehubs/external_files:/db \
genomehubs/ncbi-blast:19.05 \
blastp -query /query/Operophtera_brumata_Obru1.proteins.fa.gz \
-db /db/uniprot_sprot.fasta \
-evalue 1e-10 \
-num_threads 16 \
-outfmt '6 std qlen slen stitle btop' \
-out /out/Operophtera_brumata_Obru1.proteins.fa.blastp.uniprot_sprot.1e-10.tsv

Run InterProScan

InterProScan provides functional domain annotations that can be displayed in a GenomeHubs Ensembl browser.
N.B. The InterProScan container has not been updated to the latest version, however result files should be compatible with all versions of GenomeHubs.
Modify InterProScan configuration to suit your system:
  • Edit and change the maxnumber.of.embedded.workers values to match your number of threads (eg: 16)
$ mkdir -p ~/genomehubs/external_files && cd ~/genomehubs/external_files
$ wget
$ nano
Run InterProScan:
$ mkdir -p ~/genomehubs/v1/download/data/Operophtera_brumata_Obru1/interproscan
$ docker run --rm \
--name Operophtera_brumata_Obru1-interproscan \
-v ~/genomehubs/v1/download/data/Operophtera_brumata_Obru1/interproscan:/dir \
-v ~/genomehubs/v1/download/data/Operophtera_brumata_Obru1/fasta/pep:/in \
-v ~/genomehubs/external_files/ \
genomehubs/interproscan:18.10 \ -i /in/Operophtera_brumata_Obru1.proteins.fa.gz \
-d /dir \
-appl PFAM,SignalP_EUK \
-goterms \
-dp \
-pa \
-f TSV

Run RepeatMasker

N.B. Running RepeatMasker with RepBase Libraries Requires a RepBase subscription. See below for an alternative repeat masking approach using Repeat Detector and redmask.
The latest version of RepeatMasker are compatible with the open source DFAM libraries, but DFAM currently has limited taxonomic scope and we are yet to get this version running reliably in a docker container. Results from the version described below should be compatible with all versions of GenomeHubs.
Clone the GenomeHubs RepeatMasker Docker repository:
$ mkdir -p ~/genomehubs/external_files && cd ~/genomehubs/external_files
git clone
cd repeatmasker-docker
Download a copy of the latest RepeatMasker libraries from RepBase:
$ wget --user your_username \
--password 12345 \
-O repeatmaskerlibraries.tar.gz \
Build the Docker image:
$ docker build -t repeatmasker .
Run RepeatMasker:
$ mkdir -p ~/genomehubs/v1/download/data/Operophtera_brumata_Obru1/repeatmasker
$ docker run --rm \
--name Operophtera_brumata_Obru1-repeatmasker \
-v ~/genomehubs/v1/download/data/Operophtera_brumata_Obru1/fasta/dna:/in \
-v ~/genomehubs/v1/download/data/Operophtera_brumata_Obru1/repeatmasker:/out \
-e ASSEMBLY=Operophtera_brumata_Obru1.scaffolds.fa.gz \
-e NSLOTS=16 \
-e SPECIES=arthropoda \

Run Repeat Detector using redmask

This is provided as an alternative to RepeatMasker to generate a soft masked genome, but lacks repeat classification.
Run redmask:
$ mkdir -p ~/genomehubs/v1/download/data/Operophtera_brumata_Obru1/redmask
$ docker run --rm \
--name Operophtera_brumata_Obru1-redmask \
-v ~/genomehubs/v1/download/data/Operophtera_brumata_Obru1/fasta/dna:/in \
-v ~/genomehubs/v1/download/data/Operophtera_brumata_Obru1/redmask:/out \
-e ASSEMBLY=Operophtera_brumata_Obru1.scaffolds.fa.gz \


CEGMA is no longer supported and it's author suggests using BUSCO (see below) instead. But the tool still works and it provides an assessment of genome completeness against core eukaryotic genes that can be imported into a GenomeHubs Ensembl database.
$ mkdir -p ~/genomehubs/v1/download/data/Operophtera_brumata_Obru1/cegma
$ docker run --rm \
--name Operophtera_brumata_Obru1-cegma \
-v ~/genomehubs/v1/download/data/Operophtera_brumata_Obru1/fasta/dna:/in \
-v ~/genomehubs/v1/download/data/Operophtera_brumata_Obru1/cegma:/out \
-e ASSEMBLY=Operophtera_brumata_Obru1.scaffolds.fa.gz \
-e THREADS=16 \


BUSCO is an actively maintained alternative to CEGMA using sets of single copy orthologues for various taxonomic groups identified in OrthoDB.
Clone the GenomeHubs BUSCO Docker repository:
$ mkdir -p ~/genomehubs/external_files && cd ~/genomehubs/external_files
$ git clone
$ cd busco-docker
Fetch BUSCO lineages - choose the lineage(s) most appropriate for the taxon you wish to analyse:
$ wget
Build the Docker image:
$ docker build -t busco .
$ mkdir -p ~/genomehubs/v1/download/data/Operophtera_brumata_Obru1/busco
$ docker run --rm \
--name Operophtera_brumata_Obru1-busco \
-v ~/genomehubs/v1/download/data/Operophtera_brumata_Obru1/fasta/dna:/in \
-v ~/genomehubs/v1/download/data/Operophtera_brumata_Obru1/busco:/out \
-e ASSEMBLY=Operophtera_brumata_Obru1.scaffolds.fa.gz \
busco -l eukaryota_odb9 -m genome -c 16 -sp fly