-
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 27 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 -O3 -I$PREFIX/include" | ||
export LDFLAGS="$LDFLAGS -L$PREFIX/lib" | ||
|
||
make -j"${CPU_COUNT}" CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}" | ||
install -v -m 0755 build/bin/rdeval "$PREFIX/bin/rdeval" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
diff --git a/Makefile b/Makefile | ||
index 5823f28..cb3efa1 100644 | ||
--- a/Makefile | ||
+++ b/Makefile | ||
@@ -1,5 +1,5 @@ | ||
-CXX ?= g++ | ||
-INCLUDE_DIR = -I./include -I./gfalibs/include | ||
+CXX ?= ${CXX} | ||
+INCLUDE_DIR = -I./include -I./gfalibs/include -I${PREFIX}/include | ||
WARNINGS = -Wall -Wextra | ||
|
||
CXXFLAGS = -g -std=gnu++14 -O3 $(INCLUDE_DIR) $(WARNINGS) | ||
@@ -12,8 +12,8 @@ SOURCE = src | ||
INCLUDE = include | ||
BINDIR := $(BUILD)/.o | ||
|
||
-LDFLAGS := -pthread | ||
-LIBS = -lz | ||
+LDFLAGS := -pthread -L${PREFIX}/lib | ||
+LIBS := -lz | ||
|
||
OBJS := main input reads | ||
BINS := $(addprefix $(BINDIR)/, $(OBJS)) | ||
@@ -27,7 +27,7 @@ head: $(BINS) gfalibs | $(BUILD) | ||
all: head validate regenerate | ||
|
||
$(BINDIR)%: $(SOURCE)/%.cpp $(INCLUDE)/%.h | $(BINDIR) | ||
- $(CXX) $(CXXFLAGS) $(LDFLAGS) -c $(SOURCE)/$(notdir $@).cpp -o $@ | ||
+ $(CXX) $(CXXFLAGS) $(LDFLAGS) -c $(SOURCE)/$(notdir $@).cpp -o $@ $(LIBS) | ||
|
||
.PHONY: gfalibs | ||
gfalibs: |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
diff --git a/gfalibs/Makefile b/gfalibs/Makefile | ||
index de9ab9b..c1766ae 100644 | ||
--- a/gfalibs/Makefile | ||
+++ b/gfalibs/Makefile | ||
@@ -1,5 +1,5 @@ | ||
-CXX = g++ | ||
-INCLUDE_DIR = -I./include | ||
+CXX = $(CXX) | ||
+INCLUDE_DIR = -I${PREFIX}/include -I./include -I./include/parallel-hashmap | ||
WARNINGS = -Wall -Wextra | ||
|
||
CXXFLAGS = -g -std=gnu++14 -O3 $(INCLUDE_DIR) $(WARNINGS) | ||
@@ -8,7 +8,7 @@ TARGET = gfalibs | ||
BUILD = build/bin | ||
SOURCE = src | ||
INCLUDE = include | ||
-LDFLAGS := | ||
+LDFLAGS := -L${PREFIX}/lib | ||
|
||
SOURCES = $(addsuffix .o, input-filters input-gfa input-agp gfa gfa-lines log stream-obj uid-generator struct output memory) | ||
|
||
@@ -16,7 +16,7 @@ all: $(SOURCES) | ||
@ | ||
|
||
%.o: $(SOURCE)/%.cpp $(INCLUDE)/%.h | ||
- $(CXX) $(CXXFLAGS) $(LDFLAGS) -c $(SOURCE)/$(basename $@).cpp -o $@ | ||
+ $(CXX) $(CXXFLAGS) $(INCLUDE_DIR) $(LDFLAGS) -c $(SOURCE)/$(basename $@).cpp -o $@ -lz | ||
|
||
clean: | ||
$(RM) *.o |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{% 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: | ||
- zlib.patch | ||
- foo.patch | ||
- gfalibs.patch | ||
|
||
Comment on lines
+8
to
+15
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 Patch files have not been submitted upstream The patches 🔗 Analysis chainVerify patch files and their necessity Three patch files are specified:
Please provide:
Further verify upstream submission of patch files Please run the following script to check if the patches have been submitted upstream via pull requests or commits: 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Check patch contents and related upstream issues
# Check patch contents
for patch in zlib.patch foo.patch gfalibs.patch; do
echo "=== Contents of $patch ==="
if [ -f "recipes/rdeval/$patch" ]; then
cat "recipes/rdeval/$patch"
fi
done
# Check for related upstream issues
gh api repos/vgl-hub/rdeval/issues --jq '.[] | select(.title | contains("patch") or contains("build") or contains("zlib") or contains("gfalibs")) | {title: .title, url: .html_url}'
Length of output: 4190 Script: #!/bin/bash
# Description: Check if patches have been submitted upstream via pull requests or commits
echo "=== Checking Pull Requests for patch submissions ==="
gh pr list --repo vgl-hub/rdeval --json title,url --jq '.[] | select(.title | test("zlib.patch|foo.patch|gfalibs.patch")) | {title: .title, url: .url}'
echo "=== Checking Commit Messages for patch references ==="
gh api repos/vgl-hub/rdeval/commits --paginate --jq '.[] | select(.commit.message | test("zlib.patch|foo.patch|gfalibs.patch")) | {message: .commit.message, url: .html_url}'
Length of output: 561 |
||
build: | ||
number: 0 | ||
run_exports: | ||
- {{ pin_subpackage(name|lower, max_pin="x.x") }} | ||
|
||
requirements: | ||
build: | ||
- {{ compiler('cxx') }} | ||
- make | ||
host: | ||
- zlib | ||
|
||
test: | ||
commands: | ||
- rdeval --help | ||
Comment on lines
+30
to
+31
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 Binary The test command references 🔗 Analysis chainVerify binary name and enhance test coverage The test command uses
Additionally, consider adding tests with sample data to verify core functionality. 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Check source code for binary names
rg -g 'Makefile*' -g '*.cpp' 'rdeval|genodsp'
# Look for example data files that could be used in tests
fd -g '*.fa' -g '*.fasta' -g '*.fastq'
Length of output: 448 Script: #!/bin/bash
# Check source code for binary names
rg -g 'Makefile*' -g '*.cpp' -g '*.h' 'rdeval|genodsp'
# Look for example data files that could be used in tests
fd -e fa -e fasta -e fastq
Length of output: 915 |
||
|
||
about: | ||
home: https://github.com/vgl-hub/{{ name }} | ||
summary: A general purpose, multithreaded read analysis and manipulation tool. | ||
license: MIT | ||
license_family: MIT | ||
license_file: LICENSE | ||
dev_url: https://github.com/vgl-hub/{{ name }} | ||
doc_url: https://github.com/vgl-hub/rdeval/blob/v{{ version }}/README.md | ||
|
||
extra: | ||
additional-platforms: | ||
- linux-aarch64 | ||
- osx-arm64 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
diff --git a/gfalibs/include/output.h b/gfalibs/include/output.h | ||
index aabbec0..20f0dc1 100644 | ||
--- a/gfalibs/include/output.h | ||
+++ b/gfalibs/include/output.h | ||
@@ -12,7 +12,7 @@ | ||
#include "gfa-lines.h" | ||
#include "gfa.h" | ||
|
||
-#include "zlib.h" | ||
+#include <zlib.h> | ||
#include "zstream/zstream_common.hpp" | ||
#include "zstream/ozstream.hpp" | ||
#include "zstream/ozstream_impl.hpp" | ||
diff --git a/gfalibs/include/stream-obj.h b/gfalibs/include/stream-obj.h | ||
index 1faa4df..8e28bf6 100644 | ||
--- a/gfalibs/include/stream-obj.h | ||
+++ b/gfalibs/include/stream-obj.h | ||
@@ -2,7 +2,7 @@ | ||
#define STREAM_OBJ_H | ||
|
||
#include <fstream> | ||
-#include "zlib.h" | ||
+#include <zlib.h> | ||
|
||
class membuf : public std::streambuf { | ||
|
||
diff --git a/gfalibs/src/stream-obj.cpp b/gfalibs/src/stream-obj.cpp | ||
index e9694ee..c6eca26 100644 | ||
--- a/gfalibs/src/stream-obj.cpp | ||
+++ b/gfalibs/src/stream-obj.cpp | ||
@@ -5,7 +5,7 @@ | ||
|
||
#include "bed.h" | ||
#include "struct.h" | ||
-#include "zlib.h" | ||
+#include <zlib.h> | ||
#include "global.h" | ||
#include "log.h" | ||
#include "threadpool.h" | ||
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.
💡 Codebase verification
parallel-hashmap dependency not declared in meta.yaml.
The addition of
parallel-hashmap
include path suggests a dependency, but it's not declared inrecipes/rdeval/meta.yaml
. Please declareparallel-hashmap
as a dependency.🔗 Analysis chain
Verify parallel-hashmap dependency.
The addition of
parallel-hashmap
include path suggests a dependency. Ensure this dependency is properly declared in the recipe's meta.yaml.Also applies to: 9-9
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 387
Script:
Length of output: 375
Script:
Length of output: 2649