-
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
Initial add telosearchlr-v1.0.0 #51438
Changes from all commits
48fdb59
cd99797
fb5d7af
f059587
c168153
6964d90
19bd23e
69b7c15
9c1473d
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,11 @@ | ||
#!/bin/bash | ||
|
||
mkdir -p ${PREFIX}/bin | ||
for f in *.py; | ||
do | ||
if ! grep -q "^#!/usr/bin/env python3" "$f"; then | ||
sed -i "1i #!/usr/bin/env python3" "$f" | ||
fi | ||
done | ||
chmod +x *.py | ||
mv *.py $PREFIX/bin | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{% set name = "TeloSearchLR" %} | ||
{% set version = "1.0.1" %} | ||
|
||
package: | ||
name: "{{ name|lower }}" | ||
version: "{{ version }}" | ||
|
||
source: | ||
url: "https://github.com/gchchung/{{ name }}/archive/refs/tags/v{{ version }}.tar.gz" | ||
sha256: "1f3750f062af9996aba3d0bf6ec2096e8176e9a6597fb15cb91514d5264d3225" | ||
|
||
build: | ||
noarch: python | ||
number: 0 | ||
run_exports: | ||
- {{ pin_subpackage('telosearchlr', max_pin="x") }} | ||
Comment on lines
+12
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. 🛠️ Refactor suggestion Consider adding a build script The build section is mostly well-configured with Consider adding a build script: build:
noarch: python
number: 0
script: "{{ PYTHON }} -m pip install . -vv"
run_exports:
- {{ pin_subpackage('telosearchlr', max_pin="x") }} This ensures that the package is installed using pip, which is the recommended method for Python packages in Conda. |
||
|
||
requirements: | ||
host: | ||
- python >=3.9 | ||
run: | ||
- python >=3.9 | ||
- Bio | ||
- pillow | ||
- svgutils | ||
- plotly | ||
- tidehunter | ||
|
||
test: | ||
commands: | ||
- TeloSearchLR.py -h | ||
Comment on lines
+29
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. 🛠️ Refactor suggestion Consider adding more comprehensive tests While the current test command ensures that the main script is accessible and can be executed, it doesn't verify the actual functionality of the package. Consider adding more comprehensive tests to ensure the package works as expected. For example, you could add a simple test case that processes a small sample dataset, if available: test:
commands:
- TeloSearchLR.py -h
- TeloSearchLR.py --version
- python -c "import telosearchlr; assert telosearchlr.__version__ == '{{ version }}'"
# If a sample dataset is available:
# - TeloSearchLR.py -i sample_data.fastq -o test_output This would provide more confidence in the package's functionality. |
||
about: | ||
home: "https://github.com/gchchung/TeloSearchLR" | ||
license: "Academic and Non-Commercial Research Use" | ||
license_file: LICENSE | ||
summary: "TeloSearchLR (telomere search using long sequencing reads) is a Python script for aiding the identificaiton of telomeric repeat motifs." | ||
Comment on lines
+32
to
+36
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 Specification Mismatch
🔗 Analysis chainPlease clarify the license and fix the typo in the summary
Please correct the typo in the summary: summary: "TeloSearchLR (telomere search using long sequencing reads) is a Python script for aiding the identification of telomeric repeat motifs." To verify the license, please run the following script: This will help ensure that the license in the meta.yaml file accurately reflects the project's actual license. 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Check the content of the LICENSE file
cat LICENSE
Length of output: 1103 |
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
Restrict moving only executable Python scripts to
$PREFIX/bin
.The current
mv *.py $PREFIX/bin
command moves all Python files, including non-executable modules and libraries, to the$PREFIX/bin
directory. This can lead to unnecessary clutter and potential conflicts in the system-widebin
.Recommended Action:
mv
command to target only Python files with a shebang line. For example:$PREFIX/bin
, while non-executable modules and libraries remain in their original locations.🔗 Analysis chain
Verify the inclusion of all Python files as executables.
The script correctly moves all Python files to the $PREFIX/bin directory, making them accessible system-wide after installation. This is consistent with conda build practices.
However, please verify that all Python files in the package are indeed meant to be executable scripts. If there are any modules or libraries that should not be in the PATH, consider modifying the script to move only specific files or to use a different destination for non-executable Python files.
To help with this verification, you can run the following command in the package source directory:
This will help identify which Python files are designed as executable scripts and which might be modules or libraries.
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 147
Script:
Length of output: 11734