GenomeHubs
Search…
Connect using 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:
e85
e89
1
$ docker run --rm \
2
-u $UID:$GROUPS \
3
--name perl-api-exampl \
4
--link genomehubs-mysql \
5
-v /pat/to/api/srcipt/dir:/import/api/scripts \
6
genomehubs/easy-import:17.03 \
7
perl /import/api/scripts/example-api-script.pl
Copied!
1
$ docker run --rm \
2
-u $UID:$GROUPS \
3
--name perl-api-exampl \
4
--link genomehubs-mysql \
5
-v /pat/to/api/srcipt/dir:/import/api/scripts \
6
genomehubs/easy-import:17.06 \
7
perl /import/api/scripts/example-api-script.pl
Copied!
Last modified 1yr ago
Copy link