Hi monks,
the dilemma that we are having right now is with figuring out how to merge every two columns within the data file. The file is as follows; first column is the ID, and every column after that is a marker, except two markers make a whole, so that is what we want. These are space delimited. The colleague who knows python only suggested a long difficult method of writing out each combination (ie 1+2, 3+4, etc.) and with R it is even more problematic.
3851 A A G G T T ...
3854 A A G G T T ...
The output for the above example would look like this:
3851 AA GG TT ...
3854 AA GG TT ...
Is there a simple Perl script available for this task?