You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> Kofler, R., Pandey, R. V., & Schlötterer, C. (2011). PoPoolation2: identifying differentiation between populations using sequencing of pooled DNA samples (Pool-Seq). Bioinformatics, 27(24), 3435-3436.
> Gautier, M., Vitalis, R., Flori, L., & Estoup, A. (2022). f‐Statistics estimation and admixture graph construction with Pool‐Seq or allele count data using the R package poolfstat. Molecular Ecology Resources, 22(4), 1394-1416.
20
+
21
+
-[grenedalf](https://github.com/lczech/grenedalf)
22
+
23
+
> Czech, L., Spence, J. P., & Expósito-Alonso, M. (2024). grenedalf: population genetic statistics for the next generation of pool sequencing. Bioinformatics, 40(8), btae508.
> Danecek, P., Bonfield, J. K., Liddle, J., Marshall, J., Ohan, V., Pollard, M. O., ... & Li, H. (2021). Twelve years of SAMtools and BCFtools. Gigascience, 10(2), giab008.
28
+
29
+
-[vcftools](https://vcftools.github.io/)
30
+
31
+
> Danecek, P., Auton, A., Abecasis, G., Albers, C. A., Banks, E., DePristo, M. A., ... & 1000 Genomes Project Analysis Group. (2011). The variant call format and VCFtools. Bioinformatics, 27(15), 2156-2158.
32
+
33
+
-[samtools](https://samtools.github.io/)
34
+
35
+
> Danecek, P., Bonfield, J. K., Liddle, J., Marshall, J., Ohan, V., Pollard, M. O., ... & Li, H. (2021). Twelve years of SAMtools and BCFtools. Gigascience, 10(2), giab008.
[](https://github.com/nf-core/assesspool/actions/workflows/ci.yml)
9
-
[](https://github.com/nf-core/assesspool/actions/workflows/linting.yml)[](https://nf-co.re/assesspool/results)[](https://doi.org/10.5281/zenodo.XXXXXXX)
[](https://docs.conda.io/en/latest/)
15
-
[](https://www.docker.com/)
16
-
[](https://sylabs.io/docs/)
17
-
[](https://cloud.seqera.io/launch?pipeline=https://github.com/nf-core/assesspool)
18
-
19
-
[](https://nfcore.slack.com/channels/assesspool)[](https://bsky.app/profile/nf-co.re)[](https://mstdn.science/@nf_core)[](https://www.youtube.com/c/nf-core)
**nf-core/assesspool** is a bioinformatics pipeline that ...
24
-
25
-
<!-- TODO nf-core:
26
-
Complete this sentence with a 2-3 sentence summary of what types of data the pipeline ingests, a brief overview of the
27
-
major pipeline sections and the types of output it produces. You're giving an overview to someone new
28
-
to nf-core here, in 15-20 seconds. For an example, see https://github.com/nf-core/rnaseq/blob/master/README.md#introduction
29
-
-->
12
+
**assessPool** is a population genetics analysis pipeline designed for pooled sequencing runs (pool-seq). Starting from raw genomic variants (VCF or sync format), assessPool performs the following operations:
13
+
14
+
* Filters SNPs based on adjustable criteria with suggestions for pooled data
15
+
* Calculates population genetic statistics using [PoPoolation2](https://sourceforge.net/p/popoolation2/wiki/Main/), [poolfstat](https://doi.org/10.1111/1755-0998.13557), and/or [grenedalf](https://github.com/lczech/grenedalf).
16
+
* Generates an HTML report including visualizations of population genetic statistics
17
+
* Outputs results in tabular format for downstream analyses
18
+
19
+
Required inputs are a variant description file (sync or VCF) and a reference assembly (FASTA). These can be output from any number of reduced representation data processing pipelines (e.g., [grenepipe](https://github.com/moiexpositoalonsolab/grenepipe), [dDocent](https://ddocent.com/), etc.).
20
+
21
+
Major pipeline operations:
22
+
23
+
1. Import, index, and/or compress variant description and reference
24
+
1. Perform stepwise filtering to determine effects of individual filter options (count lost loci):
25
+
1. Min/max read depth
26
+
1. Minor allele count
27
+
1. Hardy-Weinberg equilibrium cutoff
28
+
1. Missing data
29
+
1. Allele length
30
+
1. Quality:depth ratio
31
+
1. Minimum read quality
32
+
1. Variant type
33
+
1. Mispaired read likelihood
34
+
1. Alternate observations
35
+
1. Mapping quality
36
+
1. Mapping ratio
37
+
1. Overall depth
38
+
1. Number of pools with data
39
+
1. Read balance
40
+
1. Variant thinning
41
+
1. Perform cumulative filtering (for VCF input)
42
+
1. Generate sync files
43
+
1. Unified (all pools)
44
+
1. Split pairwise
45
+
1. Generate allele frequency table
46
+
1. Calculate F<sub>st</sub>
47
+
1. PoPoolation2
48
+
1.{poolfstat}
49
+
1. grenedalf
50
+
1. Calculate Fisher's exact test for individual SNPs
51
+
1. PoPoolation2
52
+
1. assessPool native
53
+
1. Join frequency data to F<sub>st</sub> results
54
+
1. Extract contigs containing (user-configurable) strongly-differentiated loci
55
+
1. Create HTML report
56
+
1. Save all output data in tabular format for downstream analysis
30
57
31
58
<!-- TODO nf-core: Include a figure that guides the user through the major workflow steps. Many nf-core
32
59
workflows use the "tube map" design for that. See https://nf-co.re/docs/guidelines/graphic_design/workflow_diagrams#examples for examples. -->
33
-
<!-- TODO nf-core: Fill in short bullet-pointed list of the default steps in the pipeline -->
34
60
35
61
## Usage
36
62
37
63
> [!NOTE]
38
64
> If you are new to Nextflow and nf-core, please refer to [this page](https://nf-co.re/docs/usage/installation) on how to set-up Nextflow. Make sure to [test your setup](https://nf-co.re/docs/usage/introduction#how-to-run-a-pipeline) with `-profile test` before running the workflow on actual data.
39
65
40
-
<!-- TODO nf-core: Describe the minimum required steps to execute the pipeline, e.g. how to prepare samplesheets.
41
-
Explain what rows and columns represent. For instance (please edit as appropriate):
42
-
43
-
First, prepare a samplesheet with your input data that looks as follows:
66
+
First, prepare a sample sheet with your input data that looks as follows:
`pools` (optional): Comma-separated list of pool names (will replace any names in the input file)
82
+
`pool_sizes` (required): Number of individuals in each pool. Either a single number for uniform pool sizes or a comma-separated list of sizes for each pool.
55
83
56
-
Now, you can run the pipeline using:
57
84
58
-
<!-- TODO nf-core: update the following command to include all required parameters for a minimal example -->
85
+
Required columns are `project`, `input`, `reference`, and `pool_sizes`.
86
+
87
+
Now, you can run the pipeline using:
59
88
60
89
```bash
61
-
nextflow run nf-core/assesspool \
90
+
nextflow run tobodev/assesspool \
62
91
-profile <docker/singularity/.../institute> \
63
92
--input samplesheet.csv \
64
93
--outdir <OUTDIR>
@@ -67,41 +96,47 @@ nextflow run nf-core/assesspool \
67
96
> [!WARNING]
68
97
> Please provide pipeline parameters via the CLI or Nextflow `-params-file` option. Custom config files including those provided by the `-c` Nextflow option can be used to provide any configuration _**except for parameters**_; see [docs](https://nf-co.re/docs/usage/getting_started/configuration#custom-configuration-files).
69
98
70
-
For more details and further functionality, please refer to the [usage documentation](https://nf-co.re/assesspool/usage) and the [parameter documentation](https://nf-co.re/assesspool/parameters).
99
+
For more details and further functionality, please refer to the [usage documentation](docs/usage.md) and the [parameter documentation](parameters.md).
100
+
101
+
## Testing the pipeline
102
+
assessPool comes with two built-in profiles that allow the user to test the pipeline with a fully-functional input dataset. These profiles (whose descriptions can be found in [conf/test.confg](conf/test.config) and [conf/test_full.config](conf/test_full.config)) will run assessPool with either a full or reduced dataset of SNPs sequenced from wild populations of the coral *Montipora capitata*. Pipeline tests can be run by passing either `test` or `test_full` to the `-profile` option, along with a software/container management subsystem. For example, using singularity:
103
+
104
+
```
105
+
nextflow run tobodev/assesspool \
106
+
-profile test,singularity
107
+
```
108
+
or
109
+
```
110
+
nextflow run tobodev/assesspool \
111
+
-profile test_full,singularity
112
+
```
71
113
72
114
## Pipeline output
73
115
74
-
To see the results of an example test run with a full size dataset refer to the [results](https://nf-co.re/assesspool/results) tab on the nf-core website pipeline page.
116
+
Results of an example test run with a full size dataset can be found [here](https://tobodev.github.io/assesspool/).
75
117
For more details about the output files and reports, please refer to the
nf-core/assesspool was originally written by Evan B Freel, Emily E Conklin, Mykle L Hoban, Derek W Kraft, Jonathan L Whitney, Ingrid SS Knapp, Zac H Forsman, Robert J Toonen.
122
+
assessPool was originally written by Evan B Freel, Emily E Conklin, Mykle L Hoban, Derek W Kraft, Jonathan L Whitney, Ingrid SS Knapp, Zac H Forsman, Robert J Toonen.
81
123
82
124
We thank the following people for their extensive assistance in the development of this pipeline:
83
125
84
-
<!-- TODO nf-core: If applicable, make list of people who have also contributed -->
126
+
Richard Coleman, ʻAleʻalani Dudoit, and Cataixa López, who used assessPool during development and helped identify issues and suggest key feature improvements. We would also like to thank Iliana Baums, Tanya Beirne, Dave Carlon, Greg Conception, Matt Craig, Jeff Eble, Scott Godwin, Matt Iacchei, Frederique Kandel, Steve Karl, Jim Maragos, Bob Moffitt, Joe O'Malley, Lawrie Provost, Jennifer Salerno, Derek Skillings, Michael Stat, Ben Wainwright, and Kim Weersing, for their efforts in sample collection.
85
127
86
128
## Contributions and Support
87
129
88
130
If you would like to contribute to this pipeline, please see the [contributing guidelines](.github/CONTRIBUTING.md).
89
131
90
-
For further information or help, don't hesitate to get in touch on the [Slack `#assesspool` channel](https://nfcore.slack.com/channels/assesspool) (you can join with [this invite](https://nf-co.re/join/slack)).
91
-
92
132
## Citations
93
133
94
-
<!-- TODO nf-core: Add citation for pipeline after first release. Uncomment lines below and update Zenodo doi and badge at the top of this file. -->
95
-
<!-- If you use nf-core/assesspool for your analysis, please cite it using the following doi: [10.5281/zenodo.XXXXXX](https://doi.org/10.5281/zenodo.XXXXXX) -->
96
-
97
-
<!-- TODO nf-core: Add bibliography of tools and data used in your pipeline -->
98
-
99
-
An extensive list of references for the tools used by the pipeline can be found in the [`CITATIONS.md`](CITATIONS.md) file.
134
+
A list of references for the tools used by the pipeline can be found in the [`CITATIONS.md`](CITATIONS.md) file.
100
135
101
-
You can cite the `nf-core` publication as follows:
136
+
This pipeline uses code and infrastructure developed and maintained by the [nf-core](https://nf-co.re) community, reused here under the [MIT license](https://github.com/nf-core/tools/blob/master/LICENSE).
102
137
103
-
> **The nf-core framework for community-curated bioinformatics pipelines.**
138
+
> The nf-core framework for community-curated bioinformatics pipelines.
104
139
>
105
140
> Philip Ewels, Alexander Peltzer, Sven Fillinger, Harshil Patel, Johannes Alneberg, Andreas Wilm, Maxime Ulysse Garcia, Paolo Di Tommaso & Sven Nahnsen.
106
141
>
107
-
> _Nat Biotechnol._ 2020 Feb 13. doi: [10.1038/s41587-020-0439-x](https://dx.doi.org/10.1038/s41587-020-0439-x).
142
+
> Nat Biotechnol. 2020 Feb 13. doi: 10.1038/s41587-020-0439-x.
0 commit comments