Codebase list diamond-aligner / 8262843
New upstream version 2.0.15 Andreas Tille 2 years ago
9 changed file(s) with 18 addition(s) and 33 deletion(s). Raw diff Collapse all Expand all
3232 About
3333 =====
3434 DIAMOND is currently developed by Benjamin Buchfink at the Drost lab, Max
35 Planck Institute for Developmental Biology, Tübingen, Germany (since 2019).
35 Planck Institute for Biology, Tübingen, Germany (since 2019).
3636 Its development was supported for one year by the German Federal Ministry
3737 for Economic Affairs and Energy through an EXIST grant in 2018-2019. It was
3838 developed independently by Benjamin Buchfink from 2016-2018. Its initial
4343 \[[Twitter](https://twitter.com/bbuchfink)\] \[[Google
4444 Scholar](https://scholar.google.de/citations?user=kjPIF1cAAAAJ)\]
4545 \[[Drost lab](https://drostlab.com/)\]
46 \[[MPI-EBIO](http://eb.tuebingen.mpg.de/)\]
46 \[[MPI-BIO](http://eb.tuebingen.mpg.de/)\]
4747
4848 **When using the tool in published research, please cite:**
4949
0 [2.0.15]
1 - Fixed a bug (present since v2.0.12) that caused the `diamond view` workflow to
2 report a zero bit score for all alignments.
3
04 [2.0.14]
15 - Fixed a compiler error on Linux systems that do not define `_SC_LEVEL3_CACHE_SIZE`.
26 - Fixed an error when using `--unal 1` with the `cigar` output field.
5353 QueryMapper(query_id, begin, end, cfg)
5454 {}
5555 virtual void run(Statistics &stat) override;
56 virtual ~Pipeline() {}
5756 };
5857 }
5958 namespace BandedSwipe {
7170 DpStat &dp_stat;
7271 };
7372 }
74 }
73 }
2828 #include "../util/util.h"
2929 #include "../stats/standard_matrix.h"
3030
31 const char* Const::version_string = "2.0.14";
31 const char* Const::version_string = "2.0.15";
3232 const char* Const::program_name = "diamond";
3333
3434 Align_mode::Align_mode(unsigned mode) :
2424 {
2525
2626 enum {
27 build_version = 152,
27 build_version = 153,
2828 #ifdef SINGLE_THREADED
2929 seedp_bits = 0,
3030 #else
1515 along with this program. If not, see <http://www.gnu.org/licenses/>.
1616 ****/
1717
18 #ifndef DAA_FILE_H_
19 #define DAA_FILE_H_
20
18 #pragma once
2119 #include <string>
2220 #include <exception>
2321 #include "../util/ptr_vector.h"
2725 #include "../util/io/input_file.h"
2826 #include "../basic/value.h"
2927 #include "../data/reference.h"
30
31 using std::string;
3228
3329 struct DAA_header1
3430 {
221217 vector<uint32_t> ref_len_;
222218
223219 };
224
225 #endif /* DAA_FILE_H_ */
7676 }
7777 r.context().parse();
7878 r.evalue = score_matrix.evalue(r.score, r.parent_.context[0].size(), r.subject_len);
79 r.bit_score = score_matrix.bitscore(r.score);
7980 return it;
8081 }
1515 along with this program. If not, see <http://www.gnu.org/licenses/>.
1616 ****/
1717
18 #ifndef DAA_RECORD_H_
19 #define DAA_RECORD_H_
20
18 #pragma once
2119 #include <limits>
2220 #include "daa_file.h"
2321 #include "../basic/packed_sequence.h"
2725 #include "../stats/score_matrix.h"
2826 #include "../basic/match.h"
2927
30 using std::string;
31 using std::vector;
32
33 /*void translate_query(const vector<Letter>& query, vector<Letter> *context)
34 {
35 context[0] = query;
36 context[1] = Translator::reverse(query);
37 }*/
38
39 inline void translate_query(const vector<Letter>& query, vector<Letter> *context)
28 inline void translate_query(const std::vector<Letter>& query, std::vector<Letter> *context)
4029 {
4130 Translator::translate(query, context);
4231 }
125114 return align_mode.query_translated ? source_seq.size() : context[0].size();
126115 }
127116
128 string query_name;
117 std::string query_name;
129118 size_t query_num;
130 vector<Letter> source_seq;
131 vector<Letter> context[6];
119 std::vector<Letter> source_seq;
120 std::vector<Letter> context[6];
132121 TranslatedSequence query_seq;
133122
134123 private:
142131
143132 };
144133
145 BinaryBuffer::Iterator& operator>>(BinaryBuffer::Iterator &it, DAA_query_record::Match &r);
146
147 #endif /* DAA_RECORD_H_ */
134 BinaryBuffer::Iterator& operator>>(BinaryBuffer::Iterator &it, DAA_query_record::Match &r);
6565 0xe787dcb23cc5b120,
6666 0x5aa4baf48a888be9,
6767 0xa2519e06e3bfa2fd,
68 0xc393e16a2f782562,
68 0xe2781c840d096a80,
6969 0x67b3a14cdd541dc3,
7070 };
7171