Skip to content

Commit 0c6b62e

Browse files
committed
seq: Change the threshold sequence length for parallelizing complement sequence computation
1 parent 14f6a4d commit 0c6b62e

4 files changed

Lines changed: 6 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
- `seqkit amplicon`:
88
- Fix the speed problem, introduced in v2.7.0. [#439](https://github.com/shenwei356/seqkit/issues/439).
99
- Slightly faster by reusing objects.
10+
- `seqkit seq`:
11+
- Change the threshold sequence length for parallelizing complement sequence computation, 1kb->1Mb.
1012
- [SeqKit v2.7.0](https://github.com/shenwei356/seqkit/releases/tag/v2.7.0) - 2024-01-31
1113
[![Github Releases (by Release)](https://img.shields.io/github/downloads/shenwei356/seqkit/v2.7.0/total.svg)](https://github.com/shenwei356/seqkit/releases/tag/v2.7.0)
1214
- `seqkit`:

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ require (
2020
github.com/mattn/go-isatty v0.0.16
2121
github.com/mitchellh/go-homedir v1.1.0
2222
github.com/pkg/errors v0.9.1
23-
github.com/shenwei356/bio v0.13.1
23+
github.com/shenwei356/bio v0.13.3
2424
github.com/shenwei356/breader v0.3.2
2525
github.com/shenwei356/bwt v0.6.1
2626
github.com/shenwei356/go-logging v0.0.0-20171012171522-c6b9702d88ba

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/f
123123
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
124124
github.com/ruudk/golang-pdf417 v0.0.0-20181029194003-1af4ab5afa58/go.mod h1:6lfFZQK844Gfx8o5WFuvpxWRwnSoipWe/p622j1v06w=
125125
github.com/ruudk/golang-pdf417 v0.0.0-20201230142125-a7e3863a1245/go.mod h1:pQAZKsJ8yyVxGRWYNEm9oFB8ieLgKFnamEyDmSA0BRk=
126-
github.com/shenwei356/bio v0.13.1 h1:lj1YJMaRxGfyosoihZSyqtW4fW5219v188AAFmcUWVc=
127-
github.com/shenwei356/bio v0.13.1/go.mod h1:JjWavkWha/UzK0K7dqTVuzkHEBgGNad9yC1hv0YJrG0=
126+
github.com/shenwei356/bio v0.13.3 h1:tWspivWisj/kS9RmDv8N0WEovn007jUImk8OdtPYZ38=
127+
github.com/shenwei356/bio v0.13.3/go.mod h1:5TMT6kpb5lQsa1Uz6nh6PGLtvKi8fQ3SWO2sfiBEOnc=
128128
github.com/shenwei356/breader v0.3.2 h1:GLy2clIMck6FdTwj8WLnmhv0PW/7Pp+Wcx7TVEHG0ks=
129129
github.com/shenwei356/breader v0.3.2/go.mod h1:BimwolkMTIr/O4iX7xXtjEB1z5y39G+8I5Tsm9guC3E=
130130
github.com/shenwei356/bwt v0.6.1 h1:BDS1nhhIxiC284OKtLBUgy+U5L/7WrvT/ehOExB/DSA=

seqkit/cmd/seq.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ var seqCmd = &cobra.Command{
5858
outFile := config.OutFile
5959
quiet := config.Quiet
6060
seq.AlphabetGuessSeqLengthThreshold = config.AlphabetGuessSeqLength
61+
seq.ComplementSeqLenThreshold = 1000000
6162
runtime.GOMAXPROCS(config.Threads)
6263

6364
reverse := getFlagBool(cmd, "reverse")

0 commit comments

Comments
 (0)