diff --git a/debian/barrnap.install b/debian/barrnap.install new file mode 100644 index 0000000..bf3bf42 --- /dev/null +++ b/debian/barrnap.install @@ -0,0 +1,2 @@ +bin/barrnap usr/bin +db usr/share/barrnap diff --git a/debian/barrnap.manpages b/debian/barrnap.manpages new file mode 100644 index 0000000..19f429f --- /dev/null +++ b/debian/barrnap.manpages @@ -0,0 +1 @@ +debian/man/* diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..635fa30 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +barrnap (0.5+dfsg-1) UNRELEASED; urgency=low + + * Initial release (Closes: #769641) + + -- Sascha Steinbiss Fri, 14 Nov 2014 10:12:42 +0000 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..984f320 --- /dev/null +++ b/debian/control @@ -0,0 +1,23 @@ +Source: barrnap +Section: science +Priority: optional +Maintainer: Debian Med Packaging Team +Uploaders: Sascha Steinbiss +Build-Depends: debhelper (>= 9.0.0), hmmer (>= 3.1) +Standards-Version: 3.9.6 +Homepage: http://www.vicbioinformatics.com/software.barrnap.shtml +Vcs-Browser: http://anonscm.debian.org/viewvc/debian-med/trunk/packages/barrnap/trunk/ +Vcs-Svn: svn://anonscm.debian.org/debian-med/trunk/packages/barrnap/trunk/ + +Package: barrnap +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, hmmer (>= 3.1) +Description: rapid ribosomal RNA prediction + Barrnap (BAsic Rapid Ribosomal RNA Predictor) predicts the location of + ribosomal RNA genes in genomes. It supports bacteria (5S,23S,16S), archaea + (5S,5.8S,23S,16S), mitochondria (12S,16S) and eukaryotes (5S,5.8S,28S,18S). + . + It takes FASTA DNA sequence as input, and writes GFF3 as output. It uses the + NHMMER tool that comes with HMMER 3.1 for HMM searching in RNA:DNA style. + Multithreading is supported and one can expect roughly linear speed-ups + with more CPUs. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..f22cbf9 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,24 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: barrnap +Source: https://github.com/Victorian-Bioinformatics-Consortium/barrnap +Files-Excluded: binaries/* build/* + +Files: * +Copyright: + Copyright 2013 Torsten Seemann +License: GPL-3+ + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + . + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see . + . + On Debian systems, the complete text of the GNU General + Public License version 3 can be found in `/usr/share/common-licenses/GPL-3'. diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..b43bf86 --- /dev/null +++ b/debian/docs @@ -0,0 +1 @@ +README.md diff --git a/debian/files b/debian/files new file mode 100644 index 0000000..8f5dd7d --- /dev/null +++ b/debian/files @@ -0,0 +1 @@ +barrnap_0.5-1_all.deb science optional diff --git a/debian/man/barrnap.1 b/debian/man/barrnap.1 new file mode 100644 index 0000000..33dff25 --- /dev/null +++ b/debian/man/barrnap.1 @@ -0,0 +1,40 @@ +.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.46.2. +.TH BARRNAP "1" "November 2014" "barrnap 0.4.2" "User Commands" +.SH NAME +barrnap \- rapid ribosomal RNA prediction +.SH SYNOPSIS +barrnap [options] +.SH DESCRIPTION +Barrnap predicts the location of ribosomal RNA genes in genomes. It supports +bacteria (5S,23S,16S), archaea (5S,5.8S,23S,16S), mitochondria (12S,16S) and +eukaryotes (5S,5.8S,28S,18S). +.SH OPTIONS +.TP +\fB\-\-help\fR +This help +.TP +\fB\-\-version\fR +Print version and exit +.TP +\fB\-\-citation\fR +Print citation for referencing barrnap +.TP +\fB\-\-kingdom\fR [X] +Kingdom: mito bac arc euk (default 'bac') +.TP +\fB\-\-quiet\fR +No screen output (default OFF) +.TP +\fB\-\-threads\fR [N] +Number of threads/cores/CPUs to use (default '8') +.HP +\fB\-\-lencutoff\fR [n.n] Proportional length threshold to label as partial (default '0.8') +.TP +\fB\-\-reject\fR [n.n] +Proportional length threshold to reject prediction (default '0.5') +.TP +\fB\-\-evalue\fR [n.n] +Similarity e\-value cut\-off (default '1e\-09') +.TP +\fB\-\-incseq\fR +Include FASTA input sequences in GFF3 output (default OFF) diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..fe1fbb0 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +use_debian_dirs diff --git a/debian/patches/use_debian_dirs b/debian/patches/use_debian_dirs new file mode 100644 index 0000000..e476761 --- /dev/null +++ b/debian/patches/use_debian_dirs @@ -0,0 +1,19 @@ +Description: Do not rely on path location relative to barrnap executable +--- a/bin/barrnap ++++ b/bin/barrnap +@@ -14,9 +14,14 @@ + my $AUTHOR = 'Torsten Seemann '; + my $URL = 'http://www.vicbioinformatics.com/'; + my $DBDIR = "$FindBin::RealBin/../db"; ++if ( ! -e $DBDIR) { ++ $DBDIR = "/usr/share/barrnap/db"; ++} + my $OPSYS = $^O; + my $NHMMER = "$FindBin::RealBin/../binaries/$OPSYS/nhmmer"; +- ++if ( ! -e $NHMMER ) { ++ $NHMMER = "/usr/bin/nhmmer"; ++} + my %KINGDOM = (map { substr($_,0,1) => $_ } qw(bac arc euk mito)); + my %LENG = ( + "5S_rRNA" =>119, "16S_rRNA"=>1585, "23S_rRNA"=>3232, diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..0e3f682 --- /dev/null +++ b/debian/rules @@ -0,0 +1,21 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +DH_VERBOSE=1 +DEBVERS := $(shell dpkg-parsechangelog | sed -n -e 's/^Version: //p') +VERSION := $(shell echo '$(DEBVERS)' | sed -e 's/^[[:digit:]]*://' -e 's/[~-].*//') +OVERSION := $(shell echo '$(DEBVERS)' | sed -e 's/^[[:digit:]]*://' -e 's/[+].*//') + +%: + dh $@ --parallel + +override_dh_auto_build: + # pass + +override_dh_auto_install: + # pass + +get-orig-source: + uscan --verbose --force-download --repack --compression xz --destdir=.. + mv ../barrnap_$(OVERSION).orig.tar.xz ../barrnap_$(VERSION).orig.tar.xz + diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..16515b4 --- /dev/null +++ b/debian/watch @@ -0,0 +1,4 @@ +version=3 + +opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/barrnap-$1.tar.gz/,dversionmangle=s/.dfsg// \ + https://github.com/Victorian-Bioinformatics-Consortium/barrnap/tags .*/v?(\d\S*)\.tar\.gz