Hi,
Easy question here. I am split up my vcf file up by chromosome to try and save some time. I want to combine the files now to have one complete vcf file with all the chromosomes. Do I wanted to merge the files or do I want to concatenate the files?
I just ran the command
cat *.vcf > cat.chr1.chr2.vcf
This was only on two of the chromosomes and when I went to look at the files, there was only data for the first chromosome and nothing for the second. Am I doing something wrong here? I could also try vcf tools if this "cat" command wont work for what I am trying to do.
Wonderful Pierre! Worked like a charm! Thank you so much for the help!
Hi Pierre, I wanted to merge VCF files which had already splitted by chromosones into a single file. Though each is compressed i.e. chr1.vcf.gz, chr2.vcf.gz, ......chrn.vcf.gz.
I could not see any an output file merged.vcf.gz when I used the command. Is it because the file is compressed?
Hi Pierre, do you know if it's possible to use GatherVCFs with a list of files rather than a separate
I=
for each? Thanks!try to use a text file WITH THE SUFFIX
.list
containing the path to the files.