Creation Of A .Bed File From .Txt
0
0
Entering edit mode
7.8 years ago

I have downloaded a subset of data I need to keep from a dataset and it has saved the file as ".txt", how do I convert the .txt file to .BED file so I can use the bed file for further QC testing?

text file plink • 3.9k views
ADD COMMENT
2
Entering edit mode

You'll need to post a portion of the text file to get any help. Even .bed files are text files.

ADD REPLY
0
Entering edit mode

Sure. Here's a portion of the text file:

148594_H10_1958_BC1041075    1
148594_H05_1958_BC1041082    1
120437_F01_BLOOD321047    1
120444_E12_BLOOD321899    1
120438_A04_BLOOD321231    1
ADD REPLY
2
Entering edit mode

I have no idea what those are IDs for and google only finds them in this post. You'll need to mention where you got this or what the nature of these IDs are.

ADD REPLY
0
Entering edit mode

BED format description here. As a minimum you require chromosome, start and end positions. Do these exist in your file? If not, you cannot convert directly.

ADD REPLY
2
Entering edit mode

PLINK .bed (for "binary .ped") is not the same thing as UCSC BED (for "Browser Extensible Data") format...

ADD REPLY
0
Entering edit mode

Right. Original questioner needs to clarify that (I see plink as a tag, but need more information than that).

ADD REPLY
0
Entering edit mode

My apologies and am using plink so the files I need are .bed. The file I have kept from the binary dataset is a .txt file and I then need to QC on the extracted data. The first QC I need to perform is a MAF (plink --file mydata --maf 0.05) but it states I cannot do this because I do not have a .ped file, so do I need to create a .ped or .bed file for this?

ADD REPLY

Login before adding your answer.

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