I'm trying to write a loop in awk using the following info from two files:
- a file with chromosome in the first column and site in the second column
- a second file with chromosome in the first column and chromosome size in the second column
The sites in the second column range from the first to the last site of that chromosome, but the next chromosome will have sites starting from 1 again. I need to make all the sites in the first file contiguous so I will need to add the chromosome size to each site for chromosomes greater than 1 to make the sites contiguous in the first file.
Any help is appreciated!