Entering edit mode
6.6 years ago
bha
▴
80
I pruned the 1000G data with MAF, and some LD filtering. I wonder there are some snps with names as "." (snps indentifiers are as "." dot). Any suggestion how i should remove or pull out that ones?
Use bcftools. There are two ways (copy/pasted from bcftools manual):
Example:
.
Example :
How i can remove these IDs (".") from the the datasets?
are these datasets in VCF format? if not, please post example dataset/records here.
yes, these are in VCF format.
Like cpad0112 said, use
bcftools
.bcftools view
can be used to subset data when the output is redirected to a file.replace test. vcf with your dataset.vcf
example code: