How to merge 24 ESP vcf files into one?
1
0
Entering edit mode
7.7 years ago
agicict ▴ 200

Hi

I downloaded Exome-seq project's vcf files from below site and would like to merge them into one. (http://evs.gs.washington.edu/EVS/)

I searched tools for merging vcf files but I am facing errors.

In addition, I need to append 'chr' to chromosome since ESP vcfs have no 'chr' prefix.

How to solve this issue?

Exome seq project vcf merging • 2.0k views
ADD COMMENT
1
Entering edit mode

I searched tools for merging vcf files but I am facing errors.

What tools did you try? And what errors did you get?

Did you look into VCFtools?

ADD REPLY
0
Entering edit mode
7.7 years ago
theobroma22 ★ 1.2k

See this previous post to merge in R: C: Merging of datasets from same tissue/region

To append "chr" to a vector of names called ID in a dataframe stored as a df object in R you can use:

paste0("chr_" , df$ID)
ADD COMMENT
1
Entering edit mode

sed

ADD REPLY

Login before adding your answer.

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