Skip to content

Commit

Permalink
Merge pull request #379 from ksahlin/optimize-kslu2
Browse files Browse the repository at this point in the history
Use optimized indexing parameters
  • Loading branch information
marcelm committed Dec 12, 2023
2 parents 825a034 + 7f5c327 commit 7b3b260
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## development version

* #376: Improve accuracy for read length 50 by optimizing the default
indexing parameters. Paired-end accuracy increases by 0.3 percentage
points on average. Single-end accuracy increases by 1 percentage point.
* If `--details` is used, output `X0:i` SAM tag with the number of
identically-scored best alignments
* #371: Add `--no-PG` option for not outputting the PG SAM header
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ it can map reads to it.
The optimal indexing parameters depend on the length of the input reads.
There are currently seven different pre-defined sets of parameters that are
optimized for different read lengths. These *canonical read lengths* are
50, 100, 125, 150, 250, 300 and 400. When deciding which of the pre-defined
50, 100, 125, 150, 250 and 400. When deciding which of the pre-defined
indexing parameter sets to use, strobealign chooses one whose canonical
read length is close to the average read length of the input.

Expand Down
5 changes: 2 additions & 3 deletions src/indexparameters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,11 @@ struct Profile {
static auto max{std::numeric_limits<int>::max()};

static std::vector<Profile> profiles = {
Profile{ 50, 90, 20, -4, -3, 2},
Profile{ 50, 90, 18, -4, -2, 1},
Profile{100, 110, 20, -4, -2, 2},
Profile{125, 135, 20, -4, -1, 4},
Profile{150, 175, 20, -4, 1, 7},
Profile{250, 275, 20, -4, 4, 13},
Profile{300, 375, 22, -4, 2, 12},
Profile{250, 375, 22, -4, 2, 12},
Profile{400, max, 23, -6, 2, 12},
};

Expand Down

0 comments on commit 7b3b260

Please sign in to comment.