Skip to content

Running PHoeNIx

Jill V. Hagey, PhD edited this page Jun 14, 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 already, 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/custom> --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 must be a comma-separated file (csv) with at least 3 columns and a header row, as shown in the example 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

You can change the name of the samplesheet.csv above to anything you want.

Outputs

The output of PHoeNIx is structured like the following:

πŸ“¦results
┣ πŸ“‚SRR13183128
┃ ┣ πŸ“‚ANI
┃ ┃ ┣ πŸ“‚fastANI
┃ ┃ ┃ β”— πŸ“œSRR13183128.fastANI.txt
┃ ┃ ┣ πŸ“‚mash_dist
┃ ┃ ┃ ┣ πŸ“œSRR13183128.txt
┃ ┃ ┃ β”— πŸ“œSRR13183128_best_MASH_hits.txt
┃ ┃ β”— πŸ“œSRR13183128.ani.txt
┃ ┣ πŸ“‚Assembly
┃ ┃ ┣ πŸ“œSRR13183128.assembly.gfa.gz
┃ ┃ ┣ πŸ“œSRR13183128.bbmap_filtered.log
┃ ┃ ┣ πŸ“œSRR13183128.contigs.fa.gz
┃ ┃ ┣ πŸ“œSRR13183128.filtered.scaffolds.fa.gz
┃ ┃ ┣ πŸ“œSRR13183128.scaffolds.fa.gz
┃ ┃ ┣ πŸ“œSRR13183128.spades.log
┃ ┃ β”— πŸ“œwarnings.log
┃ ┣ πŸ“‚BUSCO
┃ ┃ ┣ πŸ“œSRR13183128-auto-busco.batch_summary.txt
┃ ┃ ┣ πŸ“œshort_summary.generic.bacteria_odb10.SRR13183128.scaffolds.fa.json
┃ ┃ ┣ πŸ“œshort_summary.generic.bacteria_odb10.SRR13183128.scaffolds.fa.txt
┃ ┃ ┣ πŸ“œshort_summary.specific.enterobacterales_odb10.SRR13183128.scaffolds.fa.json
┃ ┃ β”— πŸ“œshort_summary.specific.enterobacterales_odb10.SRR13183128.scaffolds.fa.txt
┃ ┣ πŸ“‚fastp_singles
┃ ┃ ┣ πŸ“œSRR13183128_singles.fastp.html
┃ ┃ β”— πŸ“œSRR13183128_singles.fastp.json
┃ ┣ πŸ“‚fastp_trimd
┃ ┃ ┣ πŸ“œSRR13183128.fastp.html
┃ ┃ ┣ πŸ“œSRR13183128.fastp.json
┃ ┃ ┣ πŸ“œSRR13183128_1.fail.fastq.gz
┃ ┃ ┣ πŸ“œSRR13183128_1.trim.fastq.gz
┃ ┃ ┣ πŸ“œSRR13183128_2.fail.fastq.gz
┃ ┃ ┣ πŸ“œSRR13183128_2.trim.fastq.gz
┃ ┃ ┣ πŸ“œSRR13183128_raw_read_counts.txt
┃ ┃ β”— πŸ“œSRR13183128_trimmed_read_counts.txt
┃ ┣ πŸ“‚fastqc_stats
┃ ┃ ┣ πŸ“œSRR13183128_1_fastqc.html
┃ ┃ ┣ πŸ“œSRR13183128_1_fastqc.zip
┃ ┃ ┣ πŸ“œSRR13183128_2_fastqc.html
┃ ┃ β”— πŸ“œSRR13183128_2_fastqc.zip
┃ ┣ πŸ“‚gamma_ar
┃ ┃ ┣ πŸ“œSRR13183128_ResGANNCBI_20210507_srst2.gamma
┃ ┃ β”— πŸ“œSRR13183128_ResGANNCBI_20210507_srst2.psl
┃ ┣ πŸ“‚gamma_hv
┃ ┃ ┣ πŸ“œSRR13183128_Hyper_Virulence_20220414.gamma
┃ ┃ β”— πŸ“œSRR13183128_Hyper_Virulence_20220414.psl
┃ ┣ πŸ“‚gamma_pf
┃ ┃ ┣ πŸ“œSRR13183128_PF-Replicons_20220414.gamma
┃ ┃ β”— πŸ“œSRR13183128_PF-Replicons_20220414.psl
┃ ┣ πŸ“‚kraken2_asmbld
┃ ┃ ┣ πŸ“‚krona
┃ ┃ ┃ β”— πŸ“œSRR13183128_asmbld.html
┃ ┃ ┣ πŸ“œSRR13183128.classified.fastq.gz
┃ ┃ ┣ πŸ“œSRR13183128.kraken2_asmbld.classifiedreads.txt
┃ ┃ ┣ πŸ“œSRR13183128.kraken2_asmbld.report.txt
┃ ┃ ┣ πŸ“œSRR13183128.mpa
┃ ┃ β”— πŸ“œSRR13183128.unclassified.fastq.gz
┃ ┣ πŸ“‚kraken2_asmbld_weighted
┃ ┃ ┣ πŸ“‚krona
┃ ┃ ┃ β”— πŸ“œSRR13183128_wtasmbld.html
┃ ┃ ┣ πŸ“œSRR13183128.summary.txt
┃ ┃ β”— πŸ“œSRR13183128_weighted_report.txt
┃ ┣ πŸ“‚kraken2_trimd
┃ ┃ ┣ πŸ“‚krona
┃ ┃ ┃ β”— πŸ“œSRR13183128_trimd.html
┃ ┃ ┣ πŸ“œSRR13183128.classified_1.fastq.gz
┃ ┃ ┣ πŸ“œSRR13183128.classified_2.fastq.gz
┃ ┃ ┣ πŸ“œSRR13183128.kraken2_trimd.classifiedreads.txt
┃ ┃ ┣ πŸ“œSRR13183128.kraken2_trimd.report.txt
┃ ┃ ┣ πŸ“œSRR13183128.mpa
┃ ┃ ┣ πŸ“œSRR13183128.unclassified_1.fastq.gz
┃ ┃ β”— πŸ“œSRR13183128.unclassified_2.fastq.gz
┃ ┣ πŸ“‚mlst
┃ ┃ β”— πŸ“œSRR13183128.tsv
┃ ┣ πŸ“‚quast
┃ ┃ β”— πŸ“œSRR13183128_report.tsv
┃ ┣ πŸ“‚removedAdapters
┃ ┃ β”— πŸ“œSRR13183128.bbduk.log
┃ ┣ πŸ“‚srst2
┃ ┃ ┣ πŸ“œ1160__qnrB2__qnrB2_NG_050480.1__06200__quinolone__NCBI.SRR13183128__SRR13183128.ResGANNCBI_20210507_srst2.pileup
┃ ┃ ┣ πŸ“œ1210__catA2__catA2_NG_047596.1__00164__phenicol__NCBI.SRR13183128__SRR13183128.ResGANNCBI_20210507_srst2.pileup
┃ ┃ ┣ πŸ“œ1263__aac(6')__aac(6')-IIc_NG_047273.1__04893__aminoglycoside__NCBI.SRR13183128__SRR13183128.ResGANNCBI_20210507_srst2.pileup
┃ ┃ ┣ πŸ“œ1491__arr__arr-269927220_NG_047480.1__03781__rifamycin__NCBI.SRR13183128__SRR13183128.ResGANNCBI_20210507_srst2.pileup
┃ ┃ ┣ πŸ“œ1518__ble__ble-MBL_NG_047559.1__05909__bleomycin__NCBI.SRR13183128__SRR13183128.ResGANNCBI_20210507_srst2.pileup
┃ ┃ ┣ πŸ“œ1519__qacEdelta1__qacEdelta1_NG_048042.1__05908__quaternary__NCBI.SRR13183128__SRR13183128.ResGANNCBI_20210507_srst2.pileup
┃ ┃ ┣ πŸ“œ192__ere(A)__ere(A)_NG_047763.1__03540__macrolide__NCBI.SRR13183128__SRR13183128.ResGANNCBI_20210507_srst2.pileup
┃ ┃ ┣ πŸ“œ214__ere(A)__ere(A)_NG_047764.1__03063__macrolide__NCBI.SRR13183128__SRR13183128.ResGANNCBI_20210507_srst2.pileup
┃ ┃ ┣ πŸ“œ345__blaACT__blaACT-7_NG_048630.1__00052__beta-lactam__NCBI.SRR13183128__SRR13183128.ResGANNCBI_20210507_srst2.pileup
┃ ┃ ┣ πŸ“œ356__blaACT__blaACT-56_NG_061415.1__05940__beta-lactam__NCBI.SRR13183128__SRR13183128.ResGANNCBI_20210507_srst2.pileup
┃ ┃ ┣ πŸ“œ595__blaSHV__blaSHV-39_AY150585__04999__Beta-Lactamase__ARGANNOT.SRR13183128__SRR13183128.ResGANNCBI_20210507_srst2.pileup
┃ ┃ ┣ πŸ“œ664__sul1__sul1_NG_048082.1__04214__sulfonamide__NCBI.SRR13183128__SRR13183128.ResGANNCBI_20210507_srst2.pileup
┃ ┃ ┣ πŸ“œ688__blaSHV__blaSHV-12_NG_050590.1__00491__beta-lactam__NCBI.SRR13183128__SRR13183128.ResGANNCBI_20210507_srst2.pileup
┃ ┃ ┣ πŸ“œ767__sul2__sul2_NG_051852.1__04662__sulfonamide__NCBI.SRR13183128__SRR13183128.ResGANNCBI_20210507_srst2.pileup
┃ ┃ ┣ πŸ“œ883__aadA2__aadA2_NG_051846.1__04091__aminoglycoside__NCBI.SRR13183128__SRR13183128.ResGANNCBI_20210507_srst2.pileup
┃ ┃ ┣ πŸ“œ906__aac(3)__aac(3)-IIg_NG_047231.1__03587__aminoglycoside__NCBI.SRR13183128__SRR13183128.ResGANNCBI_20210507_srst2.pileup
┃ ┃ ┣ πŸ“œ96__mcr__mcr-9.1_MK070339.1__00225__colistin__NCBI.SRR13183128__SRR13183128.ResGANNCBI_20210507_srst2.pileup
┃ ┃ ┣ πŸ“œSRR13183128__SRR13183128.ResGANNCBI_20210507_srst2.pileup
┃ ┃ ┣ πŸ“œSRR13183128__SRR13183128.ResGANNCBI_20210507_srst2.sorted.bam
┃ ┃ ┣ πŸ“œSRR13183128__fullgenes__ResGANNCBI_20210507_srst2__results.txt
┃ ┃ β”— πŸ“œSRR13183128__genes__ResGANNCBI_20210507_srst2__results.txt
┃ ┣ πŸ“œSRR13183128.tax
┃ ┣ πŸ“œSRR13183128_Assembly_ratio_20210819.txt
┃ β”— πŸ“œSRR13183128_summaryline.csv
┣ πŸ“‚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-06-13_18-18-01.html
┃ ┣ πŸ“œexecution_timeline_2022-06-13_18-18-01.html
┃ ┣ πŸ“œexecution_trace_2022-06-13_18-18-01.txt
┃ ┣ πŸ“œpipeline_dag_2022-06-13_18-18-01.svg
┃ ┣ πŸ“œsamplesheet.valid.csv
┃ β”— πŸ“œsoftware_versions.yml
β”— πŸ“œPhoenix_Output_Report.tsv

This is the file tree for running one sample.

Running on a High-Performance Computing (HPC) Cluster

To run PHoeNIx 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