Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schmutzi recipe #10026

Closed
wants to merge 32 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
d353a37
Add Schmutzi recipe
Jun 19, 2018
d160bb1
Removed {{conda}}
Jun 19, 2018
7ce2616
Try cb3 compiler style
Jun 19, 2018
461822c
Compiler also in run?
Jun 19, 2018
47f4208
Compiler CXX
Jun 19, 2018
422cf86
Fix compilers in build
Jun 19, 2018
eb8bdef
Merge branch 'master' into schmutzi
bgruening Jun 20, 2018
1b48d6d
Patching Makefile, not there (yet!)
Jun 20, 2018
50b2898
Schmutzi compiles and runs, though there's an error with getCWD
dpryan79 Jul 8, 2018
944d09f
Update to utilize v1.5.5
Jul 18, 2018
9d7c1fc
Fix MD5 sum mismatch (new version)
Jul 18, 2018
67dcaed
Update to 1.5.5
Jul 19, 2018
d5ad012
Updated Patch2 to specify things correctly
Jul 19, 2018
c22990b
Update to 1.5.5.5
Jul 22, 2018
e8febb3
Fix MD5 for 1.5.5.5
Jul 22, 2018
9d5f2e6
Restructure build order for bamtools and libgab
Jul 22, 2018
0edaeca
Add jsoncpp required for bamtools
Jul 22, 2018
cfb39ec
Add jsoncpp as required for bamtools?!
Jul 22, 2018
d2a9b3a
Merge branch 'master' of https://github.com/bioconda/bioconda-recipes…
Jul 22, 2018
cb8ab25
Patch isn't doing anything anymore...
Jul 22, 2018
e94d0d0
Fix build paths
Jul 22, 2018
de3d440
Build path were not entirely correct
Jul 22, 2018
9283700
Path again
Jul 22, 2018
e0d66ad
Adding patch for cxx compiler
Jul 22, 2018
e5b3bf8
Fix Patch for splitEndoVsCont
Jul 22, 2018
d626109
Fix patch1
Jul 22, 2018
0be655e
Last fixes for Makefiles
Jul 22, 2018
1410723
Create dir for shared files
Jul 22, 2018
23c2d0b
Sed Commands were not terminated
Jul 22, 2018
b9540e2
Patching makefile
Jul 22, 2018
ca965b1
Its src now
Jul 22, 2018
7536cd0
Try fixing header files
Jul 22, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions recipes/schmutzi/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#!/bin/bash
export CPP_INCLUDE_PATH=${PREFIX}/include
export CXX_INCLUDE_PATH=${PREFIX}/include
export CPLUS_INCLUDE_PATH=${PREFIX}/include
export LIBRARY_PATH=${PREFIX}/lib

#Adust path to copy executables too with prefix
sed -i.bak "s#usr/bin/#${PREFIX}/bin#g" Makefile
sed -i.bak "s#usr/share/#${PREFIX}/share#g" Makefile

# Fix shebangs
sed -i.bak "s:usr/bin/perl:usr/bin/env perl:" src/*.pl

#Create dir for shared reference files
mkdir -p $PREFIX/share

# schmutzi uses non-standard bamtools functions that aren't part of the normal library
cd lib
rmdir bamtools
git clone https://github.com/pezmaster31/bamtools
mkdir bamtools/build
cd bamtools/build
cmake ..
make
cd ../..

# Build libgab
rmdir libgab
git clone https://github.com/grenaud/libgab
cd libgab
make BAMTOOLSINC=${PREFIX}/include/bamtools BAMTOOLSLIB=${PREFIX}/lib
#Copy libgab header files to include directories (?)
cp -fv *.h ${PREFIX}/include/
cp -fv *.o ${PREFIX}/lib/

cd ../..



make install

55 changes: 55 additions & 0 deletions recipes/schmutzi/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{% set version = "1.5.5.5" %}
package:
name: schmutzi
version: {{ version }}

build:
number: 0

source:
url: https://github.com/grenaud/schmutzi/archive/{{ version }}.tar.gz
md5: b2c15b64a24aa1c52cd52bd30e9b92b3
patches:
- patch
- patch2

requirements:
build:
- {{ compiler('cxx') }}
- jsoncpp
host:
- cmake
- bamtools
- git
- zlib
- jsoncpp
run:
- zlib
- perl
- jsoncpp
- r-base
- r-fitdistrplus

test:
commands:
- contDeam
- endoCaller
- mtCont
- approxDist.R
- schmutzi.pl
- bam2prof
- insertSize
- log2freq
- logs2pos
- mitoConsPDF.R
- msa2freq
- msa2log
- posteriorDeam.R
- contOut2ContEst.pl
- log2fasta


about:
home: https://github.com/grenaud/schmutzi
license: unknown
summary: Maximum a posteriori estimate of contamination for ancient samples.
8 changes: 8 additions & 0 deletions recipes/schmutzi/patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
--- src/splitEndoVsCont/Makefile 2018-07-19 11:54:29.000000000 +0200
+++ src/splitEndoVsCont/Makefile 2018-07-22 20:06:46.621001003 +0200
@@ -1,5 +1,4 @@

-CXX = /usr/bin/g++ # -g -pg
BAMTOOLS = ../../lib/bamtools/
LIBGAB = ../../lib/libgab/

7 changes: 7 additions & 0 deletions recipes/schmutzi/patch2
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
--- src/Makefile 2018-07-19 11:54:29.000000000 +0200
+++ src/Makefile 2018-07-22 19:12:20.599743706 +0200
@@ -1,4 +1,3 @@
-CXX = /usr/bin/g++ #-g -pg
BAMTOOLS = ../lib/bamtools/
LIBGAB = ../lib/libgab/