Hi!
I am having a spot of trouble with file conversion. I am trying to test for multiple correction using SNPSpD (http://gump.qimr.edu.au/general/daleN/SNPSpD/). I have my files in a normal plink ped and map format.
The ped file has 6 columns, and then the alleles. I've opened the ped file in excel, removed the sixth column, and then saved it as a pre file.
For the map file, the plink format has 4 columns. The merlin format has 3 columns. In the plink format, I've changed the first column to make it the marker id, left the second column as it is and then added pseudo marker-positions in the 3rd column and deleted the fourth column.
I tried loading it in SNPSpD, but it doesn't seem to like my file and isn't giving me any results. Does anyone know what is going on and what I am doing wrong?
Thanks!
You might want to check out Difference Between .Pre And .Ped File (Problems With Snpspd.
Hi Matt!
The map format expected by SNPSpD is a bit different from the Merlin format. It's given here: http://gump.qimr.edu.au/general/daleN/SNPSpD/moffatt.map. I have the same format, with the ID, name and position - albeit it is pseudo-position. I tried it with the standard merlin format - i.e. with chromosome instead of marker position, but it still doesn't work.
I'm sorry to hear that. Have you checked to make sure that you are using the correct whitespace, and that you have the correct "new line" characters? The file you linked to has "newline" characters, and not "carriage returns", but also has lots of duplicate whitespace (tabs and spaces). Here's what it looks like with the tabs (
^I
) and newlines ($
):Since it seems the program is just splitting on whitespace (assuming this is a valid file), you should make sure you have proper newline characters. If you are editing your file in Windows you may have some issue.
Hi Matt!
Thanks very much for your response. It turned out, as I suspected, to be a rather silly error - I had missed adding the column titles to my MAP file! I had to, rather unfortunately, email the creator of the programme to find out.
Cheers!
Hi you all!
I am also trying to convert my plink files to merlin. But I do not have the marker position in centimorgans. I do have the basepair position. Anybody know how to get mega2 to accept those instead?
Or, can you make a genetic map in centimorgans from basepair positions?
Further, I used .map and .ped files
My .ped file has 4 columns:
Do I need to make that a 3 column file? Idealy yes I guess, but would mega2 take basepair instead of centimorgans?
If you can help, please do, it is much appreciated since I am just starting out ;)
Thanks!
Arija