Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rtg-tools: init at 3.12.1 #230394

Merged
merged 1 commit into from Apr 3, 2024
Merged

rtg-tools: init at 3.12.1 #230394

merged 1 commit into from Apr 3, 2024

Conversation

apraga
Copy link
Contributor

@apraga apraga commented May 6, 2023

A subset of RTG Core that includes several useful utilities for dealing with VCF files and sequence data. Mostly used for vcfeval to compare VCF.

Description of changes
Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 23.05 Release Notes (or backporting 22.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

apraga added a commit to apraga/nixpkgs that referenced this pull request Jan 25, 2024
New package for genetics : helps compared variants
called by a pipeline to a reference.

The only tests not passing are due to a difference
in float representation (same value but with
different number of digits after decimal).

For best results (quality and running time), the
authors advice to use RTGtools vcfeval as the
engine. So this package requires  NixOS#230394
@apraga apraga mentioned this pull request Jan 25, 2024
13 tasks
apraga added a commit to apraga/nixpkgs that referenced this pull request Feb 14, 2024
For best results (quality and running time), the
authors advice to use RTGtools vcfeval as the
engine.

Depends on NixOS#230394
@wegank wegank added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Mar 19, 2024
@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/prs-ready-for-review/3032/3701

@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Mar 26, 2024
apraga added a commit to apraga/nixpkgs that referenced this pull request Mar 29, 2024
For best results (quality and running time), the
authors advice to use RTGtools vcfeval as the
engine.

Depends on NixOS#230394
@apraga
Copy link
Contributor Author

apraga commented Mar 29, 2024

Thanks a lot for the review. I've formatted the packages using nixfmt-rfc-style, removed the patch (now useless) and use ~/.config/rtg as a configuration directory. The package is now in by-name/rttoo.

apraga added a commit to apraga/nixpkgs that referenced this pull request Mar 30, 2024
For best results (quality and running time), the
authors advice to use RTGtools vcfeval as the
engine.

Depends on NixOS#230394
apraga added a commit to apraga/nixpkgs that referenced this pull request Mar 30, 2024
For best results (quality and running time), the
authors advice to use RTGtools vcfeval as the
engine.

Depends on NixOS#230394
pkgs/by-name/rt/rtg-tools/package.nix Show resolved Hide resolved
Comment on lines 43 to 47
# Use a location outside nix (must be writable)
sed -i '/USER_JAVA_OPTS=$RTG_JAVA_OPTS/a mkdir -p $HOME/.config/rtg-tools' $out/bin/rtg
sed -i 's|$THIS_DIR/rtg.cfg|$HOME/.config/rtg-tools/rtg.cfg|g' $out/bin/rtg
# Use nix java
sed -i 's|RTG_JAVA="java".*|RTG_JAVA="${jdk}/lib/openjdk/bin/java"|' $out/bin/rtg
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we just do simple string replacement here, we should use substituteInPlace with --replace-fail to notice, if the pattern no longer matches.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've switched to substituteInPlace, except for appending to a string that I only know how to do it with sed :/

pkgs/by-name/rt/rtg-tools/package.nix Outdated Show resolved Hide resolved
pkgs/by-name/rt/rtg-tools/package.nix Outdated Show resolved Hide resolved
pkgs/by-name/rt/rtg-tools/package.nix Outdated Show resolved Hide resolved
pkgs/by-name/rt/rtg-tools/package.nix Show resolved Hide resolved
pkgs/by-name/rt/rtg-tools/package.nix Show resolved Hide resolved
pkgs/by-name/rt/rtg-tools/package.nix Outdated Show resolved Hide resolved
A subset of RTG Core that includes several useful utilities for dealing with VCF files and sequence data.
Mostly used for vcfeval to compare VCF.
@apraga
Copy link
Contributor Author

apraga commented Apr 2, 2024

Thanks for the feedback. Commits have been squashed, waiting for approval :)

@SuperSandro2000 SuperSandro2000 merged commit 6fee21c into NixOS:master Apr 3, 2024
23 of 24 checks passed
apraga added a commit to apraga/nixpkgs that referenced this pull request Apr 7, 2024
For best results (quality and running time), the
authors advice to use RTGtools vcfeval as the
engine.

Depends on NixOS#230394
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants