-
Notifications
You must be signed in to change notification settings - Fork 1k
Anarcii #11058
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
Anarcii #11058
Changes from all commits
a775032
00cca79
5b4a372
d6d704f
e5492d5
19bbc2d
91e0f56
8926c88
22fabcc
8798baa
f0364d7
825c1b2
f8dd26f
6cebbad
52b63e3
d5977ea
84086f7
306fd55
a65bad2
7fde0c4
e4255d9
8c878e3
b2ee9f3
1e9bb3e
ce1aba9
b0f033c
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,9 @@ | ||
| --- | ||
| # yaml-language-server: $schema=https://raw.githubusercontent.com/nf-core/modules/master/modules/environment-schema.json | ||
| channels: | ||
| - conda-forge | ||
| - bioconda | ||
| dependencies: | ||
| - "conda-forge::pip=26.0.1" | ||
| - pip: | ||
| - anarcii==2.0.5 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| process ANARCII { | ||
| tag "${meta.id}" | ||
| label 'process_single' | ||
|
|
||
| conda "${moduleDir}/environment.yml" | ||
| container "${workflow.containerEngine == 'singularity' | ||
| ? 'https://community-cr-prod.seqera.io/docker/registry/v2/blobs/sha256/c5/c56cb3320588978063f0893876f4f2b6f088dadc75628f60a746ee54e72350a6/data' | ||
| : 'community.wave.seqera.io/library/python_pip_anarcii:4e5c3ffabd22d3fc'}" | ||
|
|
||
| input: | ||
| tuple val(meta), path(fasta) | ||
|
|
||
| output: | ||
| tuple val(meta), path("*.csv"), emit: anarcii | ||
| tuple val("${task.process}"), val('anarcii'), eval('anarcii --version | sed "s/^anarcii //"'), topic: versions, emit: versions_anarcii | ||
|
|
||
| when: | ||
| task.ext.when == null || task.ext.when | ||
|
|
||
| script: | ||
| def args = task.ext.args ?: '' | ||
| def prefix = task.ext.prefix ?: "${meta.id}" | ||
| """ | ||
| anarcii \\ | ||
| ${args}\\ | ||
| -o ${prefix}.csv \\ | ||
| ${fasta} | ||
| """ | ||
|
|
||
| stub: | ||
| def args = task.ext.args ?: '' | ||
| def prefix = task.ext.prefix ?: "${meta.id}" | ||
| """ | ||
| echo ${args} | ||
|
|
||
| touch ${prefix}.csv | ||
| """ | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,67 @@ | ||
| name: "anarcii" | ||
| description: A language model for antigen receptor numbering | ||
| keywords: | ||
| - annotate | ||
| - antibody | ||
| - TCR | ||
| - immunology | ||
| tools: | ||
| - "anarcii": | ||
| description: "A language model for antigen receptor numbering" | ||
| homepage: "https://github.com/oxpig/ANARCII" | ||
| documentation: "https://github.com/oxpig/ANARCII/wiki" | ||
| tool_dev_url: "https://github.com/oxpig/ANARCII" | ||
| doi: "10.5281/zenodo.15274840" | ||
| licence: | ||
| - "BSD 3-Clause License" | ||
| identifier: "" | ||
| input: | ||
| - - meta: | ||
| type: map | ||
| description: | | ||
| Groovy Map containing sample information | ||
| e.g. `[ id:'sample1' ]` | ||
| - fasta: | ||
| type: file | ||
| description: Fasta file with full receptor sequences | ||
| pattern: "*.fasta" | ||
| ontologies: | ||
| - edam: http://edamontology.org/format_1929 | ||
| output: | ||
| anarcii: | ||
| - - meta: | ||
| type: map | ||
| description: | | ||
| Groovy Map containing sample information | ||
| e.g. `[ id:'sample1' ]` | ||
| - "*.csv": | ||
| type: file | ||
| description: File containing per-base numbering | ||
| pattern: "*.csv" | ||
| ontologies: | ||
| - edam: http://edamontology.org/format_3752 | ||
| versions_anarcii: | ||
| - - ${task.process}: | ||
| type: string | ||
| description: The name of the process | ||
| - anarcii: | ||
| type: string | ||
| description: The name of the tool | ||
| - anarcii --version | sed "s/^anarcii //": | ||
| type: eval | ||
| description: The expression to obtain the version of the tool | ||
| topics: | ||
| versions: | ||
| - - ${task.process}: | ||
| type: string | ||
| description: The name of the process | ||
| - anarcii: | ||
| type: string | ||
| description: The name of the tool | ||
| - anarcii --version | sed "s/^anarcii //": | ||
| type: eval | ||
| description: The expression to obtain the version of the tool | ||
| authors: | ||
| - "@Clara0611" | ||
| maintainers: | ||
| - "@Clara0611" |
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,60 @@ | ||||||||||||||||
| // nf-core modules test anarcii | ||||||||||||||||
| nextflow_process { | ||||||||||||||||
|
|
||||||||||||||||
| name "Test Process ANARCII" | ||||||||||||||||
| script "../main.nf" | ||||||||||||||||
| process "ANARCII" | ||||||||||||||||
|
|
||||||||||||||||
| tag "modules" | ||||||||||||||||
| tag "modules_nfcore" | ||||||||||||||||
| tag "anarcii" | ||||||||||||||||
|
|
||||||||||||||||
| test("human - fasta") { | ||||||||||||||||
|
|
||||||||||||||||
| when { | ||||||||||||||||
| process { | ||||||||||||||||
| """ | ||||||||||||||||
| input[0] = [ | ||||||||||||||||
| [ id:'test' ], | ||||||||||||||||
| file(params.modules_testdata_base_path + 'genomics/homo_sapiens/anarcii/anarcii_vdjdb.fasta', checkIfExists: true), | ||||||||||||||||
| ] | ||||||||||||||||
| """ | ||||||||||||||||
| } | ||||||||||||||||
| } | ||||||||||||||||
|
|
||||||||||||||||
| then { | ||||||||||||||||
| assert process.success | ||||||||||||||||
| def anarciiResults = path(process.out.anarcii.get(0).get(1)).csv | ||||||||||||||||
| assert "Name" in anarciiResults.columnNames | ||||||||||||||||
| assert "Chain" in anarciiResults.columnNames | ||||||||||||||||
| assert "Score" in anarciiResults.columnNames | ||||||||||||||||
| assert "Query start" in anarciiResults.columnNames | ||||||||||||||||
| assert "Query end" in anarciiResults.columnNames | ||||||||||||||||
|
Comment on lines
+27
to
+32
Contributor
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.
Suggested change
or are the optionally more column names?
Contributor
Author
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. There are 128+ other columns corresponding to the numbering, which depends on the dataset. I can find out which exact numbering (includes alternatives sometimes, like 112A, 112B etc) this test data set produces, but I thought that including all of those would be hard to read and not representative of the tool, only of this specific test dataset. However, if you feel I should include them, it is possible.
Contributor
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. Are you still struggling with instable md5sums even after updating the test data?
Contributor
Author
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. Yes, unfortunately while the scores look better, they are still not 100% stable across systems |
||||||||||||||||
| } | ||||||||||||||||
| } | ||||||||||||||||
|
|
||||||||||||||||
| test("human - fasta - stub") { | ||||||||||||||||
|
|
||||||||||||||||
| options "-stub" | ||||||||||||||||
|
|
||||||||||||||||
| when { | ||||||||||||||||
| process { | ||||||||||||||||
| """ | ||||||||||||||||
| input[0] = [ | ||||||||||||||||
| [ id:'test' ], | ||||||||||||||||
| file(params.modules_testdata_base_path + 'genomics/homo_sapiens/anarcii/anarcii_vdjdb.fasta', checkIfExists: true), | ||||||||||||||||
| ] | ||||||||||||||||
| """ | ||||||||||||||||
| } | ||||||||||||||||
| } | ||||||||||||||||
|
|
||||||||||||||||
| then { | ||||||||||||||||
| assert process.success | ||||||||||||||||
| assertAll( | ||||||||||||||||
| { assert snapshot(sanitizeOutput(process.out)).match() } | ||||||||||||||||
| ) | ||||||||||||||||
| } | ||||||||||||||||
|
|
||||||||||||||||
| } | ||||||||||||||||
|
|
||||||||||||||||
| } | ||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| { | ||
| "human - fasta - stub": { | ||
| "content": [ | ||
| { | ||
| "anarcii": [ | ||
| [ | ||
| { | ||
| "id": "test" | ||
| }, | ||
| "test.csv:md5,d41d8cd98f00b204e9800998ecf8427e" | ||
| ] | ||
| ], | ||
| "versions_anarcii": [ | ||
| [ | ||
| "ANARCII", | ||
| "anarcii", | ||
| "2.0.5" | ||
| ] | ||
| ] | ||
| } | ||
| ], | ||
| "timestamp": "2026-04-01T14:42:12.168257534", | ||
| "meta": { | ||
| "nf-test": "0.9.4", | ||
| "nextflow": "25.10.4" | ||
| } | ||
| } | ||
| } |
Uh oh!
There was an error while loading. Please reload this page.