Hello, Mustafa.
Thank you for your question about creating a BED12 file from the GENCODE data in the UCSC Genome Browser.
This can be done using either the command line or using our Table Browser tool.
A) Using the command line:
You can use the command-line MySQL client to query out public MySQL server. You can combine the output from a query to this MySQL server with our utility 'genePredToBed' to turn the genePred data into BED12. You can download 'genePredToBed' from our download server here:
http://hgdownload.soe.ucsc.edu/admin/exe/.
Here's a command you could use to get the information from the MySQL server and then convert it into BED12:
mysql --user=genome --host=genome-mysql.soe.ucsc.edu -A -P 3306 -Ne "select * from wgEncodeGencodeCompV28" hg38 | cut -f2- | genePredToBed stdin wgEncodeGencodeCompV28.bed
B) Using the UCSC Table Browser
You can also obtain a BED12 file of the wgEncodeGencodeCompV28 table using the following settings on the Table Browser:
2. Make the following selections:
clade: Mammal
genome: Human
assembly: Dec 2013 (GRCh38/hg38)
group: Genes and Gene Predictions
track: All GENCODE V28
table: Comprehensive (wgEncodeGencodeCompV28)
region: genome
output format: BED - browser extensible data
output file: enter a file name or leave blank to view results in web browser
3. Click 'get output'.
4. Under the 'Create one BED record per' section, select 'Whole Gene'.
5. Click 'get BED'.
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 Genomics Institute
Want to share the Browser with colleagues?