This repository has been archived by the owner on Apr 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from trstickland/master
Dockerfile and addition of optional commands
- Loading branch information
Showing
11 changed files
with
88 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,4 +13,4 @@ install: | |
env: | ||
- GENOMETOOLS_PATH='/usr/bin/gt' | ||
script: | ||
- "./run_tests.sh" | ||
- ". ./run_tests.sh" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
FROM ubuntu:bionic | ||
|
||
MAINTAINER [email protected] | ||
|
||
ENV BASHRC /etc/bash.bashrc | ||
ENV BUILD_DIR /gffmunger-build | ||
ENV CONF_DIR /etc/gffmunger | ||
|
||
RUN apt-get update -qq | ||
RUN apt-get install -y genometools git python3 python-setuptools python3-biopython python3-pip | ||
|
||
# RUN pip3 install dumper gffutils pyyaml | ||
|
||
RUN grep GENOMETOOLS_PATH ${BASHRC} || bash -c "echo; echo 'export GENOMETOOLS_PATH=\"/usr/bin/gt\"'; echo" >> ${BASHRC} | ||
|
||
COPY . ${BUILD_DIR} | ||
|
||
COPY ./*config.yml ${CONF_DIR}/ | ||
|
||
RUN pip3 install ${BUILD_DIR} && \ | ||
bash -c "cd ${BUILD_DIR} && . ./run_tests.sh --verbose" | ||
|
||
RUN bash -c "echo; echo 'alias gffmunger=\"gffmunger --config ${CONF_DIR}/gffmunger-config.yml\"'; echo" >> ${BASHRC} | ||
|
||
VOLUME /var/data | ||
|
||
CMD echo "Usage: docker run -v \`pwd\`:/var/data -it <IMAGE_NAME> bash" && \ | ||
echo "" && \ | ||
echo "This will place you in a shell with your current working directory accessible as /var/data." && \ | ||
echo "For help, type" && \ | ||
echo " gffmunger --help" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# GFF munger | ||
|
||
Munges GFF3 files exported from Chado | ||
|
||
[![Build Status](https://travis-ci.org/sanger-pathogens/gffmunger.svg?branch=master)](https://travis-ci.org/sanger-pathogens/gffmunger) | ||
|
@@ -18,7 +19,9 @@ Munges GFF3 files exported from Chado | |
* [Feedback/Issues](#feedbackissues) | ||
|
||
## Introduction | ||
Munges GFF3 files exported from Chado (http://www.gmod.org/) database to make them suitable for loading into WebApollo. Currently this involved transferring annotations from polypeptide features to the feature (e.g. mRNA) from which the polypeptide derives. | ||
Munges GFF3 files exported from Chado (http://www.gmod.org/) database to make them suitable for loading into WebApollo. | ||
|
||
Currently supports very few functions, but provides a possible framework for additional functionality. | ||
|
||
## Installation | ||
There are a number of ways to install GFF munger and details are provided below. If you encounter an issue when installing GFF munger please contact your local system administrator. If you encounter a bug please log it [here](https://github.com/sanger-pathogens/gffmunger/issues) or email us at [email protected]. | ||
|
@@ -36,25 +39,25 @@ Install GFF munger: | |
|
||
`conda install -c bioconda gffmunger` | ||
|
||
### Debian/Ubuntu (Trusty/Xenial) | ||
To install Python3 on Ubuntu, as root run: | ||
``` | ||
apt-get update -qq | ||
apt-get install -y git python3 python3-setuptools python3-biopython python3-pip | ||
pip3 install git+git://github.com/sanger-pathogens/gffmunger.git | ||
``` | ||
### Running the tests | ||
The test can be run from the top level directory: | ||
The test can be run from the top level directory: | ||
``` | ||
./run_tests.sh | ||
``` | ||
## Usage | ||
|
||
## Synopsis | ||
|
||
``` | ||
gffmunger [--input chado_export.gff3.gz] [--fasta chado_export.fasta] [--output webapollo_compatible.gff3] [--quiet|--verbose] | ||
gffmunger [command1 ... commandN] [--input chado_export.gff3.gz] [--fasta chado_export.fasta] [--output webapollo_compatible.gff3] [--quiet|--verbose] | ||
``` | ||
|
||
Without `--input`, will read from standard input; without `--output`, will write new GFF3 to standard output. If `--fasta` is not used, then will attempt to read FASTA data from the input GFF3 file. | ||
### Commands | ||
|
||
*move_polypeptide_annot* (default) transfers annotations from polypeptide features to the feature (e.g. mRNA) from which the polypeptide derives. | ||
|
||
### Input/output options | ||
|
||
Without `--input`, will read from standard input; without `--output`, will write new GFF3 to standard output. If `--fasta` is not used, then will read FASTA data (if present) from the input GFF3 file. | ||
|
||
## License | ||
GFF munger is free software, licensed under [GPLv3](https://github.com/sanger-pathogens/gffmunger/blob/master/LICENSE). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters