Thanks. Any way to do it through the table browser web interface?
• 0 views
•
link
How to download all human coding sequences from UCSC table browser. The resulting format that we want to send to Galaxy is "gene ID, CDS in fasta".
on the bash command line (assuming you have a mysql client installed):
mysql --user=genome --host=genome-mysql.cse.ucsc.edu -A -D hg19 \
-N -e 'SELECT * FROM knownGeneMrna' | sed -e 's/^/>/' -e 's/\s/\n/' > myFastaFile.fa
This will take a while to run. Make sure the output is what you want by sticking a LIMIT 10 in your SQL query:
mysql --user=genome --host=genome-mysql.cse.ucsc.edu -A -D hg19 \
-N -e 'SELECT * FROM knownGeneMrna LIMIT 10' | sed -e 's/^/>/' -e 's/\s/\n/' > myFastaTestFile.fa
Thanks. Any way to do it through the table browser web interface?
Log in to answer this question.