Skip to content
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

bug fixes for CAMPneu #51527

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions recipes/CAMPneu/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

# $PYTHON -m pip install . -vv

mkdir -p $PREFIX/bin/

cp $RECIPE_DIR/../CAMPneu.nf $RECIPE_DIR/../nextflow.config $PREFIX/bin/
mmkadam marked this conversation as resolved.
Show resolved Hide resolved
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codebase verification

Source files CAMPneu.nf and nextflow.config are missing from the repository.

The build.sh script attempts to copy CAMPneu.nf and nextflow.config from the parent directory of the recipe, but these files were not found in any location within the repository. This will cause the copy operation to fail.

  • Ensure that CAMPneu.nf and nextflow.config are present in the repository.
  • If necessary, relocate these files to the recipe directory and update the copy command accordingly.
🔗 Analysis chain

Verify the correct location of source files.

The command copies files from $RECIPE_DIR/.., which is the parent directory of the recipe. This is unusual, as typically, files are copied from within the recipe directory. Ensure that CAMPneu.nf and nextflow.config are indeed located in the parent directory of the recipe.

Consider moving these files into the recipe directory for better organization and to follow conventional practices.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Check if the files exist in the expected location
if [ -f "$RECIPE_DIR/../CAMPneu.nf" ] && [ -f "$RECIPE_DIR/../nextflow.config" ]; then
  echo "Files found in the parent directory of the recipe."
else
  echo "Files not found in the expected location. Please verify their placement."
fi

# Check if the files exist in the recipe directory
if [ -f "$RECIPE_DIR/CAMPneu.nf" ] && [ -f "$RECIPE_DIR/nextflow.config" ]; then
  echo "Files already exist in the recipe directory. Update the copy command accordingly."
fi

Length of output: 405


Script:

#!/bin/bash
# Locate CAMPneu.nf and nextflow.config in the repository
fd "CAMPneu.nf" . --type f
fd "nextflow.config" . --type f

# Check if 'file' command is available
if command -v file >/dev/null 2>&1; then
  echo "'file' command is available."
else
  echo "'file' command is not available. Please ensure it is installed."
fi

Length of output: 219


chmod +x $PREFIX/bin/CAMPneu.nf $PREFIX/bin/nextflow.config
48 changes: 48 additions & 0 deletions recipes/CAMPneu/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{% set name = "CAMPneu" %}
{% set version = "1.1.0" %}
{% set hash = "1f2bc9dbb9fa71fce9876852ba0dedad997cca800734b81a6a43fff8e5e20ac3" %}
{% set user = "appliedbinf" %}

package:
name: {{ name }}
version: {{ version }}

source:
url: https://github.com/{{ user }}/{{ name }}/archive/refs/tags/{{ version }}.tar.gz
sha256: {{ hash }}

build:
number: 0
noarch: generic
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing run_exports


requirements:
build:
- python
- setuptools
- skip: True # [win]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be part of root > build, not root > requirements > build

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please do not resolve conversations if you haven't addressed the issue.


host:
- python
- pip

run:
- nextflow
- python <3.11
- minimap2==2.28
- samtools
- fastp
- fastANI
- bcftools
- kraken2
- unicycler
- freebayes
- jq

mmkadam marked this conversation as resolved.
Show resolved Hide resolved
test:
commands:
- CAMPneu.nf --help
mmkadam marked this conversation as resolved.
Show resolved Hide resolved

about:
home: "https://github.com/{{ user }}/{{ name }}"
license: MIT
mmkadam marked this conversation as resolved.
Show resolved Hide resolved
summary: "Comprehensive Analysis of Mycoplasma Pneumoniae"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Enhance the about section with more details.

The about section provides essential information, but it could be more comprehensive:

  1. The use of Jinja2 variables for the home URL is consistent and good.
  2. The license information (MIT) is correctly specified.
  3. The summary is very brief and could be more informative.

Consider expanding the about section with more details:

about:
  home: "https://github.com/{{ user }}/{{ name }}"
  license: MIT
  license_file: LICENSE  # Add this if a LICENSE file exists in the source
  summary: "Comprehensive Analysis of Mycoplasma Pneumoniae"
  description: |
    CAMPneu is a bioinformatics pipeline for the comprehensive analysis of Mycoplasma pneumoniae.
    It integrates various tools for tasks such as genome assembly, variant calling, and annotation.
  dev_url: "https://github.com/{{ user }}/{{ name }}"
  doc_url: "https://github.com/{{ user }}/{{ name }}#readme"

Would you like help in drafting a more detailed description based on the CAMPneu documentation?

Loading