Guest User

Untitled

a guest
Nov 18th, 2018
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. -- tell postgres to cough up tab delimited files
  2. \C
  3. \f '\t'
  4. \a
  5.  
  6. -- extract synonyms for halo genes
  7. \o /local/halo.id.synonyms.txt
  8. select g.name, s.name as synonym
  9. from networks_gene g
  10. join networks_synonym s on g.id=s.target_id
  11. where s.target_type='gene' and s.type like 'vng%';
  12. \o
  13.  
  14. -- extract GO annotations
  15. \o /local/halo.go.txt
  16. select g.name, f.native_id
  17. from networks_gene g
  18. join networks_gene_function gf on g.id=gf.gene_id
  19. join networks_function f on gf.function_id=f.id
  20. where g.species_id=2 and f.type='go';
  21. \o
Add Comment
Please, Sign In to add comment