Biostar Beta. Not for public use.
Convert text file to VCF file ?
0
Entering edit mode
17 months ago
CrazyB • 210
United States

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 • 32k views
ADD COMMENTlink
2
Entering edit mode
2.8 years ago
mbio.kyle • 330
United States

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 COMMENTlink
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 REPLYlink

Login before adding your answer.

Similar Posts
Loading Similar Posts
Powered by the version 2.1