https://github.com/erikrikarddaniel/magmap
Nextflow (nf-core) workflow for mapping reads to large collections of genomes.
https://github.com/erikrikarddaniel/magmap
bbmap metagenomics metatranscriptomics nextflow nf-core
Last synced: 5 months ago
JSON representation
Nextflow (nf-core) workflow for mapping reads to large collections of genomes.
- Host: GitHub
- URL: https://github.com/erikrikarddaniel/magmap
- Owner: erikrikarddaniel
- License: mit
- Created: 2021-04-13T08:41:53.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-01-10T15:41:30.000Z (over 4 years ago)
- Last Synced: 2025-09-05T08:51:28.272Z (9 months ago)
- Topics: bbmap, metagenomics, metatranscriptomics, nextflow, nf-core
- Language: Nextflow
- Homepage:
- Size: 2.26 MB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Citation: CITATIONS.md
Awesome Lists containing this project
README
# 
[](https://github.com/nf-core/magmap/actions?query=workflow%3A%22nf-core+CI%22)
[](https://github.com/nf-core/magmap/actions?query=workflow%3A%22nf-core+linting%22)
[](https://nf-co.re/magmap/results)
[](https://doi.org/10.5281/zenodo.XXXXXXX)
[](https://www.nextflow.io/)
[](https://docs.conda.io/en/latest/)
[](https://www.docker.com/)
[](https://sylabs.io/docs/)
[](https://nfcore.slack.com/channels/magmap)
[](https://twitter.com/nf_core)
[](https://www.youtube.com/c/nf-core)
## Introduction
**nf-core/magmap** is a bioinformatics best-practice analysis pipeline for mapping reads to a (large) collections of genomes.
The pipeline is built using [Nextflow](https://www.nextflow.io), a workflow tool to run tasks across multiple compute infrastructures in a very portable manner. It uses Docker/Singularity containers making installation trivial and results highly reproducible. The [Nextflow DSL2](https://www.nextflow.io/docs/latest/dsl2.html) implementation of this pipeline uses one container per process which makes it much easier to maintain and update software dependencies. Where possible, these processes have been submitted to and installed from [nf-core/modules](https://github.com/nf-core/modules) in order to make them available to all nf-core pipelines, and to everyone within the Nextflow community!
On release, automated continuous integration tests run the pipeline on a full-sized dataset on the AWS cloud infrastructure. This ensures that the pipeline runs on AWS, has sensible resource allocation defaults set to run on real-world datasets, and permits the persistent storage of results to benchmark between pipeline releases and other analysis sources. The results obtained from the full-sized test can be viewed on the [nf-core website](https://nf-co.re/magmap/results).
## Pipeline summary
1. Read QC ([`FastQC`](https://www.bioinformatics.babraham.ac.uk/projects/fastqc/))
2. Present QC for raw reads ([`MultiQC`](http://multiqc.info/))
3. Trim reads ([`Trimmomatic`](https://github.com/usadellab/Trimmomatic))
3. Create a [`BBMap`](https://jgi.doe.gov/data-and-tools/bbtools/bb-tools-user-guide/bbmap-guide/) index for all reference genomes concatenated into one file
4. Map all reads to the index with BBMap
5. Quantify genes ([`featureCounts` from `Subread`](http://subread.sourceforge.net/))
## Quick Start
1. Install [`Nextflow`](https://www.nextflow.io/docs/latest/getstarted.html#installation) (`>=21.04.0`)
2. Install any of [`Docker`](https://docs.docker.com/engine/installation/), [`Singularity`](https://www.sylabs.io/guides/3.0/user-guide/), [`Podman`](https://podman.io/), [`Shifter`](https://nersc.gitlab.io/development/shifter/how-to-use/) or [`Charliecloud`](https://hpc.github.io/charliecloud/) for full pipeline reproducibility _(please only use [`Conda`](https://conda.io/miniconda.html) as a last resort; see [docs](https://nf-co.re/usage/configuration#basic-configuration-profiles))_
3. Download the pipeline and test it on a minimal dataset with a single command:
```console
nextflow run nf-core/magmap -profile test,
```
> * Please check [nf-core/configs](https://github.com/nf-core/configs#documentation) to see if a custom config file to run nf-core pipelines already exists for your Institute. If so, you can simply use `-profile ` in your command. This will enable either `docker` or `singularity` and set the appropriate execution settings for your local compute environment.
> * If you are using `singularity` then the pipeline will auto-detect this and attempt to download the Singularity images directly as opposed to performing a conversion from Docker images. If you are persistently observing issues downloading Singularity images directly due to timeout or network issues then please use the `--singularity_pull_docker_container` parameter to pull and convert the Docker image instead. Alternatively, it is highly recommended to use the [`nf-core download`](https://nf-co.re/tools/#downloading-pipelines-for-offline-use) command to pre-download all of the required containers before running the pipeline and to set the [`NXF_SINGULARITY_CACHEDIR` or `singularity.cacheDir`](https://www.nextflow.io/docs/latest/singularity.html?#singularity-docker-hub) Nextflow options to be able to store and re-use the images from a central location for future pipeline runs.
> * If you are using `conda`, it is highly recommended to use the [`NXF_CONDA_CACHEDIR` or `conda.cacheDir`](https://www.nextflow.io/docs/latest/conda.html) settings to store the environments in a central location for future pipeline runs.
4. Start running your own analysis!
```console
nextflow run nf-core/magmap -profile --input samplesheet.csv --genome GRCh37
```
## Documentation
The nf-core/magmap pipeline comes with documentation about the pipeline [usage](https://nf-co.re/magmap/usage), [parameters](https://nf-co.re/magmap/parameters) and [output](https://nf-co.re/magmap/output).
## Credits
nf-core/magmap was originally written by Daniel, Sonia & Maria.
We thank the following people for their extensive assistance in the development of this pipeline:
## Contributions and Support
If you would like to contribute to this pipeline, please see the [contributing guidelines](.github/CONTRIBUTING.md).
For further information or help, don't hesitate to get in touch on the [Slack `#magmap` channel](https://nfcore.slack.com/channels/magmap) (you can join with [this invite](https://nf-co.re/join/slack)).
## Citations
An extensive list of references for the tools used by the pipeline can be found in the [`CITATIONS.md`](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](https://dx.doi.org/10.1038/s41587-020-0439-x).