Convert text file to VCF file ?
2
0
Entering edit mode
8.3 years ago
CrazyB ▴ 260

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 • 44k views
ADD COMMENT
2
Entering edit mode
8.3 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: 2185 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