How To Generate Bed File Only Containing The Cds Region ?
1
4
Entering edit mode
11.1 years ago
Zhilong Jia ★ 2.2k

How to generate bed file only containing the CDS region (such as in yeast) ?

that means the "name" field (the 4th field) in every line of bed file is a CDS region. Maybe UCSC table browser could work? But I really forget how to.

Thank you.

cds bed ucsc • 5.0k views
ADD COMMENT
4
Entering edit mode
11.1 years ago

This be it, you can use mysql query [using S.cerevisae as an example]

mysql -B -h genome-mysql.cse.ucsc.edu -A -u genome -D sacCer3 -e 'select chrom,cdsStart,cdsEnd,name,proteinId,strand from sgdGene' | head

chrom    cdsStart    cdsEnd    name    proteinId    strand
chrI    334    649    YAL069W    n/a    +
chrI    537    792    YAL068W-A    n/a    +
chrI    1806    2169    YAL068C    P0CE93    -
chrI    2479    2707    YAL067W-A    Q8TGK6    +
chrI    7234    9016    YAL067C    P39709    -
chrI    10090    10399    YAL066W    n/a    +
chrI    11564    11951    YAL065C    O13511    -
chrI    12045    12426    YAL064W-B    O13512    +
chrI    13362    13743    YAL064C-A    Q6B2U8    -

This will give you all the entries, though using table browser you can choose only to display the coding exons. May be some can add to the query command how to do that.

or you can go to table browser,

enter image description here

enter image description here Click the get bed.

Cheers

ADD COMMENT
0
Entering edit mode

yes, what I say is just your 2nd method. Thank you. When it comes to the former, I'm not familiar with mySQL. It seems just type the command in the local with the Internet connecting and then output the result.

ADD REPLY

Login before adding your answer.

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