Advertisement
Guest User

Untitled

a guest
Dec 8th, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. # Annotate BED-file with gene and strand
  2.  
  3. cat $BEDFILE |
  4. awk -F '\t' '{printf("select DISTINCT \"%s\",\"%s\",\"%s\", G.name2,G.strand from refGene as G where chrom=\"%s\" \
  5. and (%s<txEnd and %s>txStart);\n",$1,$2,$3,$1,$2,$3);}' |\
  6. mysql --user=genome --host=genome-mysql.cse.ucsc.edu -A -N -D hg19
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement