Skip to content

Instantly share code, notes, and snippets.

@Tabea-K
Last active February 7, 2019 14:58
Show Gist options
  • Save Tabea-K/494c368a6c15e54efb1fc0099704a1ec to your computer and use it in GitHub Desktop.
Save Tabea-K/494c368a6c15e54efb1fc0099704a1ec to your computer and use it in GitHub Desktop.
To download the latest refGene info file from the UCSC via command line
CURRDATE=`date +%Y-%m-%d`
ASSEMBLY=hg38
mysql --user=genome --host=genome-mysql.cse.ucsc.edu -A -D "${ASSEMBLY}" -e "select * \
from refGene" > "${CURRDATE}_${ASSEMBLY}_refGene.txt"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment