To run QC only, add the –qc_only parameter
nextflow run main.nf \ -profile sge,apptainer \ --inputdir path/input_directory_fastq \ --outputdir path/output_directory \ --qc_only true