Skip to content

Commit

Permalink
Merge pull request #53 from sii-companion/feature-braker3
Browse files Browse the repository at this point in the history
Upgrade BRAKER to remove GM_KEY req
  • Loading branch information
haessar authored Mar 27, 2024
2 parents 350fe2c + 27e4ee7 commit 840f87a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 12 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/docker-push-on-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ on:
release:
types: [published]

env:
GM_KEY: ${{ secrets.GM_KEY }}

jobs:
push_to_registry:
name: Push Docker image to Docker Hub
Expand Down Expand Up @@ -34,5 +31,3 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
GM_KEY="${{ env.GM_KEY }}"
9 changes: 4 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ RUN cpanm File::Spec::Functions && \
cpanm File::HomeDir && \
cpanm threads
RUN cd /opt && \
git clone https://github.com/Gaius-Augustus/BRAKER.git --branch v2.1.6 && \
git clone https://github.com/Gaius-Augustus/BRAKER.git --branch v3.06 && \
cd BRAKER/scripts
ADD http://topaz.gatech.edu/GeneMark/etp.for_braker.tar.gz /opt/etp.for_braker.tar.gz
RUN cd /opt && \
Expand All @@ -189,6 +189,8 @@ ADD https://genomethreader.org/distributions/gth-1.7.3-Linux_x86_64-64bit.tar.gz
RUN cd /opt && \
tar xzf gth-1.7.3-Linux_x86_64-64bit.tar.gz && \
rm -f gth-1.7.3-Linux_x86_64-64bit.tar.gz
RUN cd /opt && \
git clone https://github.com/Gaius-Augustus/TSEBRA

#
# install orthofinder
Expand All @@ -202,10 +204,6 @@ RUN cd /opt && \
cd .. && \
rm -f OrthoFinder_source.tar.gz

## Make sure to build with 'docker build --build-arg GM_KEY=<GM_KEY> .' to populate this arg.
ARG GM_KEY
RUN echo ${GM_KEY} > ~/.gm_key

#
# install gffread
#
Expand All @@ -228,3 +226,4 @@ ENV PROTHINT_PATH /opt/ProtHint/bin
ENV BSSMDIR /opt/gth-1.7.3-Linux_x86_64-64bit/bin/bssm
ENV GTHDATADIR /opt/gth-1.7.3-Linux_x86_64-64bit/bin/gthdata
ENV ALIGNMENT_TOOL_PATH /opt/gth-1.7.3-Linux_x86_64-64bit/bin/
ENV TSEBRA_PATH /opt/TSEBRA/bin
4 changes: 2 additions & 2 deletions bin/run_braker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if [ "$useExisting" == "true" ]
then
args+=(--species=augustus_species)
args+=(--useexisting)
AUGUSTUS_CONFIG_PATH=$augustusModelPath; export AUGUSTUS_CONFIG_PATH
AUGUSTUS_CONFIG_PATH=$augustusModelPath; export AUGUSTUS_CONFIG_PATH
else
args+=(--species=$spId)
fi
Expand All @@ -34,4 +34,4 @@ then
fi

echo "${args[@]}"
braker.pl --genome=$genome --prot_seq=$annProt --gff3 --cores $cores "${args[@]}"
braker.pl --genome=$genome --prot_seq=$annProt --gff3 --threads $cores "${args[@]}"
1 change: 1 addition & 0 deletions loc_docker.config
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ params.CIRCOS_CONFIG_FILE = "/opt/data/circos/circos.debian.conf"
params.CIRCOS_BIN_CONFIG_FILE = "/opt/data/circos/circos.bin.debian.conf"
params.SPECFILE = "/opt/data/speck/output_check.lua"
params.AUGUSTUS_EXTRINSIC_CFG = "/opt/data/augustus/extrinsic.MPE.cfg"
params.NCRNA_MODELS = "/opt/data/cm/kinetoplastid_rnas.cm"

process {
container = 'uofgiii/companion:latest'
Expand Down

0 comments on commit 840f87a

Please sign in to comment.