Skip to content

Add r-cosg recipe#32144

Open
genecell wants to merge 3 commits intoconda-forge:mainfrom
genecell:add-r-cosg
Open

Add r-cosg recipe#32144
genecell wants to merge 3 commits intoconda-forge:mainfrom
genecell:add-r-cosg

Conversation

@genecell
Copy link

@genecell genecell commented Feb 8, 2026

Add r-cosg recipe

Package: r-cosg (COSG for R)
Homepage: https://github.com/genecell/COSGR
License: BSD-3-Clause

Description

COSG is a cosine similarity-based method for accurate and scalable marker gene identification in single-cell RNA-seq, scATAC-seq, and spatially resolved transcriptome data. This is the R implementation, compatible with Seurat v3, v4, and v5.

Checklist

  • Title of this PR is meaningful
  • License file is included in the repository
  • Recipe is noarch: generic (pure R, no compiled code)
  • All dependencies are available on conda-forge
  • Recipe builds and tests pass locally

Notes

@conda-forge-admin
Copy link
Contributor

Hi! This is the friendly automated conda-forge-linting service.

I just wanted to let you know that I linted all conda-recipes in your PR (recipes/r-cosg/meta.yaml) and found it was in an excellent condition.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 8, 2026

Hi! This is the staged-recipes linter and your PR looks excellent! 🚀

@genecell
Copy link
Author

genecell commented Feb 8, 2026

@conda-forge/help-r, ready for review!

Copy link
Contributor

@danielnachun danielnachun left a comment

Choose a reason for hiding this comment

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

Since this package is only GitHub, we can't use https://github.com/bgruening/conda_r_skeleton_helper as we normally do to generate the recipe. So we can try our best to match what it would make, at least enough that our bots can manage the recipe in the future.

Comment on lines 2 to 10
{% set github = "genecell" %}
{% set name = "COSGR" %}

package:
name: r-cosg
version: {{ version }}

source:
url: https://github.com/{{ github }}/{{ name }}/archive/refs/tags/v{{ version }}.tar.gz
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
{% set github = "genecell" %}
{% set name = "COSGR" %}
package:
name: r-cosg
version: {{ version }}
source:
url: https://github.com/{{ github }}/{{ name }}/archive/refs/tags/v{{ version }}.tar.gz
package:
name: r-cosg
version: {{ version }}
source:
url: https://github.com/genecell/COSGR/archive/refs/tags/v{{ version }}.tar.gz

Those Jinja keys are not needed and omitting them improves readability.

Comment on lines 23 to 33
- r-base >=4.0
- r-data.table
- r-proxyc
- r-matrix
- r-seuratobject >=3.0.0
run:
- r-base >=4.0
- r-data.table
- r-proxyc
- r-matrix
- r-seuratobject >=3.0.0
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
- r-base >=4.0
- r-data.table
- r-proxyc
- r-matrix
- r-seuratobject >=3.0.0
run:
- r-base >=4.0
- r-data.table
- r-proxyc
- r-matrix
- r-seuratobject >=3.0.0
- r-base
- r-data.table
- r-proxyc
- r-matrix
- r-seuratobject >=3.0.0
run:
- r-base
- r-data.table
- r-proxyc
- r-matrix
- r-seuratobject >=3.0.0

The r-base version should not be set like this - the R versions we use are supposed to be determined by conda-forge-pinnings rather than in individual recipes.

about:
home: https://github.com/genecell/COSGR
license: BSD-3-Clause
license_family: BSD
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
license_family: BSD

This key is deprecated and is no longer needed.

build:
number: 0
noarch: generic
script: R CMD INSTALL --build .
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you please change this recipe so that instead of using script here, you use separate build.sh and bld.bat scripts like is done in this PR for example: #32161? I realize it's odd to have a bld.bat script for a noarch: generic package (it will be ignored for now), but we do this to accommodate the possibility in the future that package begins to have native code.

@genecell
Copy link
Author

@danielnachun All four changes addressed, thanks for the review! Ready for another look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants