Extract specific variants from vcf to annotate
0
0
Entering edit mode
17 months ago

Hi

I have a txt file that contains some variants with specific columns

Example from my txt file

chr5    140673  rs12516245  A   G

I want to extract variants that in txt from a large VCF file to a new VCF file. So a new VCF file just contain this variants with the header to annotate a new VCF file in the final step. How can I do this please?

I'm new in bioinformatics, please help me

vcf • 700 views
ADD COMMENT
0
Entering edit mode

Did you Google "extract from VCF" or "subset from VCF"? You may be new to bioinformatics but you must have tried something before posting here.

ADD REPLY
0
Entering edit mode

yes, I try to google it but I didn't find the answer ( I found how to subset samples or region for example ) but I didn't found how to subset like what I really need!

ADD REPLY
0
Entering edit mode

I found how to subset samples or region for example

You have then found the solution - your text file has the region information and you can use what you found to extract records overlapping those regions.

ADD REPLY

Login before adding your answer.

Traffic: 1487 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