Closed napobo3 closed 7 years ago
In line 102 of extract23.sh I'm using the sed streaming editor
sed 's/M/MT/' | \
to change chromosome "M" to "MT" which is the expected format for the mtDNA at 23andMe. This works fine if you only have rs and i names in the file. However if you have a Y chromosome marker name with M (like M267) the sed editor doesn't know the difference.
We could be slightly more specific and exactly define that the marker position is not at the first column of each line by checking if it is prepended with a tab character and followed by a tab character. This could be done with a regex like
sed 's/\tM\t/\tMT\t/g' | \
I didn't test this in the script since I don't have M markers, but replacing this line should work for your case.
As I said in the instructions, the formatting is very simplistic. Let me know if you still have issues.
Thank you. Now it works fine. May I suggest to include this fix to the script ?
Not a software issue, but maybe you know what am I doing wrong here. The ref file has one line :
Running the script :
Why it's MT267 and not M267 ?