-
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
Create FC-Virus #51579
Create FC-Virus #51579
Changes from 65 commits
48e2e8b
3405d09
a1b6e48
c97dbbe
ce38f81
b6bd3f2
21b17c0
9b8eb6b
e9e8d5e
325306e
8b20b0c
395abab
e4c72ee
775e11a
12ffcec
2d9f2ec
ea9b7d1
fbfe64d
bab81bb
2afe7ed
e369b76
5b60ef4
a23e3c8
c0fa11b
163f4ef
dcc89c3
979a460
04689ff
a2da6a0
5bf619c
e6f5f12
077abb8
c01cdf2
097ab20
6b3b866
7246032
4cadf23
070dd5f
b18c13a
43bf9b6
6ba4857
26a4aaf
c80e53a
bde9c3a
c194dde
7c9d137
16e1cb7
f03aad5
7866d0b
dfd7723
0d2e88a
e98e126
aa29d2f
446d054
bbd127d
8ad27ff
5bce459
4ceedee
9c3d286
c8e6452
5dcc30b
c694298
185ef52
49ed245
77dd382
38c6a28
700ce3d
a0aea40
8771e03
8c0899c
7461b80
a31e353
bbb4ef3
fbd22d4
29c90c4
fef86ca
1c9ea22
28dde0c
1e01e5c
ace2cc4
e11b596
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,14 @@ | ||||||||||||||||||||||||||||||||||
#!/bin/bash | ||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||
export LDFLAGS="$LDFLAGS -L$PREFIX/lib" | ||||||||||||||||||||||||||||||||||
export CPATH=${PREFIX}/include | ||||||||||||||||||||||||||||||||||
export LIBRARY_PATH=$LIBRARY_PATH:${PREFIX}/lib | ||||||||||||||||||||||||||||||||||
export C_INCLUDE_PATH=$C_INCLUDE_PATH:${PREFIX}/include | ||||||||||||||||||||||||||||||||||
#export PATH=$BUILD_PREFIX/bin:$PATH | ||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||
make \ | ||||||||||||||||||||||||||||||||||
CXX="${CXX}" \ | ||||||||||||||||||||||||||||||||||
CFLAGS="${CFLAGS} " | ||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||
install -d "${PREFIX}/bin" | ||||||||||||||||||||||||||||||||||
install ./bin/fc-virus "${PREFIX}/bin/" | ||||||||||||||||||||||||||||||||||
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. Improve installation process with error handling and verification. The installation commands need error handling and post-install verification. Apply these improvements: -install -d "${PREFIX}/bin"
-install ./bin/fc-virus "${PREFIX}/bin/"
+# Create installation directory
+install -d "${PREFIX}/bin" || { echo "Failed to create bin directory"; exit 1; }
+
+# Install binary
+install ./bin/fc-virus "${PREFIX}/bin/" || { echo "Failed to install fc-virus"; exit 1; }
+
+# Verify installation
+if [ ! -x "${PREFIX}/bin/fc-virus" ]; then
+ echo "Installation verification failed"
+ exit 1
+fi
+
+# Clean up
+rm -rf ./bin 📝 Committable suggestion
Suggested change
|
Original file line number | Diff line number | Diff line change | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,38 @@ | ||||||||||||||
{% set version = "1.0.1" %} | ||||||||||||||
package: | ||||||||||||||
name: fc-virus | ||||||||||||||
version: {{ version }} | ||||||||||||||
|
||||||||||||||
source: | ||||||||||||||
url: https://github.com/qdu-bioinfo/fc-virus/archive/v{{ version }}.tar.gz | ||||||||||||||
sha256: 6e49ccaebdc3bb44c0f02a761f2220615207c31cc13e4d6eea29b761071e4a83 | ||||||||||||||
|
||||||||||||||
build: | ||||||||||||||
number: 0 | ||||||||||||||
run_exports: | ||||||||||||||
- {{ pin_subpackage("fc-virus", max_pin="x") }} | ||||||||||||||
|
||||||||||||||
requirements: | ||||||||||||||
build: | ||||||||||||||
- {{ compiler("c") }} | ||||||||||||||
- {{ compiler("cxx") }} | ||||||||||||||
- make | ||||||||||||||
host: | ||||||||||||||
- make | ||||||||||||||
qdu-bioinfo marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||
- boost | ||||||||||||||
- zlib | ||||||||||||||
- htslib | ||||||||||||||
Comment on lines
+23
to
+25
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 Add version constraints for core dependencies For better reproducibility, consider adding version constraints for core dependencies: - - boost
- - zlib
- - htslib
+ - boost >=1.74.0
+ - zlib >=1.2.11
+ - htslib >=1.15 📝 Committable suggestion
Suggested change
|
||||||||||||||
|
||||||||||||||
qdu-bioinfo marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||
about: | ||||||||||||||
home: https://github.com/qdu-bioinfo/fc-virus | ||||||||||||||
license: MIT | ||||||||||||||
license_file: LICENSE | ||||||||||||||
summary: "Accurate Assembly of Full-length Consensus for Viral Quasispecies" | ||||||||||||||
dev_url: https://github.com/qdu-bioinfo/fc-virus | ||||||||||||||
|
||||||||||||||
test: | ||||||||||||||
commands: | ||||||||||||||
- ./bin/fc-virus --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 and fix binary path.
Apply this diff: test:
commands:
- - ./bin/fc-virus --help
+ - $PREFIX/bin/fc-virus --help
+ - $PREFIX/bin/fc-virus --version
+ # Add a basic functionality test if possible
|
||||||||||||||
extra: | ||||||||||||||
additional-platforms: | ||||||||||||||
- linux-aarch64 |
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.
Enhance build command with error handling and optimization flags.
The current build command lacks error handling and important compiler flags.
Apply this diff to improve the build command:
📝 Committable suggestion