phaseimpute

A bioinformatics pipeline to phase and impute genetic data

https://github.com/nf-core/phaseimpute

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
    Found 10 DOI reference(s) in README
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (9.7%) to scientific vocabulary

Keywords

genomics genotype imputation low-pass-sequencing phasing pipeline
Last synced: 4 months ago · JSON representation ·

Repository

A bioinformatics pipeline to phase and impute genetic data

Basic Info
Statistics
  • Stars: 22
  • Watchers: 174
  • Forks: 21
  • Open Issues: 15
  • Releases: 0
Topics
genomics genotype imputation low-pass-sequencing phasing pipeline
Created over 2 years ago · Last pushed 6 months ago
Metadata Files
Readme Changelog Contributing License Code of conduct Citation

README.md

nf-core/phaseimpute

Multi-step pipeline dedicated to genetic imputation from simulation to validation

GitHub Actions CI Status GitHub Actions Linting Status AWS CI Cite with Zenodo nf-test Nextflow run with conda run with docker run with singularity Launch on Seqera Platform

Get help on Slack Follow on Twitter Follow on Mastodon Watch on YouTube

Introduction

nf-core/phaseimpute is a bioinformatics pipeline to phase and impute genetic data.

metromap

The whole pipeline consists of five main steps, each of which can be run separately and independently. Users are not required to run all steps sequentially and can select specific steps based on their needs:

  1. QC: Chromosome Name Check: Ensures compatibility by validating that all expected contigs are present in the variant and alignment files.

  2. Simulation (--simulate): Generates artificial datasets by downsampling high-density data to simulate low-pass genetic information. This enables the comparison of imputation results against a high-quality dataset (truth set). Simulations may include:

  • Low-pass data generation by downsampling BAM or CRAM files with samtools view -s at different depths.
  1. Panel Preparation (--panelprep): Prepares the reference panel through phasing, quality control, variant filtering, and annotation. Key processes include:
  • Normalization of the reference panel to retain essential variants.
  • Phasing of haplotypes in the reference panel using Shapeit5.
  • Chunking of the reference panel into specific regions across chromosomes.
  • Position Extraction for targeted imputation sites.
  1. Imputation (--impute): This is the primary step, where genotypes in the target dataset are imputed using the prepared reference panel. The main steps are:
  • Imputation of the target dataset using tools like Glimpse1, Glimpse2, Stitch, or Quilt.
  • Ligation of imputed chunks to produce a final VCF file per sample, with all chromosomes unified.
  1. Validation (--validate): Assesses imputation accuracy by comparing the imputed dataset to a truth dataset. This step leverages the Glimpse2 concordance process to summarize differences between two VCF files.

For more detailed instructions, please refer to the usage documentation.

Usage

[!NOTE] If you are new to Nextflow and nf-core, please refer to this page on how to set-up Nextflow. Make sure to test your setup with -profile test before running the workflow on actual data.

The primary function of this pipeline is to impute a target dataset based on a phased panel. Begin by preparing a samplesheet with your input data, formatted as follows:

csv title="samplesheet.csv" sample,file,index SAMPLE_1X,/path/to/.<bam/cram>,/path/to/.<bai,crai>

Each row represents either a bam or a cram file along with its corresponding index file. Ensure that all input files have consistent file extensions.

For certain tools and steps within the pipeline, you will also need to provide a samplesheet for the reference panel. Here's an example of what a final samplesheet for a reference panel might look like, covering three chromosomes:

csv title="panel.csv" panel,chr,vcf,index Phase3,1,ALL.chr1.phase3_shapeit2_mvncall_integrated_v5a.20130502.genotypes.vcf.gz,ALL.chr1.phase3_shapeit2_mvncall_integrated_v5a.20130502.genotypes.vcf.gz.csi Phase3,2,ALL.chr2.phase3_shapeit2_mvncall_integrated_v5a.20130502.genotypes.vcf.gz,ALL.chr2.phase3_shapeit2_mvncall_integrated_v5a.20130502.genotypes.vcf.gz.csi Phase3,3,ALL.chr3.phase3_shapeit2_mvncall_integrated_v5a.20130502.genotypes.vcf.gz,ALL.chr3.phase3_shapeit2_mvncall_integrated_v5a.20130502.genotypes.vcf.gz.csi

Running the pipeline

Run one of the steps of the pipeline (imputation with glimpse1) using the following command and test profile:

