Changeset 2986
- Timestamp:
- Feb 18, 2013, 9:07:44 AM (10 years ago)
- Location:
- trunk
- Files:
-
- 15 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/0.10-stable merged: 2961-2962,2965,2967-2972,2974,2977,2979
- Property svn:mergeinfo changed
-
trunk/configure.ac
r2981 r2986 298 298 [Define to 1 if libbam is available])], 299 299 [YAT_MSG_ERROR([Library 'libbam' was not found])]) 300 # check if global variable bam_nt16_rev_table is available 301 YAT_BAM_NT16_REV_TABLE 300 302 AC_PATH_PROG([SAMTOOLS], [samtools], [false]) 301 303 AC_ARG_VAR([SAMTOOLS], [Tools for alignment in the SAM format]) … … 320 322 321 323 AC_DEFINE([HAVE_INLINE], [1], [Define if inline is available on system]) 324 # default is same as --disable-debug 322 325 AC_ARG_ENABLE([debug], 323 [AS_HELP_STRING([--enable-debug],[turn on debug options and code])]) 326 [AS_HELP_STRING([--enable-debug],[turn on debug options and code])], 327 [], [enable_debug=no]) 324 328 325 329 # If neither --enable-assert nor --disable-assert, set enable_assert -
trunk/m4/yat_check_libbam.m4
r2943 r2986 1 1 ## $Id$ 2 2 # 3 # serial 1 (yat 0.10)3 # serial 2 (yat 0.10.2) 4 4 # 5 5 # 6 # Copyright (C) 2012 Peter Johansson6 # Copyright (C) 2012, 2013 Peter Johansson 7 7 # 8 8 # This file is part of the yat library, http://dev.thep.lu.se/yat … … 78 78 LIBS=$save_LIBS 79 79 ]) # YAT_LINK_BAM_IFELSE 80 81 # YAT_BAM_NT16_REV_TABLE 82 # ==================================================================== 83 # Check if global variable bam_nt16_rev_table is available in 84 # -lbam. If found call AC_DEFINE(HAVE_BAM_NT16_REV_TABLE). 85 AC_DEFUN([YAT_BAM_NT16_REV_TABLE], 86 [ 87 AC_MSG_CHECKING([for bam_nt16_rev_table]) 88 AC_LINK_IFELSE([AC_LANG_PROGRAM( 89 [@%:@if HAVE_BAM_H 90 @%:@ include <bam.h> 91 @%:@elif HAVE_BAM_BAM_H 92 @%:@ include <bam/bam.h> 93 @%:@elif HAVE_SAMTOOLS_BAM_H 94 @%:@ include <samtools/bam.h> 95 @%:@endif 96 ],[ 97 char c = bam_nt16_rev_table@<:@7@:>@; 98 ]) 99 ],[ 100 AC_MSG_RESULT([yes]) 101 AC_DEFINE([HAVE_BAM_NT16_REV_TABLE], [1], 102 [Define to 1 if libbam contains bam_nt16_rev_table]) 103 ],[ 104 AC_MSG_RESULT([no]) 105 ]) 106 ]) # YAT_BAM_NT16_REV_TABLE -
trunk/test/Makefile.am
r2982 r2986 37 37 test/averager3.test \ 38 38 test/averager4.test \ 39 test/bam.test \ 39 40 test/bam_pair_analyse.test \ 40 41 test/bam_iterator.test \ -
trunk/test/bam_iterator.cc
r2983 r2986 82 82 if (lhs.pos() != rhs.pos()) 83 83 return false; 84 if (lhs.mtid() != rhs.mtid()) 85 return false; 86 if (lhs.mpos() != rhs.mpos()) 87 return false; 84 88 if (lhs.core().bin != rhs.core().bin) 85 89 return false; -
trunk/yat/classifier/InputRanker.h
r2966 r2986 7 7 Copyright (C) 2004 Peter Johansson 8 8 Copyright (C) 2005, 2006, 2007, 2008 Jari Häkkinen, Peter Johansson 9 Copyright (C) 2013 Jari Häkkinen 9 10 10 11 This file is part of the yat library, http://dev.thep.lu.se/yat -
trunk/yat/classifier/KNN_ReciprocalDistance.h
r2966 r2986 6 6 /* 7 7 Copyright (C) 2008 Jari Häkkinen, Peter Johansson, Markus Ringnér 8 Copyright (C) 2013 Jari Häkkinen 8 9 9 10 This file is part of the yat library, http://dev.thep.lu.se/yat … … 22 23 along with yat. If not, see <http://www.gnu.org/licenses/>. 23 24 */ 24 25 25 26 26 #include <cstddef> -
trunk/yat/classifier/KNN_ReciprocalRank.h
r2966 r2986 6 6 /* 7 7 Copyright (C) 2008 Jari Häkkinen, Peter Johansson, Markus Ringnér 8 Copyright (C) 2013 Jari Häkkinen 8 9 9 10 This file is part of the yat library, http://dev.thep.lu.se/yat -
trunk/yat/classifier/KNN_Uniform.h
r2966 r2986 6 6 /* 7 7 Copyright (C) 2008 Jari Häkkinen, Peter Johansson, Markus Ringnér 8 Copyright (C) 2013 Jari Häkkinen 8 9 9 10 This file is part of the yat library, http://dev.thep.lu.se/yat … … 22 23 along with yat. If not, see <http://www.gnu.org/licenses/>. 23 24 */ 24 25 25 26 26 #include <cstddef> -
trunk/yat/classifier/SVindex.h
r2966 r2986 6 6 /* 7 7 Copyright (C) 2006, 2007, 2008 Jari Häkkinen, Peter Johansson 8 Copyright (C) 2013 Jari Häkkinen 8 9 9 10 This file is part of the yat library, http://dev.thep.lu.se/yat -
trunk/yat/omic/BamRead.cc
r2985 r2986 149 149 std::string BamRead::sequence(void) const 150 150 { 151 // FIXME bam_nt16_rev_table not available in old lbam152 151 std::string result(sequence_length(), ' '); 152 #ifdef HAVE_BAM_NT16_REV_TABLE 153 153 for (size_t i=0; i<result.size(); ++i) 154 154 result[i] = bam_nt16_rev_table[sequence(i)]; 155 #else 156 std::string table = "=ACMGRSVTWYHKDBN"; 157 for (size_t i=0; i<result.size(); ++i) 158 result[i] = table[sequence(i)]; 159 #endif 155 160 return result; 156 161 } … … 192 197 } 193 198 199 200 int32_t BamRead::mtid(void) const 201 { 202 assert(bam_); 203 return bam_->core.mtid; 204 } 194 205 195 206 -
trunk/yat/omic/BamRead.h
r2985 r2986 257 257 258 258 \since New in yat 0.10 259 260 \relates BamRead 259 261 */ 260 262 void swap(BamRead& lhs, BamRead& rhs); … … 265 267 266 268 \since New in yat 0.10 269 270 \relates BamRead 267 271 */ 268 272 bool soft_clipped(const BamRead& bam); … … 273 277 274 278 \since New in yat 0.10 279 280 \relates BamRead 275 281 */ 276 282 uint32_t left_soft_clipped(const BamRead& bam); … … 281 287 282 288 \since New in yat 0.10 289 290 \relates BamRead 283 291 */ 284 292 uint32_t right_soft_clipped(const BamRead& bam); … … 290 298 291 299 \since New in yat 0.10 300 301 \relates BamRead 292 302 */ 293 303 bool same_query_name(const BamRead& lhs, const BamRead& rhs); -
trunk/yat/omic/BamReadIterator.h
r2943 r2986 41 41 42 42 Iterator is a single pass \input_iterator which means iterator 43 can only be used read bam file. Also two BamReadIteratorworking44 on the same InBamFile are not independent, i.e., incrementing one45 iterator will also affect the other one.43 can only be used read bam file. If creating two iterators working 44 on the same InBamFile, the iterators are not independent of each 45 other. Incrementing one, the behaviour of the other is undefined. 46 46 47 47 Iterator can either be constructed to iterate over entire bam -
trunk/yat/statistics/VectorFunction.h
r2966 r2986 6 6 /* 7 7 Copyright (C) 2007, 2008 Jari Häkkinen, Peter Johansson 8 Copyright (C) 2013 Jari Häkkinen 8 9 9 10 This file is part of the yat library, http://dev.thep.lu.se/yat -
trunk/yat/utility/Aligner.h
r2966 r2986 6 6 /* 7 7 Copyright (C) 2012 Peter Johansson 8 Copyright (C) 2013 Jari Häkkinen 8 9 9 10 This file is part of the yat library, http://dev.thep.lu.se/yat
Note: See TracChangeset
for help on using the changeset viewer.