-
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
Update vcf-validator to v0.10.0 #51421
Changes from all commits
e457803
1cc295e
bf19635
e682092
efb6e00
f1a7c84
fc9abc1
ce4d23b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -1,6 +1,17 @@ | ||||||||||||||||||||||||||
mkdir -p ${PREFIX}/bin | ||||||||||||||||||||||||||
#!/bin/bash | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
mv vcf_validator* ${PREFIX}/bin/vcf_validator | ||||||||||||||||||||||||||
mv vcf_assembly_checker* ${PREFIX}/bin/vcf_assembly_checker | ||||||||||||||||||||||||||
# Set c++ to version 11 | ||||||||||||||||||||||||||
export CXXFLAGS="-std=c++11 ${CXXFLAGS}" | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
chmod 755 ${PREFIX}/bin/vcf_assembly_checker ${PREFIX}/bin/vcf_validator | ||||||||||||||||||||||||||
mkdir build || { echo "Failed to create build directory" >&2; exit 1; } | ||||||||||||||||||||||||||
cd build || { echo "Failed to go into build directory" >&2; exit 1; } | ||||||||||||||||||||||||||
cmake -G "Unix Makefiles" .. | ||||||||||||||||||||||||||
make -j2 || { echo "Build failed" >&2; exit 1; } | ||||||||||||||||||||||||||
cd .. || { echo "Failed to return to parent directory" >&2; exit 1; } | ||||||||||||||||||||||||||
if ! ./build/bin/test_validation_suite; then | ||||||||||||||||||||||||||
echo "Validation suite failed" >&2 | ||||||||||||||||||||||||||
exit 1 | ||||||||||||||||||||||||||
fi | ||||||||||||||||||||||||||
cp build/bin/vcf_validator ${PREFIX}/bin | ||||||||||||||||||||||||||
Comment on lines
+11
to
+14
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. Check for the existence of the validation suite before execution Before running Apply this change: +if [ ! -f ./build/bin/test_validation_suite ]; then
+ echo "Validation suite executable not found" >&2
+ exit 1
+fi
if ! ./build/bin/test_validation_suite; then
echo "Validation suite failed" >&2
exit 1
fi 📝 Committable suggestion
Suggested change
|
||||||||||||||||||||||||||
cp build/bin/vcf_assembly_checker ${PREFIX}/bin | ||||||||||||||||||||||||||
echo "Done with vcf-validator" | ||||||||||||||||||||||||||
Comment on lines
+15
to
+16
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. Add error handling for copying binaries Currently, the Apply this change: -cp build/bin/vcf_validator ${PREFIX}/bin
-cp build/bin/vcf_assembly_checker ${PREFIX}/bin
+cp build/bin/vcf_validator ${PREFIX}/bin || { echo "Failed to copy vcf_validator" >&2; exit 1; }
+cp build/bin/vcf_assembly_checker ${PREFIX}/bin || { echo "Failed to copy vcf_assembly_checker" >&2; exit 1; } 📝 Committable suggestion
Suggested change
|
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.
🛠️ Refactor suggestion
Use dynamic CPU count for parallel compilation
Instead of hardcoding
-j2
, use${CPU_COUNT}
to utilize the available CPU cores. This makes the build process more efficient on systems with different numbers of cores.Apply this change:
📝 Committable suggestion