biology/biostar-tools: Meta-port for Biostar Handbook tools

Biostar-Tools is a metaport for installing all the tools necessary to work
through the Biostar Handbook, except for bedGrapToBigWig, which has license
restrictions.  If you need bedGraphToBigWig, run

    cd /usr/ports/biology/ucsc-userapps && make install clean
This commit is contained in:
Jason W. Bacon 2021-06-18 16:56:23 -05:00
parent 98807e08be
commit 6df92a09ad
6 changed files with 126 additions and 0 deletions

View file

@ -14,6 +14,7 @@
SUBDIR += biolibc
SUBDIR += bioparser
SUBDIR += biosoup
SUBDIR += biostar-tools
SUBDIR += bolt-lmm
SUBDIR += bowtie
SUBDIR += bowtie2

View file

@ -0,0 +1,59 @@
PORTNAME= biostar-tools
PORTVERSION= 0.9.0
CATEGORIES= biology python
MAINTAINER= jwb@FreeBSD.org
COMMENT= Meta-port for Biostar Handbook tools
LICENSE= BSD2CLAUSE
# For a current list see http://data.biostarhandbook.com/install/conda.txt.
# Also included are some programs not listed above, but mentioned in the text.
# sra-tools is almost complete and will be added pending testing
RUN_DEPENDS= wget>0:ftp/wget \
curl>0:ftp/curl \
nano>0:editors/nano \
parallel>0:sysutils/parallel \
seqkit>0:biology/seqkit \
csvtk>0:science/csvtk \
ncbi-entrez-direct>0:biology/ncbi-entrez-direct \
readseq>0:biology/readseq \
snpeff>0:biology/snpeff \
picard-tools>0:biology/picard-tools \
bbmap>0:biology/bbmap \
minimap2>0:biology/minimap2 \
bwa>=0:biology/bwa \
bowtie2>=0:biology/bowtie2 \
samtools>0:biology/samtools \
emboss>0:biology/emboss \
bedtools>0:biology/bedtools \
bamtools>0:biology/bamtools \
${PYTHON_PKGNAMEPREFIX}cutadapt>0:biology/py-cutadapt@${PY_FLAVOR} \
seqtk>0:biology/seqtk \
datamash>0:textproc/datamash \
bcftools>0:biology/bcftools \
subread>0:biology/subread \
hisat2>0:biology/hisat2 \
trimmomatic>0:biology/trimmomatic \
fastqc>0:biology/fastqc \
picard-tools>0:biology/picard-tools \
ncbi-blast+>0:biology/ncbi-blast+ \
cd-hit>0:biology/cd-hit \
${PYTHON_PKGNAMEPREFIX}biopython>0:biology/py-biopython@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pysam>0:biology/py-pysam@${PY_FLAVOR} \
freebayes>0:biology/freebayes \
p5-Net-SSLeay>0:security/p5-Net-SSLeay \
bioawk>0:biology/bioawk \
vt>0:biology/vt \
${PYTHON_PKGNAMEPREFIX}crossmap>0:biology/py-crossmap@${PY_FLAVOR}
USES= metaport python
SUB_FILES= biostar-shell
PLIST_FILES= bin/biostar-shell
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKDIR}/biostar-shell ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>

View file

@ -0,0 +1 @@
TIMESTAMP = 1624053283

View file

@ -0,0 +1,29 @@
#!/bin/sh -e
ucsc_bin=%%PREFIX%%/userapps/bin
emboss_bin=%%PREFIX%%/emboss/bin
cat << EOM
Adding $ucsc_bin and $emboss_bin to \$PATH.
UCSC kent utils and emboss contain commands that conflict with other tools,
including at least "calc", "mktime", and "stringify".
The other commands with these names may serve entirely different functions
and will not be accessible while running this shell unless you refer to them
by their absolute path name (e.g. /usr/local/bin/calc), which is not portable,
BTW, so don't hard-code such paths into your scripts.
Type "exit" or "Ctrl+D" to return to your normal shell.
EOM
export PATH=${ucsc_bin}:${emboss_bin}:$PATH
# FIXME: Update shell prompts to include (ucsc-kent)?
# Invoke the user's chosen shell
if echo $SHELL | egrep -q '/t?csh'; then
args='-f'
fi
exec $SHELL $args

View file

@ -0,0 +1,18 @@
Biostar-Tools is a metaport for installing all the tools necessary to work
through the Biostar Handbook, except for bedGrapToBigWig, which has license
restrictions. If you need bedGraphToBigWig, run
cd /usr/ports/biology/ucsc-userapps && make install clean
The handbook instructs the user to install these tools mostly via bioconda,
which then requires the user to activate the bioconda environment each time
they want to use the tools. This meta-package installs all of the tools
except emboss to the default PATH so they just work without any special
environment. Emboss commands are installed to /usr/local/emboss/bin due to
conflicts with other packages.
You can also install conda packages on FreeBSD. For details, see
/usr/ports/sysutils/linux-miniconda-installer/pkg-descr
WWW: https://www.biostarhandbook.com

View file

@ -0,0 +1,18 @@
[
{ type: install
message: <<EOM
If you need bedGraphToBigWig, run:
cd ${PORTSDIR}/biology/ucsc-userapps && make install clean
sra-tools is using Linux compatibility for now, until the native FreeBSD
port is complete.
For a quick and proper configuration, run the following:
pkg install -y auto-admin
auto-install-linux_base
EOM
}
]