Convert text file to VCF file ?
2
1
Entering edit mode
9.0 years ago
CrazyB ▴ 280

I tried to parse a few VCF files and always ended up with a txt file as an output, which by itself is not an issue. The problem comes when I need to annotate those txt files, as many tools require the input files to be in "VCF" format.

Not sure how I could convert a txt file to VCF format?

Any idea will be appreciated. Thanks a lot.

vcf • 47k views
ADD COMMENT
0
Entering edit mode

Iam sorry its too late to give you a solution, but hope it helps some one in the future. A vcf, txt files can be changed easily by changing the extensions by editing the name of the file. eg, "backup.txt" rename it to "backup.vcf". Thats it no need to find any softwares. It worked for me fr.

ADD REPLY
0
Entering edit mode

This exact solution was given shortly after the question was asked: Convert text file to VCF file ?

ADD REPLY
2
Entering edit mode
9.0 years ago
mbio.kyle ▴ 380

If the file is formatted properly and contains what you want then the .txt file should be arbitrary. If you are used to the terminal then just:

mv my_vcf_file.txt my_vcf_file.vcf

Otherwise open it in any text editor and select Save As, save it as filename.vcf. If you are on windows you will need to change the file type on the bottom of the file browser window to All Files. It should have a drop down but will default to *.txt (Text Files) or something like that

ADD COMMENT
0
Entering edit mode

Protip: On Windows, quote the entire name (with extension) to prevent the dialog from adding any further extensions. Save as --> "myVariants.vcf"

ADD REPLY

Login before adding your answer.

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