I want to fetch some information (protein names, gene symbols, refseq numbers, gi numbers...) from human refseq protein database using mysql. I found this code:
mysql --user=genome -N --host=genome-mysql.cse.ucsc.edu -A -D hg19 -e "select name,name2 from refGene" > Refseq2Gene.txt
This code only gives me locus information and gene symbols.
How do I modify this code to get other information I need?
You might want to try Ensembl, they offer MySQL access as well as a Perl API and Biomart.
How do I do that? Sorry, I'm new to these things.
They have a very detailed help section as well as video tutorials on youtube.