Entering edit mode
4.3 years ago
cetin.m
▴
50
I have a set of files, with the names yripublished.bed, yripublished.bim, yripublished.fam
I got the frequencies of SNPs in these files with the following command:
/usr/local/sw/plink-1.90/plink --bfile yripublished --bed yripublished.bed --freq
This gives an output, where each SNP is defined by its rs ID. I need positions, not rs IDs. How can I accomplish that?
Map file for SNPs (something like
yripublished.bim
) would have the positions already?Yes I see the positions there. But I don't know how to replace the rs IDs with them.
bim file and the output of
--freq
file match row by row, so just usepaste
:.bim files don’t have a header line, while the —freq output file does, so a bit more scripting would be required.