Skip to content

Allow splitting by integer tag value#2005

Merged
whitwham merged 5 commits into
samtools:developfrom
daviesrob:split-on-int
Mar 15, 2024
Merged

Allow splitting by integer tag value#2005
whitwham merged 5 commits into
samtools:developfrom
daviesrob:split-on-int

Conversation

@daviesrob

Copy link
Copy Markdown
Member
  • Extends the samtools split -d option so that it works on integer tags as well as strings.
  • Fixes a bug where the -d TAG option would override a -f FORMAT that came before it on the command line.
  • Adds a -p option to allow numeric values to be zero-padded.
  • Enhances samtools split format string and functional tests.

Also fix bug where the -d option would reset the format set by -f
if it came later on the command line.
@whitwham

Copy link
Copy Markdown
Member

Could you add the new option to the usage?

This may be of use if, for some reason, the output file names
need to be ordered.
* Tag value
* Different output file types
* Zero padding for %#
* Verbatim percent sign
* Invalid formats
@daviesrob

Copy link
Copy Markdown
Member Author

Done - the new option is now included in the usage message.

@whitwham whitwham merged commit 2a5842b into samtools:develop Mar 15, 2024
@daviesrob daviesrob deleted the split-on-int branch March 25, 2024 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants