meerpipe
nf-core/meerpipe is a astronomy pipeline that processes MeerKAT pulsar data to produce images and data products for pulsar timing analysis
Science Score: 57.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
Found .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.1%) to scientific vocabulary
Keywords
Repository
nf-core/meerpipe is a astronomy pipeline that processes MeerKAT pulsar data to produce images and data products for pulsar timing analysis
Basic Info
- Host: GitHub
- Owner: nf-core
- License: mit
- Language: Nextflow
- Default Branch: dev
- Homepage: https://nf-co.re/meerpipe
- Size: 2.93 MB
Statistics
- Stars: 10
- Watchers: 188
- Forks: 6
- Open Issues: 5
- Releases: 0
Topics
Metadata Files
README.md
Introduction
nf-core/meerpipe is a astronomy pipeline that processes MeerKAT pulsar data to produce images and data products for pulsar timing analysis as part of the MeerTime project (Bailes et al. 2020). The images and results are uploaded to the Meertime data portal where the observation quality can be checked before downloading the results and pulse Time of Arrivals (ToA) using psrdb.
The pipeline is described by the following flow diagram and bullet points:

- OBS_LIST: Queries the MeerTime database for observations that match the input filters (described in the usage section), download their metadata and find the corresponding ephemerides and template files from the private repository.
- PSRADDCALIBRATECLEAN: Prepares a cleaned and calibrated archive in the following steps:
- Combine the raw archives, except for the first and last ~8 second subint, and clean them of RFI with MeerGuard
- Combine the cleaned chunks into a single file and calibrate the polarisation with pac using the Jones matrices provided by the South African Radio Astronomy Observatory (SARAO) (Serylak et al. 2020)
- Apply the rotation measure from the ATNF and apply it with pam
- Correct for delays using dlyfix
- Calibrate for the flux (adjust the archive values so they are in flux units) using fluxcal_meerkat. Meerpipe uses a bootstrap method to flux calibrate the data. Using the sky map in Calabretta et al. (2014), an initial estimate of the Tsky is computed. However owing to the large disparity in the sky map as comparted to the more resolved MeerKAT beam, a secondary estimate of Tsky is performed directly from the data. This was done by observing a high-latitude pulsar and comparing its RMS with other pulsars observed in that session. This allowed an estimate of a scaling factor used to flux calibrate the data. A detailed description of this method can be found in the TPA census paper.
- Calculate the signal-to-noise ratio (S/N) using psrstat
- Calculate the flux density using pdv
- DMRMCALC: Calculate the dispersion measure (DM) and rotation measure (RM).
- For observations with a S/N over 20:
- For observations with a S/N under 20:
- The DM is calculated with pdmp
- The RM is not calculated.
- No template available for the observations or other methods have failed:
- The DM and RM are not calculated.
- GENERATEIMAGERESULTS: Generate the images (described in the output section) and combine results into a
results.jsonfile:- Generate the images using psrplot
- Generate additional images that require Python using generateimageresults which includes dynamic spectrum images created using scintools
- Combine the results into a
results.jsonfile
- UPLOADIMAGERESULTS: Upload the images and
results.jsonto the Meertime data portal - GRABALLPAIRS: Grab all pairs of ephemerides and template files from the private repository for each pulsar and project. These will be used to create different ToAs for each project.
- DECIMATE: Remove the edge frequency channels with chopedgechannels then decimate the archives with pam for each of the combinations of the following params:
nchan: Number of frequency channels, default [1, 16, 29, 58, 116, 928]npol: Polarisation scrunched (1) and full stokes (4), default [1, 4]- nsub (controlled with
use_max_nsub): Number of time subintegrations. A time scrunched (1) and the largest value of nsub possible while maintaining sensitive ToAs (calculated with calcmaxnsub), default [1, max]
- GENERATE_TOAS: Generate ToAs for each combination projects and decimated archives with nchan < 32 using pat
- UPLOAD_TOAS: Upload the ToAs to the Meertime data portal
- GENERATE_RESIDUALS: Once all the UPLOAD_TOA jobs are complete, one of these process will be launched for each pulsar and project. It will download all the ToAs (including those from previous pipeline runs) and generate residuals for each combination of projects and decimated archives using tempo2. These residuals will be uploaded to the Meertime data portal to allow researchers to interactively check the quality of the observations.
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 testbefore running the workflow on actual data.
Now, you can run the pipeline using:
bash
nextflow run nf-core/meerpipe \
-profile <docker/singularity/.../institute> \
--outdir <OUTDIR> \
--pulsar J1410-7404 \
--utcs 2020-09-05-10:00:47 \
--utce 2020-09-05-10:00:47
[!WARNING] Please provide pipeline parameters via the CLI or Nextflow
-params-fileoption. Custom config files including those provided by the-cNextflow 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 about the output files and reports, please refer to the output documentation.
Credits
nf-core/meerpipe was originally written by Nick Swainston.
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.
For further information or help, don't hesitate to get in touch on the Slack #meerpipe channel (you can join with this invite).
Citations
An extensive list of references for the tools used by the pipeline 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
- Website: http://nf-co.re
- Twitter: nf_core
- Repositories: 84
- Profile: https://github.com/nf-core
A community effort to collect a curated set of analysis pipelines built using Nextflow.
Citation (CITATIONS.md)
# nf-core/meerpipe: 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 - [FastQC](https://www.bioinformatics.babraham.ac.uk/projects/fastqc/) > Andrews, S. (2010). FastQC: A Quality Control Tool for High Throughput Sequence Data [Online]. - [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. ## 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
- Issues event: 1
- Watch event: 4
- Member event: 1
- Issue comment event: 11
- Push event: 44
- Pull request review comment event: 6
- Pull request review event: 9
- Pull request event: 16
- Fork event: 3
- Create event: 2
Last Year
- Issues event: 1
- Watch event: 4
- Member event: 1
- Issue comment event: 11
- Push event: 44
- Pull request review comment event: 6
- Pull request review event: 9
- Pull request event: 16
- Fork event: 3
- Create event: 2
Issues and Pull Requests
Last synced: 10 months ago
All Time
- Total issues: 1
- Total pull requests: 9
- Average time to close issues: N/A
- Average time to close pull requests: 28 days
- Total issue authors: 1
- Total pull request authors: 3
- Average comments per issue: 0.0
- Average comments per pull request: 1.0
- Merged pull requests: 3
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 1
- Pull requests: 9
- Average time to close issues: N/A
- Average time to close pull requests: 28 days
- Issue authors: 1
- Pull request authors: 3
- Average comments per issue: 0.0
- Average comments per pull request: 1.0
- Merged pull requests: 3
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- emmacarli (1)
Pull Request Authors
- nf-core-bot (8)
- emmacarli (4)
- HendrikGC02 (2)