https://github.com/cdcgov/nf-nest
Science Score: 10.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
○codemeta.json file
-
○.zenodo.json file
-
○DOI references
-
✓Academic publication links
Links to: pubmed.ncbi, ncbi.nlm.nih.gov -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (12.0%) to scientific vocabulary
Last synced: 10 months ago
·
JSON representation
Repository
Basic Info
- Host: GitHub
- Owner: CDCgov
- Language: HTML
- Default Branch: main
- Size: 822 MB
Statistics
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
- Releases: 0
Fork of supark87/Nf-NeST
Created almost 5 years ago
· Last pushed 12 months ago
https://github.com/CDCgov/Nf-NeST/blob/main/
# Nextflow Next-generation Sequence-analysis Toolkit (Nf-NeST) : A standardized bioinformatics framework for analyzing SNPs in next-generation sequencing data Org: NCEZID Version: 1 Status: Maintained Keywords: malaria, drug resistance, surveillance, automation, visualization, genotyping, AMD Labor Hours: 1000 Contact: ncezid_shareit@cdc.gov This Nf-NeST is a nextflow-Docker version of Next-generation Sequence-analysis Toolkit (NeST) with improved snpfilter function : A standardized bioinformatics framework for analyzing SNPs in next-generation sequencing data 1. [Overview of NeST framework](#Overview) 2. [Prerequisites](#Prerequisites) 3. [Availability of code and installation](#Installation) 4. [Your first analysis](#First) 5. [Input standardization](#inputs) 6. [Output Description](#outputs) 7. [Post analysis for pooled and individual sequenced samples](#postanalysis) 8. [Update Docker file](#dockerupdate) 9. [Chat with Gitter](#gitter) ## Overview of the NeST framework: NeST is a python based modular framework for consensus based variant calling. The overall analysis framework is broken down into four major blocks. 1. PrepInputs 2. Align reads and variant calling 3. SNPfiltering 4. Summarize report with json/PowerBI input NeST is used to identify mutations that confer anti-malarial drug resistance in *P.falciparum* [Talundzic et al., 2018](https://pubmed.ncbi.nlm.nih.gov/29439965/). ## Prerequisites - MAC - Download Docker Desktop here https://www.docker.com/get-started - Ubuntu - https://docs.docker.com/engine/install/ubuntu/ - If you use CDC scicomp environment, please follow this instruction (You can check this website with VPN or Citgo) to have access to SCB - https://info.biotech.cdc.gov/info/getting-started-with-scbs/ ## Availability of code and installation: 1. Download git repository: Clone the master branch of this repository. ``` git clone https://github.com/CDCgov/Nf-NeST.git ``` 2. Installation: - Docker Nf-NeST comes with a Doker image that can be run pipeline with virtual environment. To setup up Docker image, run the following command from the Nf-NeST directory. ``` cd Nf-NeST docker pull supark87/nfnest:ver03 ``` - Singularity (in biolinux or aspen) ``` module load singularity/3.5.3 cd Nf-NeST singularity pull docker://supark87/nfnest_singularity ``` 3. Input raw sequences name Paired reads should be separated including 'R1' and 'R2' in sequence name. ## Running on scicomp - Use singularity (scicomp) ``` module load singularity/3.5.3 singularity run -B $(pwd)/testrun:/data/testrun,$(pwd)/pyscripts:/data/pyscripts nfnest_singularity_latest.sif nextflow run /data/nfNeST_singularity.nf -c /data/testrun/nextflow1.config -with-report /data/testrun/test_output.html ``` ## Running your own analysis using Nf-NeST: Copy your inputs under the folder `inputfiles`. By default, configuration file for this folder is in here as `nextflow.config` Nf-NeST can be executed on your own dataset using the following command: ``` docker run -v $(pwd)/inputfiles:/data/inputfiles -v $(pwd)/pyscripts:/data/pyscripts -ti supark87/nfnest:latest ./nextflow run nfNeST_ver03.nf\ -c ./inputfiles/nextflow.config -with-report ./inputfiles/output/output.html ``` Example using the Angola dataset: ``` docker run -v $(pwd)/angola/:/data/angola/ -v $(pwd)/ref:/data/ref/ -v $(pwd)/pyscripts:/data/pyscripts -v $(pwd)/nfNeST_ver03.nf:/data/nfNeST_ver03.nf supark87/nfnest:ver03 nextflow run nfNeST_ver03.nf -c ./angola/nextflow.config ``` The details about the required input formats are listed in the next section. ## Input standardization: NeST is designed to reduce the amount of user intervention with regards to inputs that the user needs to provide. However, to enable standardization of inputs across all organisms we require that a particular file format be followed for the three inputs listed below: 1. Fastq files: The PrepInputs module in NeST highly simplifies the management of fastq files. The module accepts two input formats. - Input directory path: This just requires the user to provide the path to a folder containing fastq files. The files are recognized by the file extension, so the files must have either ```fq```, ```fq.gz```, ```fastq``` or ```fastq.gz``` file extensions. The name convention of paired file can be ```_R1```. 2. BED format: The BED (Browser Extensible Data) is an easy and lightweight format to list annotations for a genome. NeST uses a full BED or BED 12 column format file as a guide to annotate variants with codon and amino acid changes. The example file listed below shows the details of how to structure the BED file. The separation of contig, gene and exon level information makes this format highly portable across genomes. The BED 12 column format for most organisms can be export from the [UCSC table browser](https://genome.ucsc.edu/cgi-bin/hgTables). A detail explanation of the BED format can be found [here](https://genome.ucsc.edu/FAQ/FAQformat.html#format1) ``` #contig start stop gene score strand CDSstart CDSstop rbg NoOfExons ExonLengths ExonStarts PfCRT 1 3399 PfCRT . + 95 3191 0 13 90,268,172,132,71,75,82,50,56,92,44,54,76,96,364,812,1157,1443,1638,1810,2020,2208,2413,2699,2891,3115, MT 1 5967 COXIII . - 734 1573 0 1 839, 734, MT 1 5967 COL . + 1933 3471 0 1 1538, 1933, MT 1 5967 CYTOb . + 3492 4622 0 1 1130, 3492, PfDHFR 1 1827 PfDHFR . + 1 1827 0 1 1827,1, PfDHPS 1 2417 PfDHPS . + 1 2417 0 3 135,1868,115,1,313,2302, PfK13 1 2181 PfK13 . + 1 2181 0 1 2181,1, PfMDR1 1 4260 PfMDR1 . + 1 4260 0 1 4260,1, ``` 3. Variant of Interest: The Summarize module within NeST, allows for easy summarization of variants called from all samples in a study. If a user specifies a list of variants of interest, a separate table will be created for these set of variants. The variants can be specified in ```.tsv```, ```.csv```, ```.xlsx``` format. And follows the format listed below | Chrom | Gene | RefAA | AAPos | AltAA | |:------:|:------:|:-----:|:-----:|:-----:| | PfCRT | PfCRT | C | 72 | S | | PfCRT | PfCRT | V | 73 | V | | PfMDR1 | PfMDR1 | N | 86 | Y | | PfMDR1 | PfMDR1 | Y | 184 | F | | MT | CYTOb | I | 258 | M | ## Output Description Output file folder will be created under the user specifed `/inputfiles/`. Using the `angola` dataset as an example. After the run, the `angola` input directory will have the analysis `outputs`. Output tables will be found in `/angola/output/visualization/`. SNP information for each sample will be found in `/angola/output/snpfilter` 1. Report files: Nf-NeST produces table reports that summarize the different types of variants found in the sample. All the tables will be stored under the output directory. The table below describes the different files that are generated by Nf-NeST. | File | Description | |:------------------------------------------|:----------------------------------------------------------------------------------------------------------------------------------------------------------| | summary.csv | This file contains the calls for each of the variants of interst, for each of the samples. It provides, allele frequency, mutation type, and amino acid sequence at the position of interest | | result_table.csv | This file will be fed into PowerBI tool as inputfile for interactive visualization | | files under output/combined_json | JSON file with sample meta information and variant calls for the all samples in the study | | output_report*.html | This file would be created in output directory. You can see whole monitoring process there with failed jobs with time, cpu, and failed reports as needed. | 2. PowerBI reports Nf-NeST produces PowerBI input files that would be fed into PowerBI interactive visualization tool. - Currently under development ## Post analysis to calculate weighted AF, combine molecular classification information 1. `mkdir postanalysis` 2. Under postananalysis folder, copy PowerBI_input.csv from pooled run and Power_BI_input.csv from individual sequencing run 3. Under postananalysis folder, copy molecular classification file and pool information(name, poolsize) documents 4. Run this command line `python post_analysis_pool.py python post_analysis_pool.py -indi-pool -rr -poolinfo ` ## Updating Docker 1. Modify `Dockerfile` 2. `docker build .` 3. `docker images` - Copy the latest imageID 4. `docker tag / ` 5. `docker push / ` ## Chat on Gitter [](https://gitter.im/nf-NeST/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
Owner
- Name: Centers for Disease Control and Prevention
- Login: CDCgov
- Kind: organization
- Email: data@cdc.gov
- Location: Atlanta, GA
- Website: http://open.cdc.gov/
- Twitter: CDCgov
- Repositories: 114
- Profile: https://github.com/CDCgov
CDC's collaborative software projects to protect America from health, safety, and security threats, both foreign and in the U.S.
GitHub Events
Total
- Push event: 1
- Fork event: 2
Last Year
- Push event: 1
- Fork event: 2