1 |
commit: 27b9edadf33754b1305771c3b657ed21c05b1267 |
2 |
Author: Martin Mokrejš <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz> |
3 |
AuthorDate: Mon Mar 24 01:20:53 2014 +0000 |
4 |
Commit: Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz> |
5 |
CommitDate: Mon Mar 24 01:20:53 2014 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=27b9edad |
7 |
|
8 |
sci-biology/pileup: new package; a pileup pipeline used along SSAHA2 |
9 |
|
10 |
--- |
11 |
sci-biology/pileup/ChangeLog | 10 ++++++ |
12 |
sci-biology/pileup/metadata.xml | 9 +++++ |
13 |
sci-biology/pileup/pileup-0.6.ebuild | 66 ++++++++++++++++++++++++++++++++++++ |
14 |
3 files changed, 85 insertions(+) |
15 |
|
16 |
diff --git a/sci-biology/pileup/ChangeLog b/sci-biology/pileup/ChangeLog |
17 |
new file mode 100644 |
18 |
index 0000000..ea30368 |
19 |
--- /dev/null |
20 |
+++ b/sci-biology/pileup/ChangeLog |
21 |
@@ -0,0 +1,10 @@ |
22 |
+# ChangeLog for sci-biology/pileup |
23 |
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
24 |
+# $Header: $ |
25 |
+ |
26 |
+*pileup-0.6 (24 Mar 2014) |
27 |
+ |
28 |
+ 24 Mar 2014; Martin Mokrejs <mmokrejs@×××××××××××××××.cz> +pileup-0.6.ebuild, |
29 |
+ +metadata.xml: |
30 |
+ new package; a pileup pipeline used along SSAHA2 |
31 |
+ |
32 |
|
33 |
diff --git a/sci-biology/pileup/metadata.xml b/sci-biology/pileup/metadata.xml |
34 |
new file mode 100644 |
35 |
index 0000000..07b5255 |
36 |
--- /dev/null |
37 |
+++ b/sci-biology/pileup/metadata.xml |
38 |
@@ -0,0 +1,9 @@ |
39 |
+<?xml version="1.0" encoding="UTF-8"?> |
40 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
41 |
+<pkgmetadata> |
42 |
+ <herd>sci-biology</herd> |
43 |
+ <maintainer> |
44 |
+ <email>mmokrejs@×××××××××××××××.cz</email> |
45 |
+ <name>Martin Mokrejs</name> |
46 |
+ </maintainer> |
47 |
+</pkgmetadata> |
48 |
|
49 |
diff --git a/sci-biology/pileup/pileup-0.6.ebuild b/sci-biology/pileup/pileup-0.6.ebuild |
50 |
new file mode 100644 |
51 |
index 0000000..e78d5de |
52 |
--- /dev/null |
53 |
+++ b/sci-biology/pileup/pileup-0.6.ebuild |
54 |
@@ -0,0 +1,66 @@ |
55 |
+# Copyright 1999-2014 Gentoo Foundation |
56 |
+# Distributed under the terms of the GNU General Public License v2 |
57 |
+# $Header: $ |
58 |
+ |
59 |
+EAPI=3 |
60 |
+ |
61 |
+DESCRIPTION="Pipeline to align reads into the format also understood by samtools, maq, pipeline maybe using ssaha2?" |
62 |
+HOMEPAGE="http://www.sanger.ac.uk/resources/software/ssaha2/" |
63 |
+SRC_URI="ftp://ftp.sanger.ac.uk/pub4/resources/software/ssaha2/pileup.tgz" |
64 |
+ |
65 |
+# http://samtools.sourceforge.net/pileup.shtml |
66 |
+# |
67 |
+LICENSE="" |
68 |
+SLOT="0" |
69 |
+KEYWORDS="~amd64 ~x86" |
70 |
+IUSE="" |
71 |
+ |
72 |
+DEPEND="" |
73 |
+RDEPEND="${DEPEND}" |
74 |
+ |
75 |
+S="${WORKDIR}"/pileup_v"${PV}" |
76 |
+ |
77 |
+src_prepare(){ |
78 |
+ sed -i "s/^CC= gcc/#CC= gcc/" ssaha_pileup/ssaha_pileup/makefile || die "sed failed to fix makefile" |
79 |
+ sed -i "s/^CFLAGS= -O2/#CFLAGS= -O2/" ssaha_pileup/ssaha_pileup/makefile || die "sed failed to fix makefile" |
80 |
+ |
81 |
+ for d in get_seqreads ssaha_split; do |
82 |
+ sed -i "s/^CC = cc/#CC = cc/" ssaha_pileup/other_codes/$d/Makefile || die "sed failed to fix Makefile" |
83 |
+ sed -i "s/^CFLAGS = -O4/#CFLAGS = -O4/" ssaha_pileup/other_codes/$d/Makefile || die "sed failed to fix Makefile" |
84 |
+ done |
85 |
+ |
86 |
+ for d in search_read ssaha_parseSNP; do |
87 |
+ sed -i "s/^CC = gcc/#CC = gcc/" ssaha_pileup/other_codes/$d/Makefile || die "sed failed to fix Makefile" |
88 |
+ sed -i "s/^CFLAGS = -Wall -O4/#CFLAGS = -Wall -O4/" ssaha_pileup/other_codes/$d/Makefile || die "sed failed to fix Makefile" |
89 |
+ done |
90 |
+} |
91 |
+ |
92 |
+src_compile(){ |
93 |
+ cd ssaha_pileup/ssaha_pileup || die "Cannot cd to "${S}"ssaha_pileup/ssaha_pileup" |
94 |
+ emake || die "emake failed" |
95 |
+ |
96 |
+ for d in get_seqreads ssaha_split ssaha_parseSNP search_read; do |
97 |
+ cd "${S}"/ssaha_pileup/other_codes/$d || die "Cannot cd to "${S}"ssaha_pileup/other_codes/"$d |
98 |
+ make clean |
99 |
+ emake || die "emake failed" |
100 |
+ done |
101 |
+} |
102 |
+ |
103 |
+src_install(){ |
104 |
+ cd ssaha_pileup/ssaha_pileup || die "Cannot cd to "${S}"ssaha_pileup/ssaha_pileup" |
105 |
+ dobin ssaha_pileup ssaha_solexa ssaha_pairs ssaha_clean ssaha_mates ssaha_cigar ssaha_indel view_pileup ssaha_reads ssaha_merge ssaha_check-cigar || die "dobin failed" |
106 |
+ |
107 |
+ cd "${S}" || die |
108 |
+ for f in ssaha_pileup/other_codes/get_seqreads/get_seqreads \ |
109 |
+ ssaha_pileup/other_codes/ssaha_split/ssaha_split \ |
110 |
+ ssaha_pileup/other_codes/ssaha_parseSNP/ssaha_parseSNP \ |
111 |
+ ssaha_pileup/other_codes/search_read/search_read; do |
112 |
+ dobin $f || die "dobin failed" |
113 |
+ done |
114 |
+ |
115 |
+ # TODO: |
116 |
+ # pileup_v0.6/ssaha_pileup/tag.pl |
117 |
+ |
118 |
+ # Finally, a tcsh shell script has to be created with full paths to ssaha2 binaries |
119 |
+ # convert the awk line from install.csh to a proper shellscript based on pileup.csh_src |
120 |
+} |