biology/bfc: Correct sequencing errors from Illumina sequencing data

BFC is a standalone high-performance tool for correcting sequencing
errors from Illumina sequencing data. It is specifically designed for
high-coverage whole-genome human data, though also performs well for
small genomes.
This commit is contained in:
Jason W. Bacon 2021-08-23 12:28:41 -05:00
parent 615c521bb3
commit 2e559ca48c
6 changed files with 76 additions and 0 deletions

View file

@ -9,6 +9,7 @@
SUBDIR += bbmap SUBDIR += bbmap
SUBDIR += bcftools SUBDIR += bcftools
SUBDIR += bedtools SUBDIR += bedtools
SUBDIR += bfc
SUBDIR += bioawk SUBDIR += bioawk
SUBDIR += biococoa SUBDIR += biococoa
SUBDIR += biolibc SUBDIR += biolibc

20
biology/bfc/Makefile Normal file
View file

@ -0,0 +1,20 @@
PORTNAME= bfc
DISTVERSION= g20150417
CATEGORIES= biology
MAINTAINER= jwb@FreeBSD.org
COMMENT= Correct sequencing errors from Illumina sequencing data
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
USES= gmake
USE_GITHUB= yes
GH_ACCOUNT= lh3
GH_TAGNAME= 69ab176e
INSTALL_TARGET= install-strip
PLIST_FILES= bin/bfc bin/hash2cnt
.include <bsd.port.mk>

3
biology/bfc/distinfo Normal file
View file

@ -0,0 +1,3 @@
TIMESTAMP = 1629673065
SHA256 (lh3-bfc-g20150417-69ab176e_GH0.tar.gz) = 202913e590421d23571c5e7c5cb9c23730ee57cb5b2eaa0e7806d33c49482452
SIZE (lh3-bfc-g20150417-69ab176e_GH0.tar.gz) = 68138

View file

@ -0,0 +1,36 @@
--- Makefile.orig 2015-04-17 05:17:58 UTC
+++ Makefile
@@ -1,11 +1,17 @@
-CC= gcc
-CFLAGS= -g -Wall -O2 -Wno-unused-function #-fno-inline-functions -fno-inline-functions-called-once
+CC?= gcc
+# Allow env to set optimization and warning levels, then add required flags
+CFLAGS?= -g -Wall -O2
+CFLAGS+= -Wno-unused-function #-fno-inline-functions -fno-inline-functions-called-once
CPPFLAGS=
INCLUDES=
OBJS= kthread.o utils.o bseq.o bbf.o htab.o count.o correct.o bfc.o
PROG= bfc hash2cnt
LIBS= -lm -lz -lpthread
+MKDIR?= mkdir
+INSTALL?= install
+STRIP?= strip
+
.SUFFIXES:.c .o
.c.o:
@@ -18,6 +24,13 @@ bfc:$(OBJS)
hash2cnt:hash2cnt.o
$(CC) $(CFLAGS) $< -o $@
+
+install:
+ $(MKDIR) -p $(DESTDIR)$(PREFIX)/bin
+ $(INSTALL) -c $(PROG) $(DESTDIR)$(PREFIX)/bin
+
+install-strip: install
+ $(STRIP) $(DESTDIR)$(PREFIX)/bin/*
clean:
rm -fr gmon.out *.o ext/*.o a.out $(PROG) *~ *.a *.dSYM session*

View file

@ -0,0 +1,10 @@
--- kthread.c.orig 2021-08-22 22:59:48 UTC
+++ kthread.c
@@ -1,6 +1,7 @@
#include <pthread.h>
#include <stdlib.h>
#include <limits.h>
+#include <inttypes.h>
/************
* kt_for() *

6
biology/bfc/pkg-descr Normal file
View file

@ -0,0 +1,6 @@
BFC is a standalone high-performance tool for correcting sequencing
errors from Illumina sequencing data. It is specifically designed for
high-coverage whole-genome human data, though also performs well for
small genomes.
WWW: https://github.com/lh3/bfc