I have a file containing information as follows:
id allele1 allele2
1 A A
2 T A
3 A A
. ...
. ...
. ...
I would like to parse the file into a struct array containing three fields (id, allele1, allele2) where id are all the numbers from 1 up to n, allele1 is the first column of characters and allele2 is the second column.
I however have trouble figuring out how to go about doing this.