Pyhton script to filter loci from Eigenstrat files (.snp & .geno) keeping the overall structure of the triad
Filter SNPs from Eigenstrat files based on various criteria. Usage: python decimat.py --input_prefix prefix --output_prefix filtered_prefix [options]
python decimat.py -i input_data -o filtered_data -c 1 2 3
python decimat.py -i input_data -o filtered_data -r 1:1000000-2000000
python decimat.py -i input_data -o filtered_data -s keep_snps.txt
python decimat.py -i input_data -o filtered_data -p "^rs[0-9]+$"
python decimat.py -i input_data -o filtered_data -c 1 2 3 -r 1:500000-1500000 -p "rs"