Nextflow script to check the coverage of ont reads.
- Takes a read.fastq.gz file and a assembled genome assembly.fa file.
- It uses minimap2 to align the reads to the assembled genome. This outputs a SAM file with the alignment.
- This alignment is then sorted using samtools, and a sorted BAM file is produced.
- From this the 'samtools depth' command is used to calculate the 'average read depth' and 'standard deviation' of this alignment.
./nextflow code/2023_projects/iron_coverage/scripts/ont_coverage_calc.nf --gen_file <fasta file location> --reads_file <compressed reads file location> --output_fld <results file output folder> -resume