Skip to content

Commit

Permalink
biology/bifrost: Parallel tool for de Bruijn graphs
Browse files Browse the repository at this point in the history
Bifrost is a tool and API for parallel construction, indexing and
querying of colored and compacted de Bruijn graphs from FASTA/FASTQ
DNA/RNA sequence files.
  • Loading branch information
Jason W. Bacon authored and Jason W. Bacon committed Jul 7, 2023
1 parent 0624811 commit 9644117
Show file tree
Hide file tree
Showing 6 changed files with 89 additions and 0 deletions.
1 change: 1 addition & 0 deletions biology/Makefile
Expand Up @@ -15,6 +15,7 @@
SUBDIR += bcftools
SUBDIR += bedtools
SUBDIR += bfc
SUBDIR += bifrost
SUBDIR += bio-mocha
SUBDIR += bioawk
SUBDIR += biococoa
Expand Down
18 changes: 18 additions & 0 deletions biology/bifrost/Makefile
@@ -0,0 +1,18 @@
PORTNAME= bifrost
DISTVERSIONPREFIX= v
DISTVERSION= 1.2.1
CATEGORIES= biology

MAINTAINER= jwb@FreeBSD.org
COMMENT= Parallel construction, indexing and querying of de Bruijn graphs
WWW= https://github.com/pmelsted/bifrost

LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE

USES= cmake
USE_GITHUB= yes

GH_ACCOUNT= pmelsted

.include <bsd.port.mk>
3 changes: 3 additions & 0 deletions biology/bifrost/distinfo
@@ -0,0 +1,3 @@
TIMESTAMP = 1688397139
SHA256 (pmelsted-bifrost-v1.2.1_GH0.tar.gz) = fe93080ef3ea71ff009fc206b5c17dd40fbfd18293000621a83d7d947dfedf1a
SIZE (pmelsted-bifrost-v1.2.1_GH0.tar.gz) = 905438
11 changes: 11 additions & 0 deletions biology/bifrost/files/patch-src_strict__fstream.hpp
@@ -0,0 +1,11 @@
--- src/strict_fstream.hpp.orig 2023-07-03 15:14:36 UTC
+++ src/strict_fstream.hpp
@@ -64,7 +64,7 @@ static std::string strerror()
} else {
return "Unknown error (" + std::to_string(err_num) + ")";
}
-#elif ((_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && ! _GNU_SOURCE) || defined(__APPLE__) || defined(__MUSL__)
+#elif ((_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && ! _GNU_SOURCE) || defined(__APPLE__) || defined(__MUSL__) || defined(__FreeBSD__)
// XSI-compliant strerror_r()
const int err_num = errno; // See above
if (strerror_r(err_num, buff.data(), buff.size()) == 0) {
3 changes: 3 additions & 0 deletions biology/bifrost/pkg-descr
@@ -0,0 +1,3 @@
Bifrost is a tool and API for parallel construction, indexing and
querying of colored and compacted de Bruijn graphs from FASTA/FASTQ
DNA/RNA sequence files.
53 changes: 53 additions & 0 deletions biology/bifrost/pkg-plist
@@ -0,0 +1,53 @@
bin/Bifrost
include/bifrost/BitContainer.hpp
include/bifrost/BlockedBloomFilter.hpp
include/bifrost/ColorSet.hpp
include/bifrost/ColoredCDBG.hpp
include/bifrost/ColoredCDBG.tcc
include/bifrost/Common.hpp
include/bifrost/CompactedDBG.hpp
include/bifrost/CompactedDBG.tcc
include/bifrost/CompressedCoverage.hpp
include/bifrost/CompressedSequence.hpp
include/bifrost/DataAccessor.hpp
include/bifrost/DataAccessor.tcc
include/bifrost/DataManager.hpp
include/bifrost/DataStorage.hpp
include/bifrost/DataStorage.tcc
include/bifrost/FASTX_Parser.hpp
include/bifrost/File_Parser.hpp
include/bifrost/GFA_Parser.hpp
include/bifrost/IO.tcc
include/bifrost/Kmer.hpp
include/bifrost/KmerCovIndex.hpp
include/bifrost/KmerCovIndex.tcc
include/bifrost/KmerHashTable.hpp
include/bifrost/KmerIterator.hpp
include/bifrost/KmerStream.hpp
include/bifrost/Lock.hpp
include/bifrost/MinimizerIndex.hpp
include/bifrost/NeighborIterator.hpp
include/bifrost/NeighborIterator.tcc
include/bifrost/RepHash.hpp
include/bifrost/Search.tcc
include/bifrost/StreamCounter.hpp
include/bifrost/TinyBitmap.hpp
include/bifrost/TinyVector.hpp
include/bifrost/Unitig.hpp
include/bifrost/UnitigIterator.hpp
include/bifrost/UnitigIterator.tcc
include/bifrost/UnitigMap.hpp
include/bifrost/UnitigMap.tcc
include/bifrost/getRSS.h
include/bifrost/kseq.h
include/bifrost/libdivide.h
include/bifrost/libpopcnt.h
include/bifrost/minHashIterator.hpp
include/bifrost/roaring.h
include/bifrost/roaring.hh
include/bifrost/rw_spin_lock.h
include/bifrost/strict_fstream.hpp
include/bifrost/wyhash.h
include/bifrost/zstr.hpp
lib/libbifrost.a
lib/libbifrost.so

0 comments on commit 9644117

Please sign in to comment.