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

install_rotate_1.0 #51801

Merged
merged 5 commits into from
Nov 5, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions recipes/rotate/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
set -xe
make CC=$CC INCLUDES="-I$PREFIX/include" CFLAGS+="-g -Wall -O2 -L$PREFIX/lib"
chmod +x rotate
chmod +x composition
mkdir -p ${PREFIX}/bin
cp -f rotate composition ${PREFIX}/bin
37 changes: 37 additions & 0 deletions recipes/rotate/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{% set name = "rotate" %}
{% set version = "1.0" %}

package:
name: "{{ name|lower }}"
version: "{{ version }}"

source:
url: "https://github.com/richarddurbin/{{ name }}/archive/refs/tags/v{{ version }}.tar.gz"
sha256: "da8a3c848cc05d59b579c375824008dd2d533c28d8a436a6e4761312d2152906"

build:
number: 0
run_exports:
- {{ pin_subpackage("rotate", max_pin="x") }}
bgruening marked this conversation as resolved.
Show resolved Hide resolved

requirements:
build:
- make
- {{ compiler('c') }}
host:
- zlib
run:
- zlib
bgruening marked this conversation as resolved.
Show resolved Hide resolved
jayramr marked this conversation as resolved.
Show resolved Hide resolved
- make
jayramr marked this conversation as resolved.
Show resolved Hide resolved


test:
commands:
- rotate 2>&1 | grep can
Copy link
Member

Choose a reason for hiding this comment

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

why "grep can" ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hi @bgruening for this package, the help menu shows the whole output. To simply the output, i just did a grep. If this is not a recommended practice then , we can keep below as it as. Please advise

rotate
rotate [options] <input fasta filename>
  -x <pos>		position to become new start [0]
  -rc               reverse complement after rotating [false]
  -s <string>       rotate to start of search string
  -m <n_mismatch>   maximum number of mismatches allowed in search [0]
  -o <outfilename>  output file [standard output]
use either -x and optionally -rc, or -s
use filename '-' for standard input
can read .fa.gz files as well as .fa files

Copy link
Contributor

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Improve test command robustness.

The current test command using grep can is fragile and may not effectively verify the program's functionality. Based on the previous discussion, it would be better to verify the full help output.

Replace the test command with:

  test:
    commands:
-    - rotate 2>&1 | grep can
+    - rotate --help 2>&1  # Verify help menu is accessible
+    - rotate 2>&1  # Verify program runs without arguments and shows usage
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
test:
commands:
- rotate 2>&1 | grep can
test:
commands:
- rotate --help 2>&1 # Verify help menu is accessible
- rotate 2>&1 # Verify program runs without arguments and shows usage


about:
home: "https://github.com/richarddurbin/rotate"
license: MIT
license_family: MIT
license_file: LICENSE
summary: "Simple program to rotate a circular sequence to start at a given position or string."
Loading