Skip to content

seqkit shuffle is deterministic by default #565

@apcamargo

Description

@apcamargo

This is not strictly a bug, but it may lead to unexpected behavior for users. In many tools that perform shuffling (for example, the shuf command), the default behavior is non-deterministic, typically using a time-based seed. If deterministic output is required, users are expected to set a seed explicitly.

In contrast, seqkit shuffle uses a fixed seed by default via the -s parameter. As a result, users need to pass something like -s $(date +%s) to obtain non-deterministic behavior.

This may be an intentional design choice. However, because users might reasonably assume that shuffling is non-deterministic by default, this behavior could lead to unexpected results.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions