Hello Keith,
Thank you for your question about converting your 5 column bed file
to a 4 column bed file. To start, it appears the file that you
attached to your email is actually a six column BED detail file.
There are two ways in which you can convert the file that you have
sent us into a four column BED file. The first involves using the
Table Browser tool,
which Pauline previously provided instructions for.
If you have access to a LINUX/UNIX command line interface, this
option might be easier. First, you must remove the track line at the
beginning of your file, this is the line that begins with 'track'.
Next, open your terminal and change into the directory in which your
bed file is located. You should then be able to use the following
command to pull the first four columns out of your original file and
place them into another file:
cat IAD50966_124_Designed.bed | awk '{print $1 "\t" $2 "\t" $3 "\t"
$4}' > output.bed
You can replace 'output.bed' with whatever you would like to name
your output file.
I hope this is helpful. If you have any further questions, please
reply to
gen...@soe.ucsc.edu. All messages sent to that address are
archived on a publicly-accessible Google Groups forum. If your
question includes sensitive data, you may send it instead to
genom...@soe.ucsc.edu.
Matthew Speir
UCSC Genome Bioinformatics Group