Skip to content

Commit a2c39e9

Browse files
committed
allow score matrix options for clustering
1 parent 0d24845 commit a2c39e9

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

src/ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[2.1.24]
22
- Fixed a compiler error on the CHERI architecture.
3+
- Clustering workflows now support `--gapopen`, `--gapextend`, `--matrix` and `--custom-matrix`.
34

45
[2.1.23]
56
- Clustering in parallel across multiple nodes using the `--parallel-tmpdir` option now outputs

src/basic/config.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,11 @@ Config::Config(int argc, const char **argv, bool check_io, CommandLineParser& pa
250250
("no-block-size-limit", 0, "", no_block_size_limit);
251251

252252
auto& align_clust = parser.add_group("Aligner/Clustering options", { blastp, blastx, cluster, RECLUSTER, CLUSTER_REASSIGN, DEEPCLUST, LINCLUST });
253-
align_clust.add()
253+
align_clust.add()
254+
("gapopen", 0, "gap open penalty", gap_open, -1)
255+
("gapextend", 0, "gap extension penalty", gap_extend, -1)
256+
("matrix", 0, "score matrix for protein alignment (default=BLOSUM62)", matrix, string("blosum62"))
257+
("custom-matrix", 0, "file containing custom scoring matrix", matrix_file)
254258
("evalue", 'e', "maximum e-value to report alignments (default=0.001)", max_evalue, 0.001)
255259
("motif-masking", 0, "softmask abundant motifs (0/1)", motif_masking)
256260
("approx-id", 0, "minimum approx. identity% to report an alignment/to cluster sequences", approx_min_id)
@@ -296,10 +300,6 @@ Config::Config(int argc, const char **argv, bool check_io, CommandLineParser& pa
296300
("global-ranking", 'g', "number of targets for global ranking", global_ranking_targets)
297301
("block-size", 'b', "sequence block size in billions of letters (default=2.0)", chunk_size)
298302
("index-chunks", 'c', "number of chunks for index processing (default=4)", lowmem_)
299-
("gapopen", 0, "gap open penalty", gap_open, -1)
300-
("gapextend", 0, "gap extension penalty", gap_extend, -1)
301-
("matrix", 0, "score matrix for protein alignment (default=BLOSUM62)", matrix, string("blosum62"))
302-
("custom-matrix", 0, "file containing custom scoring matrix", matrix_file)
303303
("frameshift", 'F', "frame shift penalty (default=disabled)", frame_shift)
304304
("long-reads", 0, "short for --range-culling --top 10 -F 15", long_reads)
305305
("query-gencode", 0, "genetic code to use to translate query (see user manual)", query_gencode, 1u)

0 commit comments

Comments
 (0)