Changeset 3439
- Timestamp:
- Nov 20, 2015, 6:41:52 AM (7 years ago)
- Location:
- trunk
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/0.13-stable merged: 3426-3437
- Property svn:mergeinfo changed
-
trunk/NEWS
r3419 r3439 10 10 yat 0.13.x series from http://dev.thep.lu.se/yat/svn/branches/0.13-stable 11 11 12 version 0.13 (released NOT YET) 12 version 0.13 (released 20 November 2015) 13 - added support for htslib (see ticket #794) 14 - macro `YAT_HAVE_LIBBAM` is #defined if linking against either libbam 15 or libhts. Use #if defined YAT_HAVE_LIBBAM && !defined 16 (YAT_HAVE_HTSLIB) to check that building against libbam. 17 - macro `YAT_BAM_HEADER` is only #defined when building against libbam 13 18 - utility::get separates types in map and passed key (ticket #799) 14 19 - utility::Range is deprecated (ticket #786) 15 20 - AveragerWeighted::n(void) now return 0, when object is empty (ticket #802) 16 - added support for htslib (see ticket #794)17 21 - Container2DIterator is now tagged with 18 22 boost::random_access_traversal_tag (see ticket #803, r3393) -
trunk/README
r3417 r3439 113 113 compiler with `./configure CPPFLAGS=-I<include dir>` when header files 114 114 are found in directory `<include dir>`. Configure detects whether 115 header files are from htslib or old samtools and looks for either libhts or libbam accordingly. If library is installed outside linker's search path, in `<lib 116 dir>`, you can run `./configure LDFLAGS=-L<lib dir>`. You can build 117 yat without bam support by running `./configure --without-samtools`. 118 119 The samtools program is needed for some tests realted to bam 115 header files are from htslib or old samtools and looks for either 116 libhts or libbam accordingly. If library is installed outside linker's 117 search path, in `<libdir>`, you can run `./configure LDFLAGS=-L<lib 118 dir>`. You can build yat without bam support by running `./configure 119 --without-samtools`. 120 121 The samtools program is needed for some tests related to bam 120 122 functionality. If samtools is not found by configure, these tests will 121 123 be skipped. If you have samtools available outside PATH, you can help … … 186 188 Copyright (C) 2004 Jari Häkkinen 187 189 Copyright (C) 2006, 2007, 2008 Jari Häkkinen, Peter Johansson 188 Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014 Peter Johansson190 Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014, 2015 Peter Johansson 189 191 190 192 This file is part of yat library, http://dev.thep.lu.se/yat -
trunk/configure.ac
r3417 r3439 371 371 ], [$LIBZ $user_LIBS], [$LIBZ], [YAT_STATIC_LIBS]) 372 372 373 # Check if htslib is available. If no check if samtools API is available373 # Check if htslib is available. If not, check if samtools API is available 374 374 YAT_CHECK_HTS([ 375 375 AC_MSG_CHECKING([htslib]) -
trunk/test/Suite.cc
r3417 r3439 46 46 if (require_bam) { 47 47 #ifndef YAT_HAVE_LIBBAM 48 out() << "no libbam\n";48 out() << "no bam support\n"; 49 49 exit (EXIT_SKIP); 50 50 #endif -
trunk/test/Suite.h
r3322 r3439 6 6 /* 7 7 Copyright (C) 2008 Jari Häkkinen, Peter Johansson 8 Copyright (C) 2009, 2010, 2011, 2013, 2014 Peter Johansson8 Copyright (C) 2009, 2010, 2011, 2013, 2014, 2015 Peter Johansson 9 9 10 10 This file is part of the yat library, http://dev.thep.lu.se/yat … … 24 24 */ 25 25 26 // ensure that config.h always is included first 27 #ifndef YAT_VERSION 28 #error header 'config.h' not included 29 #endif 30 31 #include <yat/utility/config_public.h> 32 26 33 #define YAT_TEST_PROLOGUE "\n=== " << __func__ << " ===\n" 27 34 … … 30 37 31 38 // SKIP_BAM_TEST is defined if we should skip bam tests 32 #ifndef HAVE_LIBBAM 33 #define SKIP_BAM_TEST 34 #endif 35 #ifndef HAVE_SAMTOOLS 39 #if !defined (YAT_HAVE_LIBBAM) || !defined (HAVE_SAMTOOLS_EXECUTABLE) 36 40 #define SKIP_BAM_TEST 37 41 #endif -
trunk/test/pileup.cc
r3417 r3439 23 23 24 24 #include "Suite.h" 25 26 #include <yat/utility/config_public.h> 25 27 26 28 #ifdef YAT_HAVE_LIBBAM … … 50 52 51 53 52 #ifdef YAT_HAVE_LIBBAM53 54 char seq_nt16(size_t x) 54 55 { … … 59 60 #else 60 61 std::string table = "=ACMGRSVTWYHKDBN"; 61 return table[ c];62 return table[x]; 62 63 #endif 63 64 } 64 65 66 #ifdef YAT_HAVE_LIBBAM 65 67 void test1(test::Suite& suite, const std::string& fn) 66 68 { -
trunk/test/roc.cc
r3114 r3439 3 3 /* 4 4 Copyright (C) 2007, 2008 Jari Häkkinen, Peter Johansson 5 Copyright (C) 2011, 2012, 2013 Peter Johansson5 Copyright (C) 2011, 2012, 2013, 2015 Peter Johansson 6 6 7 7 This file is part of the yat library, http://dev.thep.lu.se/yat … … 230 230 suite.err() << "error: expected p-value>0.5\n found: " 231 231 << roc.p_right() << "\n"; 232 } 233 if (roc.p_value() > 1.0) { 234 suite.err() << "error: expected p-value <= 1\n found: " 235 << roc.p_value() << "\n"; 236 suite.add(false); 232 237 } 233 238 } -
trunk/yat/omic/config_bam.h
r3417 r3439 49 49 #ifndef YAT_SAM_HEADER 50 50 #error This file requires samtools header files and cannot be used when \ 51 yat was configured with switch '--without- samtools'.51 yat was configured with switch '--without-htslib'. 52 52 #endif 53 53 -
trunk/yat/statistics/ROC.cc
r3023 r3439 4 4 Copyright (C) 2004, 2005 Peter Johansson 5 5 Copyright (C) 2006, 2007, 2008 Jari Häkkinen, Peter Johansson 6 Copyright (C) 2011, 2012, 2013 Peter Johansson6 Copyright (C) 2011, 2012, 2013, 2015 Peter Johansson 7 7 8 8 This file is part of the yat library, http://dev.thep.lu.se/yat … … 228 228 return std::min(p, 1.0); 229 229 } 230 return 2*get_p_approx( area());230 return 2*get_p_approx(std::max(area(), 1-area())); 231 231 } 232 232 -
trunk/yat/statistics/ROC.h
r3023 r3439 7 7 Copyright (C) 2004 Peter Johansson 8 8 Copyright (C) 2005, 2006, 2007, 2008 Jari Häkkinen, Peter Johansson 9 Copyright (C) 2011, 2012, 2013 Peter Johansson9 Copyright (C) 2011, 2012, 2013, 2015 Peter Johansson 10 10 11 11 This file is part of the yat library, http://dev.thep.lu.se/yat … … 96 96 97 97 Threshold deciding whether p-value is computed using exact 98 method or a Gaussian approximation. If bothnumber of positive99 samples, n_pos(void), andnumber of negative samples,98 method or a Gaussian approximation. If either number of positive 99 samples, n_pos(void), or number of negative samples, 100 100 n_neg(void), are smaller than minimum_size the exact method is 101 101 used. -
trunk/yat/utility/config_public.h.in
r3417 r3439 44 44 #undef YAT_HAVE_HTS_H 45 45 46 /// Define to 1 if yat is buil dwith bam support46 /// Define to 1 if yat is built with bam support 47 47 #undef YAT_HAVE_LIBBAM 48 48
Note: See TracChangeset
for help on using the changeset viewer.