Helper scripts and docker instance for external gene-identifier code
299
This repo is a helper script to get the latest data from a FlyBase database and dockerise and run
https://github.com/grivaz/FlyBaseAnnotationHelper and
https://huggingface.co/cgrivaz/FlyBaseGeneAbstractClassifier
See these for information on how the code all works. NOTE: To generate the data using this repo you will need access to a FlyBase postgres database. If you do not have this then you must generate the data another way but call the file names the same things.
NOTE: gene-identifier being used in examples below. Switch names in commands if using the pulled image.
host.docker.internalGenerate a list of Dmel and Hsap current gene synonyms (fb_synonym_latest.tsv)
docker run --rm -p$PORT:$PORT -v $GI_DATA_INPUT:/src/input/ -e SERVER=$SERVER -e PGPASSWORD=$PGPASSWORD -e USER=$USER -e DB=$DB -e PORT=$PORT --entrypoint /usr/bin/python3 gene-identifier src/get_synonyms_batch.py --filepath /src/input/
Generate a list of Dmel and Hsap gene unique names (currentDmelHsap.txt)
docker run --rm -p$PORT:$PORT -v $GI_DATA_INPUT:/src/input/ -e SERVER=$SERVER -e PGPASSWORD=$PGPASSWORD -e USER=$USER -e DB=$DB -e PORT=$PORT --entrypoint /usr/bin/python3 gene-identifier src/get_gene_uniquenames.py --filepath /src/input/
Get PMC ids file (PMC-ids.csv)
docker run --rm -v $GI_DATA_INPUT:/src/input/ --entrypoint /usr/bin/bash gene-identifier src/get_PMC.sh
Get PMC's to examine (new_pub_dbxrefs.txt)
docker run --rm -p$PORT:$PORT -v $GI_DATA_INPUT:/src/input/ -e SERVER=$SERVER -e PGPASSWORD=$PGPASSWORD -e MONDAY_DATE=$MONDAY_DATE -e USER=$USER -e DB=$DB -e PORT=$PORT --entrypoint /usr/bin/python3 gene-identifier src/get_new_pubs.py --filepath /src/input/
Note you can also create this by hand by just adding a list on PMC identifiers.
Run the gene identifier code (interactive mode):
docker run --rm -v $GI_DATA_INPUT:/src/input -e SERVER=$SERVER -e PGPASSWORD=$PGPASSWORD -e USER=$USER -e DB=$DB -e PORT=$PORT -v $GI_DATA_OUTPUT:/usr/src/app/output_files -it gene-identifierFlyBaseAnnotationHelper by running cd FlyBaseAnnotationHelperpython3 update_resources.pypython3 annotation_helper.py /usr/src/app/output_files/new_pub_dbxrefs.txtRun code on command line locally (via GoCd etc))
Content type
Image
Digest
sha256:bb70fdb18…
Size
7.4 GB
Last updated
almost 3 years ago
docker pull flybase/harvdev-gene-identifier