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

Add recipe for sccmec #47600

Merged
merged 4 commits into from
May 1, 2024
Merged

Add recipe for sccmec #47600

merged 4 commits into from
May 1, 2024

Conversation

rpetit3
Copy link
Member

@rpetit3 rpetit3 commented May 1, 2024

sccmec is a simple tool for typing SCCmec cassettes in assemblies


Please read the guidelines for Bioconda recipes before opening a pull request (PR).

General instructions

  • If this PR adds or updates a recipe, use "Add" or "Update" appropriately as the first word in its title.
  • New recipes not directly relevant to the biological sciences need to be submitted to the conda-forge channel instead of Bioconda.
  • PRs require reviews prior to being merged. Once your PR is passing tests and ready to be merged, please issue the @BiocondaBot please add label command.
  • Please post questions on Gitter or ping @bioconda/core in a comment.

Instructions for avoiding API, ABI, and CLI breakage issues

Conda is able to record and lock (a.k.a. pin) dependency versions used at build time of other recipes.
This way, one can avoid that expectations of a downstream recipe with regards to API, ABI, or CLI are violated by later changes in the recipe.
If not already present in the meta.yaml, make sure to specify run_exports (see here for the rationale and comprehensive explanation).
Add a run_exports section like this:

build:
  run_exports:
    - ...

with ... being one of:

Case run_exports statement
semantic versioning {{ pin_subpackage("myrecipe", max_pin="x") }}
semantic versioning (0.x.x) {{ pin_subpackage("myrecipe", max_pin="x.x") }}
known breakage in minor versions {{ pin_subpackage("myrecipe", max_pin="x.x") }} (in such a case, please add a note that shortly mentions your evidence for that)
known breakage in patch versions {{ pin_subpackage("myrecipe", max_pin="x.x.x") }} (in such a case, please add a note that shortly mentions your evidence for that)
calendar versioning {{ pin_subpackage("myrecipe", max_pin=None) }}

while replacing "myrecipe" with either name if a name|lower variable is defined in your recipe or with the lowercase name of the package in quotes.

Bot commands for PR management

Please use the following BiocondaBot commands:

Everyone has access to the following BiocondaBot commands, which can be given in a comment:

@BiocondaBot please update Merge the master branch into a PR.
@BiocondaBot please add label Add the please review & merge label.
@BiocondaBot please fetch artifacts Post links to CI-built packages/containers.
You can use this to test packages locally.

Note that the @BiocondaBot please merge command is now depreciated. Please just squash and merge instead.

Also, the bot watches for comments from non-members that include @bioconda/<team> and will automatically re-post them to notify the addressed <team>.

@rpetit3
Copy link
Member Author

rpetit3 commented May 1, 2024

@BiocondaBot please fetch artifacts

@BiocondaBot
Copy link
Collaborator

Package(s) built are ready for inspection:

Arch Package Zip File / Repodata CI Instructions
noarch sccmec-1.0.0-hdfd78af_0.tar.bz2 LinuxArtifacts.zip Azure
showYou may also use conda to install after downloading and extracting the zip file. From the LinuxArtifacts directory: conda install -c ./packages <package name>

Docker image(s) built:

Package Tag CI Install with docker
sccmec 1.0.0--hdfd78af_0 Azure
showImages for Azure are in the LinuxArtifacts zip file above.gzip -dc LinuxArtifacts/images/sccmec:1.0.0--hdfd78af_0.tar.gz | docker load

@rpetit3
Copy link
Member Author

rpetit3 commented May 1, 2024

Testing

Conda

mamba create -n sccmec -c conda-forge -c bioconda camlhmp
conda activate sccmec
conda install LinuxArtifacts/packages/noarch/sccmec-1.0.0-hdfd78af_0.tar.bz2
sccmec --input type-III-AB037671.fasta.gz --force
Running camlhmp with following parameters:
    --input type-III-AB037671.fasta.gz
    --yaml /home/robert_petit/miniconda3/envs/sccmec/bin/../share/sccmec/sccmec.yaml
    --targets /home/robert_petit/miniconda3/envs/sccmec/bin/../share/sccmec/sccmec.fasta
    --outdir ./
    --prefix camlhmp
    --min-pident 95
    --min-coverage 95

Starting camlhmp for SCCmec Typing...
Running blastn...
Processing hits...
Final Results...
                                              SCCmec Typing
┏━━━━━━━━━┳━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━┓
┃ sample  ┃ type ┃ targets                                                 ┃ schema ┃ version ┃ comment ┃
┡━━━━━━━━━╇━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━┩
│ camlhmp │ III  │ ccrA3,ccrB3,ccrC1,IS431,IS431_1,IS431_2,mecA,mecI,mecR1 │ sccmec │ 1.0.0   │         │
└─────────┴──────┴─────────────────────────────────────────────────────────┴────────┴─────────┴─────────┘
Writing outputs...
Final predicted type written to ./camlhmp.tsv
Results against each type written to ./camlhmp.details.tsv
blastn results written to ./camlhmp.blastn.tsv

Docker

docker run --rm -u $(id -u):$(id -g) -v ${PWD}:/data quay.io/biocontainers/sccmec:1.0.0--hdfd78af_0 sccmec --input /data/type-III-AB037671.fasta.gz --outdir /data/ --force
Running camlhmp with following parameters:
    --input /data/type-III-AB037671.fasta.gz
    --yaml /usr/local/bin/../share/sccmec/sccmec.yaml
    --targets /usr/local/bin/../share/sccmec/sccmec.fasta
    --outdir /data/
    --prefix camlhmp
    --min-pident 95
    --min-coverage 95

Starting camlhmp for SCCmec Typing...
Running blastn...
Processing hits...
Final Results...
                                 SCCmec Typing
┏━━━━━━━━━┳━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━┓
┃ sample  ┃ type ┃ targets                        ┃ schema ┃ version ┃ comment ┃
┡━━━━━━━━━╇━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━┩
│ camlhmp │ III  │ ccrA3,ccrB3,ccrC1,IS431,IS431… │ sccmec │ 1.0.0   │         │
└─────────┴──────┴────────────────────────────────┴────────┴─────────┴─────────┘
Writing outputs...
Final predicted type written to /data/camlhmp.tsv
Results against each type written to /data/camlhmp.details.tsv
blastn results written to /data/camlhmp.blastn.tsv

I think we are good!

@rpetit3
Copy link
Member Author

rpetit3 commented May 1, 2024

@BiocondaBot please add label

@BiocondaBot BiocondaBot added the please review & merge set to ask for merge label May 1, 2024
@rpetit3 rpetit3 requested a review from lskatz May 1, 2024 13:02
Copy link
Contributor

@lskatz lskatz left a comment

Choose a reason for hiding this comment

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

LGTM

@lskatz lskatz merged commit 0ced1a1 into bioconda:master May 1, 2024
6 checks passed
@rpetit3 rpetit3 deleted the rp3-add-sccmec branch May 1, 2024 13:52
daler pushed a commit that referenced this pull request May 14, 2024
* add recipe for sccmec

* update camlhmp pinning

* add empty line at EOF

* Update build.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
please review & merge set to ask for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants