Skip to content

Commit d6744ab

Browse files
authored
Merge pull request #53 from CaroAMN/dev
Adding review suggestions
2 parents 6f373ba + e96917c commit d6744ab

33 files changed

Lines changed: 861 additions & 1436 deletions

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,3 @@ testing*
88
*.pyc
99
null/
1010
.nf-test*
11-
.nf-test/

CITATIONS.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@
1010
1111
## Pipeline tools
1212

13-
- [NuMorph](https://pubmed.ncbi.nlm.nih.gov/34644582/)
14-
15-
> Krupa O, Fragola G, Hadden-Ford E, Mory JT, Liu T, Humphrey Z, Rees BW, Krishnamurthy A, Snider WD, Zylka MJ, Wu G, Xing L, Stein JL. NuMorph: Tools for cortical cellular phenotyping in tissue-cleared whole-brain images. Cell Rep. 2021 Oct 12;37(2):109802. doi: 10.1016/j.celrep.2021.109802. PMID: 34644582; PMCID: PMC8530274.
16-
1713
- [BaSiC](https://www.nature.com/articles/ncomms14836)
1814

1915
> Peng, T., Thorn, K., Schroeder, T. et al. A BaSiC tool for background and shading correction of optical microscopy images. Nat Commun 8, 14836 (2017). https://doi.org/10.1038/ncomms14836
@@ -22,17 +18,21 @@
2218

2319
> Klein S, Staring M, Murphy K, Viergever MA, Pluim JP. elastix: a toolbox for intensity-based medical image registration. IEEE Trans Med Imaging. 2010 Jan;29(1):196-205. doi: 10.1109/TMI.2009.2035616. Epub 2009 Nov 17. PMID: 19923044.
2420
25-
- [3DUnetCNN](https://pubmed.ncbi.nlm.nih.gov/37555134/)
21+
- [MultiQC](https://pubmed.ncbi.nlm.nih.gov/27312411/)
2622

27-
> Ellis DG, Aizenberg MR. Structural Brain Imaging Predicts Individual-Level Task Activation Maps Using Deep Learning. Front Neuroimaging. 2022 Apr 18;1:834883. doi: 10.3389/fnimg.2022.834883. PMID: 37555134; PMCID: PMC10406267.
23+
> Ewels P, Magnusson M, Lundin S, Käller M. MultiQC: summarize analysis results for multiple tools and samples in a single report. Bioinformatics. 2016 Oct 1;32(19):3047-8. doi: 10.1093/bioinformatics/btw354. Epub 2016 Jun 16. PubMed PMID: 27312411; PubMed Central PMCID: PMC5039924.
24+
25+
- [NuMorph](https://pubmed.ncbi.nlm.nih.gov/34644582/)
26+
27+
> Krupa O, Fragola G, Hadden-Ford E, Mory JT, Liu T, Humphrey Z, Rees BW, Krishnamurthy A, Snider WD, Zylka MJ, Wu G, Xing L, Stein JL. NuMorph: Tools for cortical cellular phenotyping in tissue-cleared whole-brain images. Cell Rep. 2021 Oct 12;37(2):109802. doi: 10.1016/j.celrep.2021.109802. PMID: 34644582; PMCID: PMC8530274.
2828
2929
[VLFeat](https://www.vlfeat.org/)
3030

3131
> A. Vedaldi and B. Fulkerson VLFeat: An Open and Portable Library of Computer Vision Algorithms (2008)
3232
33-
- [MultiQC](https://pubmed.ncbi.nlm.nih.gov/27312411/)
33+
- [3DUnetCNN](https://pubmed.ncbi.nlm.nih.gov/37555134/)
3434

35-
> Ewels P, Magnusson M, Lundin S, Käller M. MultiQC: summarize analysis results for multiple tools and samples in a single report. Bioinformatics. 2016 Oct 1;32(19):3047-8. doi: 10.1093/bioinformatics/btw354. Epub 2016 Jun 16. PubMed PMID: 27312411; PubMed Central PMCID: PMC5039924.
35+
> Ellis DG, Aizenberg MR. Structural Brain Imaging Predicts Individual-Level Task Activation Maps Using Deep Learning. Front Neuroimaging. 2022 Apr 18;1:834883. doi: 10.3389/fnimg.2022.834883. PMID: 37555134; PMCID: PMC10406267.
3636
3737
## Software packaging/containerisation tools
3838

README.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@
2424

2525
**nf-core/lsmquant** is a bioinformatics pipeline that performs preprocessing and analysis of light-sheet microscopy images of tissue cleared samples. The pipeline takes raw images from a directory or a zip archive as input. The images need to be in a 2D single-channel 16-bit `tif`format.
2626

27-
<div style="text-align: center;">
28-
<img src="docs/images/lsmquant-metromap.svg" alt="lasmquant metromap">
29-
</div>
27+
![lsmquant metromap](docs/images/lsmquant-metromap.svg)
3028

3129
## Pipeline Summary
3230

@@ -42,14 +40,14 @@ This stage reconstructs the 3D image from raw light-sheet data. Here three diffe
4240

4341
3. `stitch_only`: Performs only iterative tile stitching
4442

45-
**Allen Brain Atlas Registration (Optional)**
46-
47-
This workflow registers full brain images to the Allen Brain Reference Atlas. This is an optional workflow and can be chosen by setting the parameter: `ara_registartion`
48-
4943
**Cell Nuclei Quantification**
5044

5145
Quantification of cell-nuclei is performed using a 3D-Unet and it is performed on the nuclear channel only. This is an optional workflow and can be chosen by setting the parameter:`nuclei_quantification`
5246

47+
**Allen Brain Atlas Registration (Optional)**
48+
49+
This workflow registers full brain images to the Allen Brain Reference Atlas. This is an optional workflow and can be chosen by setting the parameter: `ara_registartion`
50+
5351
## Usage
5452

5553
> [!NOTE]
@@ -67,7 +65,6 @@ TEST1,path/to/image-files,path/to/parameter/file.csv
6765
The parameter csv file includes sample specific parameters that are used for processing the given data. It needs to follow a specific structure.
6866

6967
Please get the basic template file [here](../assets/params_template_lsmquant.csv).
70-
`parametersheet.csv`
7168

7269
Now, you can run the pipeline using:
7370

conf/base.config

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,6 @@ process {
5151
withLabel:process_high_memory {
5252
memory = { 200.GB * task.attempt }
5353
}
54-
withLabel:process_high_long {
55-
cpus = { 6 * task.attempt }
56-
memory = { 36.GB * task.attempt }
57-
time = { 24.h * task.attempt }
58-
}
5954
withLabel:error_ignore {
6055
errorStrategy = 'ignore'
6156
}
@@ -67,19 +62,5 @@ process {
6762
ext.use_gpu = true
6863
accelerator = 1
6964
}
70-
withName: 'NUMORPHINTENSITY' {
71-
cpus = { 2 * task.attempt }
72-
memory = { 30.GB * task.attempt }
73-
time = { 2.h * task.attempt }
74-
}
75-
withName: 'NUMORPHALIGN' {
76-
cpus = { 7 * task.attempt }
77-
memory = { 6.GB * task.attempt }
78-
time = { 11.h * task.attempt }
79-
}
80-
withName: 'NUMORPHSTITCH' {
81-
cpus = { 2 * task.attempt }
82-
memory = { 9.GB * task.attempt }
83-
time = { 15.h * task.attempt }
84-
}
65+
8566
}

conf/modules.config

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ process {
3434
}
3535

3636
withName: 'NUMORPHINTENSITY' {
37+
cpus = { 2 * task.attempt }
38+
memory = { 30.GB * task.attempt }
39+
time = { 2.h * task.attempt }
3740
publishDir = [
3841
path: { "${params.outdir}/numorphintensity/" },
3942
mode: params.publish_dir_mode,
@@ -49,6 +52,9 @@ process {
4952
}
5053

5154
withName: 'NUMORPHALIGN' {
55+
cpus = { 7 * task.attempt }
56+
memory = { 6.GB * task.attempt }
57+
time = { 11.h * task.attempt }
5258
publishDir = [
5359
path: { "${params.outdir}/numorphalign/" },
5460
mode: params.publish_dir_mode,
@@ -64,10 +70,13 @@ process {
6470
}
6571

6672
withName: 'NUMORPHSTITCH' {
73+
cpus = { 2 * task.attempt }
74+
memory = { 9.GB * task.attempt }
75+
time = { 15.h * task.attempt }
6776
publishDir = [
6877
path: { "${params.outdir}/numorphstitch/" },
6978
mode: params.publish_dir_mode,
70-
pattern: 'results/**/*',
79+
pattern: 'results/*',
7180
saveAs: { filename ->
7281
if (filename.equals('versions.yml')) {
7382
null
@@ -110,15 +119,7 @@ process {
110119
publishDir = [
111120
path: { "${params.outdir}/numorph3dunet/" },
112121
mode: params.publish_dir_mode,
113-
pattern: 'results/*',
114-
saveAs: { filename ->
115-
if (filename.equals('versions.yml')) {
116-
null
117-
}
118-
else {
119-
filename.replaceFirst("^results/", "${meta.id}/")
120-
}
121-
}
122+
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
122123
]
123124
}
124125

0 commit comments

Comments
 (0)