aboutsummaryrefslogtreecommitdiff
blob: 46d1029fded98d8bf00bff38f120c879a0c7f6ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=5

inherit toolchain-funcs

if [ "$PV" == "9999" ]; then
	inherit git-r3
fi

DESCRIPTION="Reference-genome-assisted asssembly of contigs/scaffolds using PE reads"
HOMEPAGE="https://github.com/baoe/AlignGraph
	http://bioinformatics.oxfordjournals.org/content/30/12/i319.long"
if [ "$PV" == "9999" ]; then
	EGIT_REPO_URI="https://github.com/baoe/AlignGraph.git"
	KEYWORDS=""
else
	SRC_URI=""
	KEYWORDS=""
fi

LICENSE="Artistic-2"
SLOT="0"
IUSE=""

DEPEND=""
RDEPEND="${DEPEND}
	sci-biology/mummer
	sci-biology/blat
	sci-biology/bowtie"

# AlignGraph runs the alignment steps with BLAT and Bowtie2 automatically, but both
# need to be installed on the system. AlignGraph’s run time is currently 23–57 min
# per million aligned reads. In the performance tests of this study, the memory usage
# was 36–50 GB, and it stays <100 GB even for entire mammalian genomes. These requirements
# are more moderate than those of most de novo assemblers (Luo et al., 2012).

# 8 threads are hardcoded. Currently users cannot make changes to this, since this is
# a moderate choice for either single CPU machines (overhead for parallelization would
# not be too large) or multiple CPU machines. Another reason is, the bottleneck for the
# runtime is usually from BLAT, no matter how many threads there are for Bowtie2.
src_compile(){
	cd AlignGraph || die
	$(tc-getCXX) ${CXXFLAGS} -o AlignGraph AlignGraph.cpp -lpthread
	cd ../Eval-AlignGraph || die
	$(tc-getCXX) ${CXXFLAGS} -o Eval-AlignGraph Eval-AlignGraph.cpp -lpthread
}

src_install(){
	dobin AlignGraph/AlignGraph Eval-AlignGraph/Eval-AlignGraph
	dodoc README.md
}