Changeset 4308
- Timestamp:
- Feb 10, 2023, 3:40:22 AM (4 months ago)
- Location:
- trunk
- Files:
-
- 8 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/0.20-stable merged: 4253,4300-4306
- Property svn:mergeinfo changed
-
trunk/NEWS
r4279 r4308 11 11 12 12 yat 0.20.x series from http://dev.thep.lu.se/yat/svn/branches/0.20-stable 13 14 version 0.20.1 (released 10 February 2023) 15 - Aligner::needleman_wunsch and NeedlemanWunsch functions were 16 previously buggy for non-zero gap penalties (bug #993) 17 - VcfHeaer::add_program_command now outputs Date (bug #994) 18 19 A complete list of closed tickets can be found here [[br]] 20 http://dev.thep.lu.se/yat/query?status=closed&milestone=yat+0.20.1 13 21 14 22 version 0.20 (released 18 November 2022) … … 598 606 Copyright (C) 2010, 2011 Peter Johansson 599 607 Copyright (C) 2012 Jari Häkkinen, Peter Johansson 600 Copyright (C) 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022 Peter Johansson608 Copyright (C) 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023 Peter Johansson 601 609 602 610 This file is part of yat library, http://dev.thep.lu.se/yat -
trunk/m4/version.m4
r4252 r4308 2 2 # 3 3 # Copyright (C) 2008, 2009 Jari Häkkinen, Peter Johansson 4 # Copyright (C) 2010, 2011, 2012, 2013, 2014, 2015, 2017, 2018, 2019, 2020, 2021, 2022 Peter Johansson4 # Copyright (C) 2010, 2011, 2012, 2013, 2014, 2015, 2017, 2018, 2019, 2020, 2021, 2022, 2023 Peter Johansson 5 5 # 6 6 # This file is part of the yat library, http://dev.thep.lu.se/yat … … 101 101 # yat-0.19.2 16:2:0 102 102 # yat-0.20 17:0:0 103 # yat-0.20.1 17:1:0 103 104 # 104 105 # *Accidently, the libtool number was not updated for yat 0.5 -
trunk/test/Makefile.am
r4289 r4308 5 5 # Copyright (C) 2005 Jari Häkkinen, Peter Johansson 6 6 # Copyright (C) 2006, 2007, 2008 Jari Häkkinen, Peter Johansson, Markus Ringnér 7 # Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022 Peter Johansson7 # Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023 Peter Johansson 8 8 # 9 9 # This file is part of the yat library, http://dev.thep.lu.se/yat … … 108 108 test/nbc.test \ 109 109 test/ncc.test \ 110 test/needleman_wunsch.test \ 110 111 test/negative_binomial.test \ 111 112 test/negative_binomial_mixture.test \ -
trunk/test/vcf_header.cc
r3999 r4308 2 2 3 3 /* 4 Copyright (C) 2018, 2020 Peter Johansson4 Copyright (C) 2018, 2020, 2023 Peter Johansson 5 5 6 6 This program is free software; you can redistribute it and/or modify … … 23 23 24 24 #include "yat/omic/VcfHeader.h" 25 26 #include "yat/utility/split.h" 27 #include "yat/utility/utility.h" 25 28 26 29 #include <iostream> … … 83 86 suite.out() << hdr.line(4) << "\n"; 84 87 88 // test VcfHeader::add_program_command 89 suite.out() << "test ::add_program_command:\n"; 90 hdr.add_program_command(argc, argv); 91 bool found_command=false; 92 for (size_t i=0; i<hdr.size(); ++i) { 93 if (utility::contains(hdr.line(i), "vcf_header.testCommand")) { 94 suite.out() << hdr.line(i) << "\n"; 95 std::vector<std::string> vec; 96 utility::split(vec, hdr.line(i), ';'); 97 for (size_t j=0; j<vec.size(); ++j) { 98 if (utility::contains(vec[j], "Date")) { 99 found_command = true; 100 suite.out() << "date: '" << vec[j] << "'\n"; 101 if (vec[j].size() < 20) { 102 suite.err() << "date value too short\n"; 103 suite.add(false); 104 } 105 } 106 } 107 } 108 } 109 suite.add(found_command); 110 85 111 return suite.return_value(); 86 112 } -
trunk/yat/omic/VcfCompare.h
r3759 r4308 5 5 6 6 /* 7 Copyright (C) 2018 Peter Johansson7 Copyright (C) 2018, 2023 Peter Johansson 8 8 9 9 The yat library is free software; you can redistribute it and/or … … 58 58 59 59 The following criteria are used to compare the two objects: 60 1) chromosome (as defined din constructor)60 1) chromosome (as defined in constructor) 61 61 2) position \c POS 62 62 3) reference allele \c REF -
trunk/yat/omic/VcfHeader.cc
r4041 r4308 2 2 3 3 /* 4 Copyright (C) 2018, 2020, 2021 Peter Johansson4 Copyright (C) 2018, 2020, 2021, 2023 Peter Johansson 5 5 6 6 The yat library is free software; you can redistribute it and/or … … 28 28 #include <algorithm> 29 29 #include <cassert> 30 #include <ctime> 30 31 #include <istream> 31 32 #include <iterator> … … 142 143 { 143 144 std::string key = utility::basename(argv[0]) + "Command"; 144 std::string val; 145 std::stringstream ss; 146 145 147 for (int i=1; i<argc; ++i) { 146 148 if (i!=1) 147 val += ' '; 148 val += argv[i]; 149 } 150 val += "; Date="; 151 // val += current_time("%a %b %e %H:%M:%S %Y"); 149 ss << ' '; 150 ss << argv[i]; 151 } 152 ss << "; Date="; 153 std::time_t time = std::time(nullptr); 154 ss << std::asctime(std::localtime(&time)); 155 156 std::string val; 157 getline(ss, val); 158 152 159 add(key, val); 153 160 } -
trunk/yat/utility/Aligner.cc
r4207 r4308 2 2 3 3 /* 4 Copyright (C) 2012, 2014, 2016, 2019, 2020, 2022 Peter Johansson4 Copyright (C) 2012, 2014, 2016, 2019, 2020, 2022, 2023 Peter Johansson 5 5 6 6 This file is part of the yat library, http://dev.thep.lu.se/yat … … 57 57 // Init upper and left border of matrix 58 58 for (size_t i=1; i<m.rows(); i++) 59 m(i,0) = - i * vertical_gap_ - open_vertical_gap_;59 m(i,0) = - (i * vertical_gap_ + open_vertical_gap_); 60 60 for (size_t i=1; i<m.columns(); i++) 61 m(0,i) = - i * horizon_gap_ - open_horizon_gap_;61 m(0,i) = - (i * horizon_gap_ + open_horizon_gap_); 62 62 (*this)(s, m); 63 63 // return lower right corner element
Note: See TracChangeset
for help on using the changeset viewer.