bash nextflow run nf-core/phaseimpute \ -profile test, <docker/singularity/.../institute> \ --outdir <OUTDIR>

[!WARNING] 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.

For more details and further functionality, please refer to the usage documentation and the parameter documentation.

Pipeline output

To see the results of an example test run with a full size dataset refer to the results tab on the nf-core website pipeline page. For more details on the output files and reports, please refer to the output documentation.

Credits

nf-core/phaseimpute was originally written by Louis Le Nézet & Anabella Trigila.

We thank the following people for their extensive assistance in the development of this pipeline:

  • Saul Pierotti
  • Eugenia Fontecha
  • Matias Romero Victorica
  • Hemanoel Passarelli

Contributions and Support

If you would like to contribute to this pipeline, please see the contributing guidelines. Further development tips can be found in the development documentation.

For further information or help, don't hesitate to get in touch on the Slack #phaseimpute channel (you can join with this invite).

Citations

If you use nf-core/phaseimpute for your analysis, please cite it using the following doi: 10.5281/zenodo.14329225

An extensive list of references for the tools used by the pipeline, including QUILT, GLIMPSE, and STITCH, can be found in the CITATIONS.md file.

You can cite the nf-core publication as follows:

The nf-core framework for community-curated bioinformatics pipelines.

Philip Ewels, Alexander Peltzer, Sven Fillinger, Harshil Patel, Johannes Alneberg, Andreas Wilm, Maxime Ulysse Garcia, Paolo Di Tommaso & Sven Nahnsen.

Nat Biotechnol. 2020 Feb 13. doi: 10.1038/s41587-020-0439-x.

Owner

  • Name: nf-core
  • Login: nf-core
  • Kind: organization
  • Email: core@nf-co.re

A community effort to collect a curated set of analysis pipelines built using Nextflow.

Citation (CITATIONS.md)

# nf-core/phaseimpute: Citations

## [nf-core](https://pubmed.ncbi.nlm.nih.gov/32055031/)

> Ewels PA, Peltzer A, Fillinger S, Patel H, Alneberg J, Wilm A, Garcia MU, Di Tommaso P, Nahnsen S. The nf-core framework for community-curated bioinformatics pipelines. Nat Biotechnol. 2020 Mar;38(3):276-278. doi: 10.1038/s41587-020-0439-x. PubMed PMID: 32055031.

## [Nextflow](https://pubmed.ncbi.nlm.nih.gov/28398311/)

> Di Tommaso P, Chatzou M, Floden EW, Barja PP, Palumbo E, Notredame C. Nextflow enables reproducible computational workflows. Nat Biotechnol. 2017 Apr 11;35(4):316-319. doi: 10.1038/nbt.3820. PubMed PMID: 28398311.

## Pipeline tools

- [bcftools](https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3198575/)

> Li, H. (2011). A statistical framework for SNP calling, mutation discovery, association mapping and population genetical parameter estimation from sequencing data. Bioinformatics, 27(21), 2987-2993.

- [GLIMPSE](https://www.nature.com/articles/s41588-020-00756-0)

> Rubinacci, S., Ribeiro, D. M., Hofmeister, R. J., & Delaneau, O. (2021). Efficient phasing and imputation of low-coverage sequencing data using large reference panels. Nature Genetics, 53(1), 120-126.

- [GLIMPSE2](https://doi.org/10.1038/s41588-023-01438-3)

> Rubinacci, S., Hofmeister, R. J., Sousa da Mota, B., & Delaneau, O. (2023). Imputation of low-coverage sequencing data from 150,119 UK Biobank genomes. Nature genetics 55, 1088–1090.

- [MultiQC](https://pubmed.ncbi.nlm.nih.gov/27312411/)

> 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.

- [QUILT](https://pubmed.ncbi.nlm.nih.gov/34083788/)

> Davies, R. W., Kucka, M., Su, D., Shi, S., Flanagan, M., Cunniff, C. M., ... & Myers, S. (2021). Rapid genotype imputation from sequence with reference panels. Nature genetics, 53(7), 1104-1111.

- [Shapeit](https://doi.org/10.1038/s41588-023-01415-w)

> Hofmeister RJ, Ribeiro DM, Rubinacci S., Delaneau O. (2023). Accurate rare variant phasing of whole-genome and whole-exome sequencing data in the UK Biobank. Nature Genetics doi: https://doi.org/10.1038/s41588-023-01415-w

- [STITCH](https://doi.org/10.1038/ng.3594)

> Davies, R. W., Flint, J., Myers, S., & Mott, R. (2016). Rapid genotype imputation from sequence without reference panels. Nature genetics 48, 965–969.

## Software packaging/containerisation tools

- [Anaconda](https://anaconda.com)

> Anaconda Software Distribution. Computer software. Vers. 2-2.4.0. Anaconda, Nov. 2016. Web.

- [Bioconda](https://pubmed.ncbi.nlm.nih.gov/29967506/)

> Grüning B, Dale R, Sjödin A, Chapman BA, Rowe J, Tomkins-Tinch CH, Valieris R, Köster J; Bioconda Team. Bioconda: sustainable and comprehensive software distribution for the life sciences. Nat Methods. 2018 Jul;15(7):475-476. doi: 10.1038/s41592-018-0046-7. PubMed PMID: 29967506.

- [BioContainers](https://pubmed.ncbi.nlm.nih.gov/28379341/)

> da Veiga Leprevost F, Grüning B, Aflitos SA, Röst HL, Uszkoreit J, Barsnes H, Vaudel M, Moreno P, Gatto L, Weber J, Bai M, Jimenez RC, Sachsenberg T, Pfeuffer J, Alvarez RV, Griss J, Nesvizhskii AI, Perez-Riverol Y. BioContainers: an open-source and community-driven framework for software standardization. Bioinformatics. 2017 Aug 15;33(16):2580-2582. doi: 10.1093/bioinformatics/btx192. PubMed PMID: 28379341; PubMed Central PMCID: PMC5870671.

- [Docker](https://dl.acm.org/doi/10.5555/2600239.2600241)

> Merkel, D. (2014). Docker: lightweight linux containers for consistent development and deployment. Linux Journal, 2014(239), 2. doi: 10.5555/2600239.2600241.

- [Singularity](https://pubmed.ncbi.nlm.nih.gov/28494014/)

> Kurtzer GM, Sochat V, Bauer MW. Singularity: Scientific containers for mobility of compute. PLoS One. 2017 May 11;12(5):e0177459. doi: 10.1371/journal.pone.0177459. eCollection 2017. PubMed PMID: 28494014; PubMed Central PMCID: PMC5426675.

GitHub Events

Total
  • Create event: 8
  • Release event: 1
  • Issues event: 38
  • Watch event: 8
  • Delete event: 12
  • Issue comment event: 37
  • Push event: 46
  • Pull request review comment event: 253
  • Pull request event: 96
  • Pull request review event: 253
  • Fork event: 3
Last Year
  • Create event: 8
  • Release event: 1
  • Issues event: 38
  • Watch event: 8
  • Delete event: 12
  • Issue comment event: 37
  • Push event: 46
  • Pull request review comment event: 253
  • Pull request event: 96
  • Pull request review event: 253
  • Fork event: 3

Issues and Pull Requests

Last synced: 4 months ago

All Time
  • Total issues: 15
  • Total pull requests: 22
  • Average time to close issues: 4 months
  • Average time to close pull requests: 4 days
  • Total issue authors: 6
  • Total pull request authors: 4
  • Average comments per issue: 0.33
  • Average comments per pull request: 0.14
  • Merged pull requests: 16
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 14
  • Pull requests: 22
  • Average time to close issues: 2 months
  • Average time to close pull requests: 4 days
  • Issue authors: 6
  • Pull request authors: 4
  • Average comments per issue: 0.36
  • Average comments per pull request: 0.14
  • Merged pull requests: 16
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • LouisLeNezet (36)
  • atrigila (31)
  • nitzcovich (2)
  • Lenbok (2)
  • nschcolnicov (1)
  • mrvictorica (1)
  • matthdsm (1)
  • lordkev (1)
  • YanyanLiuBio (1)
  • jen-reeve (1)
  • gichas (1)
Pull Request Authors
  • LouisLeNezet (66)
  • atrigila (22)
  • nf-core-bot (12)
  • gichas (3)
  • mrvictorica (2)
  • hemanoel (2)
  • mirpedrol (1)
  • nschcolnicov (1)
  • mashehu (1)
  • eugeniafontecha (1)
  • maxulysse (1)
Top Labels
Issue Labels
enhancement (38) bug (31) good first issue (2) wontfix (1)
Pull Request Labels
enhancement (38) bug (14) documentation (12) good first issue (1)