Skip to content

Commit 84f3cd1

Browse files
committed
wip fixing tests
1 parent ceaaa43 commit 84f3cd1

25 files changed

Lines changed: 132 additions & 59 deletions

.nf-core.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ lint:
77
- params.input
88
files_unchanged:
99
- .github/PULL_REQUEST_TEMPLATE.md
10-
- docs/images/nf-core-seqsubmit_logo_light.png
10+
- docs/images/nf-core-seqsubmit_logo_light_old.png
1111
- docs/images/nf-core-seqsubmit_logo_dark.png
12-
- assets/nf-core-seqsubmit_logo_light.png
12+
- assets/nf-core-seqsubmit_logo_light_old.png
1313
nf_core_version: 4.0.2
1414
repository_type: pipeline
1515
template:

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -176,13 +176,13 @@ You can also control the privacy of your submitted data:
176176
- If you provide an existing study via `--submission_study`, your submission will inherit the same privacy status as that study.
177177
- If no study is provided, the pipeline will register a new one for you. To keep this new study private, you must specify a release date using `--hold_data_private YYYY-MM-DD` (up to 2 years from the current date).
178178

179-
| Example | Source Data | Submission Visibility | Required Arguments | Result |
180-
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- | --------------------- | -------------------------------------------------------- | ------------------------------------------------------- |
181-
| Assemblies generated from public reads. Assemblies should be public immediately after submission | public | public || SUCCESS |
182-
| Assemblies generated from public reads. Assemblies should remain private for 1 year after submission | public | private | `--hold_data_private today(YYYY-MM-DD)+1Y | SUCCESS |
183-
| Bins generated from private reads and assemblies. Bins should be public after submission. User **has access** to the reads and assemblies via Webin account | private | public | `--is_private` | SUCCESS |
184-
| Bins generated from private reads and assemblies. Bins should remain private for 2 years after submission. User **has access** via Webin account | private | private | `--is_private`, `--hold_data_private YYYY-MM-DD` (+2 years) | SUCCESS |
185-
| MAGs generated from private reads and assemblies. MAGs should be public after submission. User **does not have access** to the reads and assemblies via Webin account | private | public || ERROR (submission can only reference accessible data) |
179+
| Example | Source Data | Submission Visibility | Required Arguments | Result |
180+
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- | --------------------- | ----------------------------------------------------------- | ----------------------------------------------------- |
181+
| Assemblies generated from public reads. Assemblies should be public immediately after submission | public | public | | SUCCESS |
182+
| Assemblies generated from public reads. Assemblies should remain private for 1 year after submission | public | private | `--hold_data_private today(YYYY-MM-DD)+1Y | SUCCESS |
183+
| Bins generated from private reads and assemblies. Bins should be public after submission. User **has access** to the reads and assemblies via Webin account | private | public | `--is_private` | SUCCESS |
184+
| Bins generated from private reads and assemblies. Bins should remain private for 2 years after submission. User **has access** via Webin account | private | private | `--is_private`, `--hold_data_private YYYY-MM-DD` (+2 years) | SUCCESS |
185+
| MAGs generated from private reads and assemblies. MAGs should be public after submission. User **does not have access** to the reads and assemblies via Webin account | private | public | | ERROR (submission can only reference accessible data) |
186186

187187
### Database setup (`CheckM2` and `CAT_pack`)
188188

7.97 KB
Loading
74.3 KB
Loading

assets/seqsubmit_logo.png

637 KB
Loading

