summaryrefslogtreecommitdiffstats
Unidiff
-rw-r--r--test/ParaView/proteins_by_year.csv106810
-rw-r--r--test/ParaView/proteins_by_year.sql19
2 files changed, 106829 insertions, 0 deletions
diff --git a/test/ParaView/proteins_by_year.sql b/test/ParaView/proteins_by_year.sql
new file mode 100644
index 0000000..d4d1499
--- a/dev/null
+++ b/test/ParaView/proteins_by_year.sql
@@ -0,0 +1,19 @@
1-- Extract the protein coordinates with the year of the strain as a
2-- feature for analysis in ParaView.
3
4EXPORT TO proteins_by_year.csv OF DEL
5SELECT C.x,
6 C.y,
7 0,
8 S.strain_year,
9 C.gi
10FROM influenza_meta M
11JOIN strains_parsed S
12ON (S.GBSeq_accession_version = M.gbseq_accession_version)
13JOIN coordinates C
14ON (C.gi = 'gi|' || M.gi)
15WHERE S.strain_year IS NOT NULL
16ORDER BY S.strain_year;
17
18-- Records with invalid years manually removed from the head and tail
19-- of the exported file. \ No newline at end of file

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.