-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
adding RDEVAL #52070
adding RDEVAL #52070
Changes from 12 commits
674dcc0
e33c5e2
2b072df
8231e37
f4652bc
2f4e58a
87296b0
9bd1425
13e7bd6
ce7037f
b1a6e2b
303792e
0ae2fef
2d066a0
a401dab
5e87326
de1a4fb
2c7164a
9ce5806
b5372a1
b061c2d
7a51e11
340e33a
5155d5c
68a3123
a32a8b4
165854e
9557f45
e758cf8
7b3e888
8e8c1f1
8434782
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -o errexit | ||
set -o nounset | ||
set -o xtrace | ||
|
||
cd "$SRC_DIR" | ||
|
||
export CXXFLAGS="$CXXFLAGS -I$PREFIX/include" | ||
export LDFLAGS="$LDFLAGS -L$PREFIX/lib" | ||
|
||
make | ||
install -v -m 0755 build/bin/rdeval "$PREFIX/bin/rdeval" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{% set name = "rdeval" %} | ||
{% set version = "0.0.2" %} | ||
|
||
package: | ||
name: {{ name|lower }} | ||
version: {{ version }} | ||
|
||
source: | ||
url: https://github.com/vgl-hub/{{ name }}/releases/download/v{{ version }}/{{ name }}.v{{ version }}-with_submodules.zip | ||
sha256: 56c2f4d7d2c22b27d1b380dc41b81cc77a2d97c792a69b9360bed9e0027bac4d | ||
patches: | ||
- quote.patch | ||
|
||
requirements: | ||
build: | ||
- {{ compiler('cxx') }} | ||
- make | ||
- zlib | ||
|
||
build: | ||
number: 0 | ||
run_exports: | ||
- {{ pin_subpackage(name|lower, max_pin="x.x") }} | ||
|
||
test: | ||
commands: | ||
- ${PREFIX}/bin/rdeval --help | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Enhance test coverage The current test only verifies that the help command works. Consider adding more comprehensive tests:
Would you like assistance in generating additional test commands based on the tool's functionality? |
||
|
||
about: | ||
home: https://github.com/vgl-hub/{{ name }} | ||
summary: A general purpose, multithreaded read analysis and manipulation tool. | ||
license: MIT | ||
license_file: LICENSE | ||
license_url: https://github.com/vgl-hub/{{ name }}/blob/main/LICENSE | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification LICENSE file verified and README requires a detailed Description section
🔗 Analysis chainVerify license file and update summary
🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Verify license file existence and content
gh api repos/vgl-hub/rdeval/contents/LICENSE --jq '.content' | base64 -d
# Check if there's a more detailed description in README
gh api repos/vgl-hub/rdeval/contents/README.md --jq '.content' | base64 -d | grep -A 5 "^#.*Description"
Length of output: 298 Script: #!/bin/bash
# Verify license file existence and content without using base64
gh api repos/vgl-hub/rdeval/contents/LICENSE --raw
# Check if there's a more detailed description in README
gh api repos/vgl-hub/rdeval/contents/README.md --raw | grep -A 5 "^#.*Description"
Length of output: 2865 Script: #!/bin/bash
# Verify license file existence and content using jq to decode base64
gh api repos/vgl-hub/rdeval/contents/LICENSE --jq '.content | @base64d'
# Check if there's a more detailed description in README using jq to decode and grep for keywords
gh api repos/vgl-hub/rdeval/contents/README.md --jq '.content | @base64d' | grep -A 5 "^#.*Description"
Length of output: 1244 |
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,25 @@ | ||||||||||
diff --git a/Makefile b/Makefile | ||||||||||
index 5823f28..7e1295c 100644 | ||||||||||
--- a/Makefile | ||||||||||
+++ b/Makefile | ||||||||||
@@ -14,6 +14,7 @@ BINDIR := $(BUILD)/.o | ||||||||||
|
||||||||||
LDFLAGS := -pthread | ||||||||||
LIBS = -lz | ||||||||||
+-L/usr/lib/x86_64-linux-gnu -lz | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove hard-coded library path and fix duplicate linker flags The current changes introduce two issues:
Apply this fix to maintain portability and clean up duplicates: LDFLAGS := -pthread
-LIBS = -lz
--L/usr/lib/x86_64-linux-gnu -lz
+LIBS = -lz Instead of hard-coding the library path, rely on Conda's build environment variables and the proper dependency specification in meta.yaml. 📝 Committable suggestion
Suggested change
|
||||||||||
|
||||||||||
OBJS := main input reads | ||||||||||
BINS := $(addprefix $(BINDIR)/, $(OBJS)) | ||||||||||
diff --git a/src/reads.cpp b/src/reads.cpp | ||||||||||
index 866f49b..ac714cf 100644 | ||||||||||
--- a/src/reads.cpp | ||||||||||
+++ b/src/reads.cpp | ||||||||||
@@ -14,7 +14,7 @@ | ||||||||||
#include "functions.h" // global functions | ||||||||||
#include "stream-obj.h" | ||||||||||
|
||||||||||
-#include "zlib.h" | ||||||||||
+#include <zlib.h> | ||||||||||
#include "zstream/zstream_common.hpp" | ||||||||||
#include "zstream/ozstream.hpp" | ||||||||||
#include "zstream/ozstream_impl.hpp" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add runtime dependencies section
The recipe is missing a
run
section underrequirements
. Since you're usingzlib
during build, it's likely needed at runtime too.Add the following section:
📝 Committable suggestion