Patch the bug on --out with paired sequence files

This commit is contained in:
Eric Coissac
2025-02-27 18:13:21 +01:00
parent 75dd535201
commit 13cd4c86ac
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ import (
// corresponds to the last commit, and not the one when the file will be
// commited
var _Commit = "0067152"
var _Commit = "573acaf"
var _Version = "Release 4.2.0"
// Version returns the version of the obitools package.

View File

@ -21,7 +21,7 @@ func BuildPairedFileNames(filename string) (string, string) {
forward := parts[0] + "_R1"
reverse := parts[0] + "_R2"
if parts[1] != "" {
if len(parts) > 1 && parts[1] != "" {
suffix := "." + parts[1]
forward += suffix
reverse += suffix