Skip to content

Running PHoeNIx

Jill V. Hagey, PhD edited this page Jun 7, 2022 · 108 revisions

You should have already set up your config file to make sure nextflow knows how to run the programs within PHoeNIx . If you haven't please review the config set up portion of the install page.

Inputs

PHoeNIx currently only runs on Illumina paired-end reads. Multiple samples can be run using a samplesheet.csv file

nextflow run CDCgov/phoenix -profile <docker/singularity/conda/institute> --input samplesheet.csv

Samplesheet Input

You will need to create a samplesheet with information about the samples you would like to analyze before running the pipeline. Use the --input parameter to specify its location. It has to be a comma-separated file (csv) with at least 3 columns, and a header row as shown in the examples below. DO NOT HAVE ANY SPACES IN THIS FILE. Do make sure the paths are full paths and not relative. For best results use the automated samplesheet creation scripts described in the automated section below.

--input '[path to samplesheet file]'

Full Samplesheet

The samplesheet can have as many columns as you desire, however, there is a strict requirement for the first 3 columns to match those defined in the table below.

A final samplesheet file consisting of paired-end data may look something like the one below.

sample,fastq_1,fastq_2
SAMPLE_1,AEG588A1_S1_L002_R1_001.fastq.gz,AEG588A1_S1_L002_R2_001.fastq.gz
SAMPLE_2,AEG588A2_S2_L002_R1_001.fastq.gz,AEG588A2_S2_L002_R2_001.fastq.gz
SAMPLE_3,AEG588A3_S3_L002_R1_001.fastq.gz,AEG588A3_S3_L002_R2_001.fastq.gz
Column Description
sample Custom sample name. This entry will be identical for multiple sequencing libraries/runs from the same sample. Spaces in sample names are automatically converted to underscores (_).
fastq_1 Full path to FastQ file for Illumina short reads 1. File has to be gzipped and have the extension ".fastq.gz" or ".fq.gz".
fastq_2 Full path to FastQ file for Illumina short reads 2. File has to be gzipped and have the extension ".fastq.gz" or ".fq.gz".

An example samplesheet has been provided with the pipeline and can be used for testing.

Samplesheet Creation - Automated

A script is available to create a samplesheet from a directory of fastq files. The script will search 1 directory deep and attempt to determine sample id names and pairing/multilane information and will automatically create a samplesheet. Please review the samplesheet for accuracy before using it in the pipeline.

phoenix/bin/create_samplesheet.sh <directory of fastq files> > samplesheet.csv

Outputs

The output of PHoeNIx is structured like the following:

πŸ“¦results
┣ πŸ“‚2021GO-01830
┃ ┣ πŸ“‚ANI
┃ ┃ ┣ πŸ“‚mash_sketch
┃ ┃ ┃ ┣ πŸ“œ2021GO-01830.mash_stats
┃ ┃ ┃ β”— πŸ“œ2021GO-01830.msh
┃ ┃ β”— πŸ“œ2021GO-01830.ani.txt
┃ ┣ πŸ“‚Assembly
┃ ┃ ┣ πŸ“œ2021GO-01830.assembly.gfa.gz
┃ ┃ ┣ πŸ“œ2021GO-01830.contigs.fa.gz
┃ ┃ ┣ πŸ“œ2021GO-01830.scaffolds.fa.gz
┃ ┃ β”— πŸ“œ2021GO-01830.spades.log
┃ ┣ πŸ“‚BUSCO
┃ ┃ ┣ πŸ“œ2021GO-01830-auto-busco.batch_summary.txt
┃ ┃ ┣ πŸ“œshort_summary.generic.bacteria_odb10.2021GO-01830.scaffolds.fa.json
┃ ┃ ┣ πŸ“œshort_summary.generic.bacteria_odb10.2021GO-01830.scaffolds.fa.txt
┃ ┃ ┣ πŸ“œshort_summary.specific.enterobacterales_odb10.2021GO-01830.scaffolds.fa.json
┃ ┃ β”— πŸ“œshort_summary.specific.enterobacterales_odb10.2021GO-01830.scaffolds.fa.txt
┃ ┣ πŸ“‚assemblies500plus
┃ ┃ ┣ πŸ“œ2021GO-01830.formatted.scaffolds.fa.gz
┃ ┃ β”— πŸ“œ2021GO-01830.reformat.log
┃ ┣ πŸ“‚fastp_singles
┃ ┃ ┣ πŸ“œ2021GO-01830.fastp.html
┃ ┃ ┣ πŸ“œ2021GO-01830.fastp.json
┃ ┃ ┣ πŸ“œ2021GO-01830_1.trim.fastq.gz
┃ ┃ β”— πŸ“œ2021GO-01830_2.trim.fastq.gz
┃ ┣ πŸ“‚fastp_trimd
┃ ┃ ┣ πŸ“œ2021GO-01830.fastp.html
┃ ┃ ┣ πŸ“œ2021GO-01830.fastp.json
┃ ┃ ┣ πŸ“œ2021GO-01830.merged.fastq.gz
┃ ┃ ┣ πŸ“œ2021GO-01830_1.fail.fastq.gz
┃ ┃ ┣ πŸ“œ2021GO-01830_1.trim.fastq.gz
┃ ┃ ┣ πŸ“œ2021GO-01830_2.fail.fastq.gz
┃ ┃ β”— πŸ“œ2021GO-01830_2.trim.fastq.gz
┃ ┣ πŸ“‚fastqc_stats
┃ ┃ ┣ πŸ“œ2021GO-01830_1_fastqc.html
┃ ┃ ┣ πŸ“œ2021GO-01830_1_fastqc.zip
┃ ┃ ┣ πŸ“œ2021GO-01830_2_fastqc.html
┃ ┃ β”— πŸ“œ2021GO-01830_2_fastqc.zip
┃ ┣ πŸ“‚gamma_ar
┃ ┃ ┣ πŸ“œ2021GO-01830.gamma
┃ ┃ β”— πŸ“œ2021GO-01830.psl
┃ ┣ πŸ“‚gamma_prep
┃ ┃ β”— πŸ“œ2021GO-01830.formatted.scaffolds.fa
┃ ┣ πŸ“‚gamma_s
┃ ┃ ┣ πŸ“œ2021GO-01830.gamma
┃ ┃ β”— πŸ“œ2021GO-01830.psl
┃ ┣ πŸ“‚hyper_virulence
┃ ┃ ┣ πŸ“œ2021GO-01830.gamma
┃ ┃ β”— πŸ“œ2021GO-01830.psl
┃ ┣ πŸ“‚kraken2_asmbld
┃ ┃ ┣ πŸ“œ2021GO-01830.classified.fastq.gz
┃ ┃ ┣ πŸ“œ2021GO-01830.kraken2.classifiedreads.txt
┃ ┃ ┣ πŸ“œ2021GO-01830.kraken2.report.txt
┃ ┃ β”— πŸ“œ2021GO-01830.unclassified.fastq.gz
┃ ┣ πŸ“‚kraken2_trimd
┃ ┃ ┣ πŸ“œ2021GO-01830.classified_1.fastq.gz
┃ ┃ ┣ πŸ“œ2021GO-01830.classified_2.fastq.gz
┃ ┃ ┣ πŸ“œ2021GO-01830.kraken2.classifiedreads.txt
┃ ┃ ┣ πŸ“œ2021GO-01830.kraken2.report.txt
┃ ┃ ┣ πŸ“œ2021GO-01830.unclassified_1.fastq.gz
┃ ┃ β”— πŸ“œ2021GO-01830.unclassified_2.fastq.gz
┃ ┣ πŸ“‚mlst
┃ ┃ β”— πŸ“œ2021GO-01830.tsv
┃ ┣ πŸ“‚quast
┃ ┃ β”— πŸ“œreport.tsv
┃ ┣ πŸ“‚removedAdapters
┃ ┃ ┣ πŸ“œ2021GO-01830.bbduk.log
┃ ┃ ┣ πŸ“œ2021GO-01830_1.fastq.gz
┃ ┃ β”— πŸ“œ2021GO-01830_2.fastq.gz
┃ β”— πŸ“‚srst2
┃ ┃ ┣ πŸ“œ1085__blaIMP__blaIMP-27_NG_049191.1__03859__beta-lactam__NCBI.2021GO-01830__2021GO-01830.ResGANNCBI_20210507_srst2.pileup
┃ ┃ ┣ πŸ“œ124__sat2_gen__sat2_gen_NG_051936.1__05541__streptothricin__NCBI.2021GO-01830__2021GO-01830.ResGANNCBI_20210507_srst2.pileup
┃ ┃ ┣ πŸ“œ2021GO-01830__2021GO-01830.ResGANNCBI_20210507_srst2.pileup
┃ ┃ ┣ πŸ“œ2021GO-01830__2021GO-01830.ResGANNCBI_20210507_srst2.sorted.bam
┃ ┃ ┣ πŸ“œ2021GO-01830__fullgenes__ResGANNCBI_20210507_srst2__results.txt
┃ ┃ ┣ πŸ“œ2021GO-01830__genes__ResGANNCBI_20210507_srst2__results.txt
┃ ┃ ┣ πŸ“œ238__tet(59)__tet(59)_NG_056044.1__01798__tetracycline__NCBI.2021GO-01830__2021GO-01830.ResGANNCBI_20210507_srst2.pileup
┃ ┃ ┣ πŸ“œ486__aadA1__aadA1_NG_047327.1__03489__aminoglycoside__NCBI.2021GO-01830__2021GO-01830.ResGANNCBI_20210507_srst2.pileup
┃ ┃ ┣ πŸ“œ967__aadA15__aadA15_NG_047338.1__04467__aminoglycoside__NCBI.2021GO-01830__2021GO-01830.ResGANNCBI_20210507_srst2.pileup
┃ ┃ β”— πŸ“œ970__aadA11__aadA11_NG_051873.1__03942__aminoglycoside__NCBI.2021GO-01830__2021GO-01830.ResGANNCBI_20210507_srst2.pileup
┣ πŸ“‚multiqc
┃ ┣ πŸ“‚multiqc_data
┃ ┃ ┣ πŸ“œmqc_fastqc_per_base_n_content_plot_1.txt
┃ ┃ ┣ πŸ“œmqc_fastqc_per_base_sequence_quality_plot_1.txt
┃ ┃ ┣ πŸ“œmqc_fastqc_per_sequence_gc_content_plot_Counts.txt
┃ ┃ ┣ πŸ“œmqc_fastqc_per_sequence_gc_content_plot_Percentages.txt
┃ ┃ ┣ πŸ“œmqc_fastqc_per_sequence_quality_scores_plot_1.txt
┃ ┃ ┣ πŸ“œmqc_fastqc_sequence_counts_plot_1.txt
┃ ┃ ┣ πŸ“œmqc_fastqc_sequence_duplication_levels_plot_1.txt
┃ ┃ ┣ πŸ“œmqc_fastqc_sequence_length_distribution_plot_1.txt
┃ ┃ ┣ πŸ“œmultiqc.log
┃ ┃ ┣ πŸ“œmultiqc_data.json
┃ ┃ ┣ πŸ“œmultiqc_fastqc.txt
┃ ┃ ┣ πŸ“œmultiqc_general_stats.txt
┃ ┃ β”— πŸ“œmultiqc_sources.txt
┃ ┣ πŸ“‚multiqc_plots
┃ ┃ ┣ πŸ“‚pdf
┃ ┃ ┃ ┣ πŸ“œmqc_fastqc_per_base_n_content_plot_1.pdf
┃ ┃ ┃ ┣ πŸ“œmqc_fastqc_per_base_sequence_quality_plot_1.pdf
┃ ┃ ┃ ┣ πŸ“œmqc_fastqc_per_sequence_gc_content_plot_Counts.pdf
┃ ┃ ┃ ┣ πŸ“œmqc_fastqc_per_sequence_gc_content_plot_Percentages.pdf
┃ ┃ ┃ ┣ πŸ“œmqc_fastqc_per_sequence_quality_scores_plot_1.pdf
┃ ┃ ┃ ┣ πŸ“œmqc_fastqc_sequence_counts_plot_1.pdf
┃ ┃ ┃ ┣ πŸ“œmqc_fastqc_sequence_counts_plot_1_pc.pdf
┃ ┃ ┃ ┣ πŸ“œmqc_fastqc_sequence_duplication_levels_plot_1.pdf
┃ ┃ ┃ β”— πŸ“œmqc_fastqc_sequence_length_distribution_plot_1.pdf
┃ ┃ ┣ πŸ“‚png
┃ ┃ ┃ ┣ πŸ“œmqc_fastqc_per_base_n_content_plot_1.png
┃ ┃ ┃ ┣ πŸ“œmqc_fastqc_per_base_sequence_quality_plot_1.png
┃ ┃ ┃ ┣ πŸ“œmqc_fastqc_per_sequence_gc_content_plot_Counts.png
┃ ┃ ┃ ┣ πŸ“œmqc_fastqc_per_sequence_gc_content_plot_Percentages.png
┃ ┃ ┃ ┣ πŸ“œmqc_fastqc_per_sequence_quality_scores_plot_1.png
┃ ┃ ┃ ┣ πŸ“œmqc_fastqc_sequence_counts_plot_1.png
┃ ┃ ┃ ┣ πŸ“œmqc_fastqc_sequence_counts_plot_1_pc.png
┃ ┃ ┃ ┣ πŸ“œmqc_fastqc_sequence_duplication_levels_plot_1.png
┃ ┃ ┃ β”— πŸ“œmqc_fastqc_sequence_length_distribution_plot_1.png
┃ ┃ β”— πŸ“‚svg
┃ ┃ ┃ ┣ πŸ“œmqc_fastqc_per_base_n_content_plot_1.svg
┃ ┃ ┃ ┣ πŸ“œmqc_fastqc_per_base_sequence_quality_plot_1.svg
┃ ┃ ┃ ┣ πŸ“œmqc_fastqc_per_sequence_gc_content_plot_Counts.svg
┃ ┃ ┃ ┣ πŸ“œmqc_fastqc_per_sequence_gc_content_plot_Percentages.svg
┃ ┃ ┃ ┣ πŸ“œmqc_fastqc_per_sequence_quality_scores_plot_1.svg
┃ ┃ ┃ ┣ πŸ“œmqc_fastqc_sequence_counts_plot_1.svg
┃ ┃ ┃ ┣ πŸ“œmqc_fastqc_sequence_counts_plot_1_pc.svg
┃ ┃ ┃ ┣ πŸ“œmqc_fastqc_sequence_duplication_levels_plot_1.svg
┃ ┃ ┃ β”— πŸ“œmqc_fastqc_sequence_length_distribution_plot_1.svg
┃ β”— πŸ“œmultiqc_report.html
β”— πŸ“‚pipeline_info
┃ ┣ πŸ“œexecution_report_2022-05-31_13-00-00.html
┃ ┣ πŸ“œexecution_timeline_2022-05-31_13-00-00.html
┃ ┣ πŸ“œexecution_trace_2022-05-31_13-00-00.txt
┃ ┣ πŸ“œpipeline_dag_2022-05-31_13-00-00.svg
┃ ┣ πŸ“œsamplesheet.valid.csv
┃ β”— πŸ“œsoftware_versions.yml

This is the case for running one sample.

Running on a HPC

To run Q-H on an HPC and submit jobs to a cluster you will need to make config file for your executor. We provide a template in the conf folder to edit. Then run the program by running:

nextflow run CDCgov/phoenix -profile singularity,custom_HPC --input samplesheet.csv

Clone this wiki locally