Connect using the Perl API

The EasyImport container can be used to run Ensembl API scripts to query databases programmatically. To do this, mount a directory containing your API script onto an EasyImport container and run the script by passing a perl command after the container image name:

Create a hub.txt file with a description of the data available in the track hub:

$ docker run --rm \
             -u $UID:$GROUPS \
             --name perl-api-exampl \
             --link genomehubs-mysql \
             -v /pat/to/api/srcipt/dir:/import/api/scripts \
             genomehubs/easy-import:17.03 \
             perl /import/api/scripts/example-api-script.pl
$ docker run --rm \
             -u $UID:$GROUPS \
             --name perl-api-exampl \
             --link genomehubs-mysql \
             -v /pat/to/api/srcipt/dir:/import/api/scripts \
             genomehubs/easy-import:17.06 \
             perl /import/api/scripts/example-api-script.pl

results matching ""

    No results matching ""