summaryrefslogtreecommitdiffstats
path: root/academic/STAR
diff options
context:
space:
mode:
Diffstat (limited to 'academic/STAR')
-rw-r--r--academic/STAR/README15
-rw-r--r--academic/STAR/STAR.SlackBuild46
-rw-r--r--academic/STAR/STAR.info6
3 files changed, 51 insertions, 16 deletions
diff --git a/academic/STAR/README b/academic/STAR/README
index 7d410d628f..ae22618ac8 100644
--- a/academic/STAR/README
+++ b/academic/STAR/README
@@ -2,9 +2,20 @@ STAR aligns short and long RNA-seq reads to a reference genome using
uncompressed suffix arrays, resulting in fast, accurate mapping.
STAR is capable of unbiased de novo detection of canonical splice
junctions, can discover non-canonical splices and chimeric (fusion)
-transcripts and can map full-length RNA sequences. Comes with
-STARsolo for: mapping, demultiplexing and gene quantification for
+transcripts and can map full-length RNA sequences. Comes with
+STARsolo for: mapping, demultiplexing and gene quantification for
single cell RNA-seq (See STARmanual).
+The make command for building the program assumes that the cpu is
+supporting AVX extensions, included in intel processors since Sandy
+Bridge (2008) and in AMD cpus since Bulldozer (2011). See the
+Slackbuild if other processors can be supported.
Reference: https://www.ncbi.nlm.nih.gov/pubmed/23104886
+
+
+LIMITATIONS
+This release was tested with the default parameters for human and
+mouse genomes. Mammal genomes require at least 16GB of RAM, ideally
+32GB. Please contact the author for a list of recommended parameters
+for much larger or much smaller genomes.
diff --git a/academic/STAR/STAR.SlackBuild b/academic/STAR/STAR.SlackBuild
index 7496aea4de..bc4913730e 100644
--- a/academic/STAR/STAR.SlackBuild
+++ b/academic/STAR/STAR.SlackBuild
@@ -1,8 +1,8 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for STAR
-# Copyright 2018-2021 Rob van Nues <sborg63@disroot.org>
+# Copyright 2018-2023 Rob van Nues <sborg63@disroot.org>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,10 +22,22 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=STAR
-VERSION=${VERSION:-2.7.7a}
+VERSION=${VERSION:-2.7.11b}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
+
+# This script is set for processors that support "Advanced Vector Extensions",
+# (AVX), included since 2008 in Intel processors (Sandy Bridge) and since 2011
+# in AMD cpus (Bulldozer). AVX is an implementation of "Single Instruction
+# stream-Multiple Data streams" (SIMD) to process vector type data.
+# If no AVX (`cat /proc/cpuinfo | grep 'avx'`) is present, specify the
+# available SIMD architecture (https://en.wikichip.org/wiki/x86/extensions),
+# e.g. with "Streaming SIMD Extensions" use 'sse', and uncomment the next line.
+#SIMD=${SIMD:-sse}; echo "Using ${SIMD} as SIMD"
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -35,7 +47,11 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -45,7 +61,7 @@ if [ "$ARCH" = "x86_64" ]; then
LIBDIRSUFFIX="64"
else
echo "Sorry, this program does not run/compile on your architecture ($ARCH)"
- exit 1
+ exit 0
fi
set -e
@@ -73,16 +89,23 @@ find -L . \
# https://github.com/alexdobin/STAR/issues/447
#so let's forget about this for now
+#For processors that do not support AVX extensions, specify the target SIMD architecture
+#make STAR CXXFLAGS_SIMD=sse
cd source
-
- make ${PRGNAM} CFLAGS="$SLKCFLAGS" CXXFLAGSextra="$SLKCFLAGS"
+ if [ ! -z "${SIMD}" ]; then
+ echo "make with CXXFLAG_SIMD=${SIMD}"
+ make ${PRGNAM} CFLAGS="$SLKCFLAGS" CXXFLAGSextra="$SLKCFLAGS" CXXFLAGS_SIMD="$SIMD"
+ else
+ echo "default make"
+ make ${PRGNAM} CFLAGS="$SLKCFLAGS" CXXFLAGSextra="$SLKCFLAGS"
+ fi
mkdir -p $PKG/usr/bin
install -Dm755 $PRGNAM "$PKG/usr/bin/${PRGNAM}"
- make clean
- make ${PRGNAM}long CXXFLAGSextra="$CXXFLAGS"
- install -Dm755 ${PRGNAM}long "$PKG/usr/bin/${PRGNAM}long"
+ #make clean
+ #make ${PRGNAM}long CXXFLAGSextra="$CXXFLAGS"
+ #install -Dm755 ${PRGNAM}long "$PKG/usr/bin/${PRGNAM}long"
cd ..
@@ -94,9 +117,10 @@ cp -a \
source/parametersDefault doc/${PRGNAM}manual.pdf CHANGES.md LICENSE README.md RELEASEnotes.md \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+chmod 644 $PKG/usr/doc/$PRGNAM-$VERSION/parametersDefault
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/academic/STAR/STAR.info b/academic/STAR/STAR.info
index 587eba1a10..6c9a4bff5e 100644
--- a/academic/STAR/STAR.info
+++ b/academic/STAR/STAR.info
@@ -1,10 +1,10 @@
PRGNAM="STAR"
-VERSION="2.7.7a"
+VERSION="2.7.11b"
HOMEPAGE="https://github.com/alexdobin/STAR"
DOWNLOAD="UNSUPPORTED"
MD5SUM=""
-DOWNLOAD_x86_64="https://github.com/alexdobin/STAR/archive/2.7.7a/STAR-2.7.7a.tar.gz"
-MD5SUM_x86_64="475dea44ba23dfe99bb8e6e40d18bfdc"
+DOWNLOAD_x86_64="https://github.com/alexdobin/STAR/archive/2.7.11b/STAR-2.7.11b.tar.gz"
+MD5SUM_x86_64="9e21d9930989b1be3ffc50b818489d55"
REQUIRES=""
MAINTAINER="Rob van Nues"
EMAIL="sborg63@disroot.org"