How to obtain SNP positions for specific mouse strain using VCF from Sanger Institute ftp server?
1
1
Entering edit mode
5.1 years ago
Ankit ▴ 500

Hi everyone, I would like to get SNP positions of a particular strain of mouse (JF1) from VCF file deposited in ftp server of Sanger Institute. The link of the file is as follows: ftp://ftp-mouse.sanger.ac.uk/REL-1807-SNPs_Indels/mgp.v6.merged.norm.snp.indels.sfiltered.vcf.gz. It would be very helpful if somebody can suggest me a tool or way to do this. Thanks Ankit

SNP VCF MOuse JF1 strain • 2.4k views
ADD COMMENT
3
Entering edit mode
5.1 years ago
wget -q -O - "ftp://ftp-mouse.sanger.ac.uk/REL-1807-SNPs_Indels/mgp.v6.merged.norm.snp.indels.sfiltered.vcf.gz" |\
bcftools view --samples "JF1_MsJ" |\
bcftools query -i 'INFO/AC>0'  -f '%CHROM  %POS\n'
ADD COMMENT
0
Entering edit mode

Hi Pierre, Thanks for the reply. I tried the command but it is giving error:

wget -q -O - "ftp://ftp-mouse.sanger.ac.uk/REL-1807-SNPs_Indels/mgp.v6.merged.norm.snp.indels.sfiltered.vcf.gz" |\
bcftools view --samples "JF1_MsJ" |\
bcftools query -i 'INFO/AC>0'  -f '%CHROM  %POS\n'

view: invalid option -- '-' [main] Unrecognized command. open: No such file or directory

Please help with this. What I am doing wrong? Thanks

ADD REPLY
1
Entering edit mode

check you're using the latest version of bcftools

ADD REPLY
1
Entering edit mode

Hi Pierre. I updated bcftools version. Command worked with that. Thanks

ADD REPLY

Login before adding your answer.

Traffic: 1540 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6