Dear altruists,
I found the below code online to create the bed file from whole genome indexed file. But I don't understand the code. Can anyone help me to crack this code?
awk -v FS="\t" -v OFS="\t" '{print $1 FS "0" FS ($2-1)}' GRCh38.primary_assembly.genome.fa.fai > GRCh38.primary_assembly.genome.bed