main.nf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ workflow NFCORE_SEQSUBMIT {
6161
params.test_upload,
6262
params.webincli_mode,
6363
params.is_private,
64-
params.hold_data_private
64+
params.release_date ? channel.value(params.release_date): channel.value(false)
6565
)
6666
ch_multiqc_report = GENOMESUBMIT.out.multiqc_report
6767
} else if (params.mode == "metagenomic_assemblies") {
@@ -77,7 +77,7 @@ workflow NFCORE_SEQSUBMIT {
7777
params.test_upload,
7878
params.webincli_mode,
7979
params.is_private,
80-
params.hold_data_private
80+
params.release_date ? channel.value(params.release_date): channel.value(false)
8181
)
8282
ch_multiqc_report = ASSEMBLYSUBMIT.out.multiqc_report
8383
} else if (params.mode == "reads") {
@@ -91,7 +91,7 @@ workflow NFCORE_SEQSUBMIT {
9191
params.study_metadata,
9292
params.test_upload,
9393
params.webincli_mode,
94-
params.hold_data_private
94+
params.release_date ? channel.value(params.release_date): channel.value(false)
9595
)
9696
ch_multiqc_report = READSUBMIT.out.multiqc_report
9797
}

modules/local/count_rna/environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ channels:
44
- bioconda
55
- defaults
66
dependencies:
7-
- python=3.9
7+
- python=3.8.13
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
# yaml-language-server: $schema=https://raw.githubusercontent.com/nf-core/modules/master/modules/environment-schema.json
3+
channels:
4+
- conda-forge
5+
- bioconda
6+
dependencies:
7+
- "bioconda::mgnify-pipelines-toolkit=1.5.1"
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/nf-core/modules/master/modules/meta-schema.json
2+
name: "create_reads_manifest"
3+
description: |
4+
Create a manifest file for submitting raw reads to ENA via webin-cli.
5+
Reads metadata (platform, instrument, library information) from the sample
6+
map and generates a manifest file for each sample.
7+
keywords:
8+
- ena
9+
- manifest
10+
- reads
11+
- submission
12+
- webin
13+
tools:
14+
- mgnify-pipelines-toolkit:
15+
description: |
16+
A toolkit of utilities used in MGnify metagenomics pipelines,
17+
including click, requests, and other dependencies required by
18+
the ENA submission scripts.
19+
homepage: https://github.com/EBI-Metagenomics/mgnify-pipelines-toolkit
20+
documentation: https://github.com/EBI-Metagenomics/mgnify-pipelines-toolkit
21+
tool_dev_url: https://github.com/EBI-Metagenomics/mgnify-pipelines-toolkit
22+
doi: ""
23+
licence: ["Apache-2.0"]
24+
identifier: null
25+
26+
input:
27+
- - meta:
28+
type: map
29+
description: |
30+
Groovy Map containing sample information, including platform,
31+
instrument, library_source, library_selection, library_strategy,
32+
sample_accession, and optionally insert_size, library_name,
33+
description.
34+
e.g. `[ id:'sample1', platform:'ILLUMINA', instrument:'Illumina HiSeq 2500' ]`
35+
- fastq_files:
36+
type: file
37+
description: One or two FASTQ files (single-end or paired-end reads).
38+
pattern: "*.{fastq,fastq.gz,fq,fq.gz}"
39+
- - study_accession:
40+
type: value
41+
description: ENA study accession to submit reads to.
42+
43+
output:
44+
- manifest:
45+
- meta:
46+
type: map
47+
description: |
48+
Groovy Map containing sample information.
49+
e.g. `[ id:'sample1' ]`
50+
- "*.manifest":
51+
type: file
52+
description: Manifest file required for reads submission with webin-cli.
53+
pattern: "*.manifest"
54+
55+
authors:
56+
- "@ochkalova"
57+
- "@timrozday-mgnify"
58+
- "@KateSakharova"
59+
maintainers:
60+
- "@ochkalova"
61+
- "@timrozday-mgnify"
62+
- "@KateSakharova"

modules/local/generate_assembly_manifest/meta.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ input:
3737
- test_upload:
3838
type: value
3939
description: Whether generated manifests are going to be submitted in test mode.
40+
- is_private:
41+
type: value
42+
description: Referring to private data in ENA.
4043

4144
output:
4245
- meta:

0 commit comments

Comments
 (0)