Entering edit mode
9.1 years ago
sebastiz
▴
20
I have a list of repeat members and I would like to look up which repeat Family they belong to. I believe I can do this with a mysql query to UCSC but I'm not sure exactly how. So far I have managed to perform a basic UCSC query with
mysql --user=genome --host=genome-mysql.cse.ucsc.edu -A -D hg19 -e 'select chrom,chromStart,chromEnd,name,repClass from nestedRepeats ' > RptDivergence.txt
but how do I add the WHERE clause for a list?
Thanks
What you want to do in the 'where' clause?
Is it possible to load a text file with the list in it into the where clause?
Thanks
NO you can't do that with the UCSC mysql server; you usually create the WHERE clause using something like awk:
or download+import the table+file on a private sql engine and use a sql join statement.