-rw-r--r-- | analysis/year.R | 20 | ||||
-rw-r--r-- | src/Makefile.am | 39 | ||||
-rw-r--r-- | src/aggregator.c | 6 | ||||
-rw-r--r-- | src/assign/assign_protein_type.c (renamed from src/assign_protein_type.c) | 87 | ||||
-rw-r--r-- | src/assign/assign_protein_type.h (renamed from src/assign_protein_type.h) | 0 | ||||
-rw-r--r-- | src/error/check_error.c (renamed from src/check_error.c) | 0 | ||||
-rw-r--r-- | src/error/check_error.h (renamed from src/check_error.h) | 0 | ||||
-rw-r--r-- | src/error/check_h5_error.c (renamed from src/check_h5_error.c) | 0 | ||||
-rw-r--r-- | src/error/check_h5_error.h (renamed from src/check_h5_error.h) | 0 | ||||
-rw-r--r-- | src/error/check_ncbi_error.c (renamed from src/check_ncbi_error.c) | 0 | ||||
-rw-r--r-- | src/error/check_ncbi_error.h (renamed from src/check_ncbi_error.h) | 0 | ||||
-rw-r--r-- | src/load/load_influenza_aa_dat.c (renamed from src/load_influenza_aa_dat.c) | 4 | ||||
-rw-r--r-- | src/load/load_influenza_aa_dat.h (renamed from src/load_influenza_aa_dat.h) | 0 | ||||
-rw-r--r-- | src/load/load_influenza_faa.c (renamed from src/load_influenza_faa.c) | 10 | ||||
-rw-r--r-- | src/load/load_influenza_faa.h (renamed from src/load_influenza_faa.h) | 0 | ||||
-rw-r--r-- | src/model/gi_type_data.h | 21 | ||||
-rw-r--r-- | src/model/gi_type_data_init.c | 36 | ||||
-rw-r--r-- | src/model/gi_type_data_init.h | 14 | ||||
-rw-r--r-- | src/model/sequence_data.h (renamed from src/sequence_data.h) | 5 | ||||
-rw-r--r-- | src/model/sequence_data_init.c (renamed from src/sequence_data_init.c) | 6 | ||||
-rw-r--r-- | src/model/sequence_data_init.h (renamed from src/sequence_data_init.h) | 0 | ||||
-rw-r--r-- | src/updator.c | 4 |
22 files changed, 181 insertions, 71 deletions
diff --git a/analysis/year.R b/analysis/year.R index b7da3c8..6d68925 100644 --- a/analysis/year.R +++ b/analysis/year.R | |||
@@ -5,21 +5,23 @@ require(hdf5); | |||
5 | hdf5load("/home/don/exp007/src/influenza.h5", tidy = TRUE); | 5 | hdf5load("/home/don/exp007/src/influenza.h5", tidy = TRUE); |
6 | 6 | ||
7 | A <- influenza.aa.dat; | 7 | A <- influenza.aa.dat; |
8 | |||
9 | B <- influenza.faa; | 8 | B <- influenza.faa; |
10 | 9 | ||
10 | # Join the two tables by GB value. | ||
11 | C <- merge (A, B, by.x = "GenBank accession number", by.y = "GB"); | ||
12 | |||
11 | # All records for 1918. Based on code from | 13 | # All records for 1918. Based on code from |
12 | # http://wiki.r-project.org/rwiki/doku.php?id=tips:data-frames:select_observations | 14 | # http://wiki.r-project.org/rwiki/doku.php?id=tips:data-frames:select_observations |
13 | C <- A[A$Year == 1918, ] | 15 | D <- C[C$Year == 1918, ] |
14 | 16 | ||
15 | # Countries represented in the 1918 dataset. | 17 | summary (D); |
16 | C$Country; | ||
17 | 18 | ||
18 | # All record with a year value. | 19 | # Countries represented in the 1918 dataset. |
19 | D <- A[A$Year != 0, ]; | 20 | D$Country; |
20 | 21 | ||
21 | hist(D$Year); | 22 | D[D$"Protein Type" == "HA", ] |
22 | 23 | ||
23 | B[B$GI == 305182, ] | 24 | # All record with a year value. |
25 | E <- A[A$Year != 0, ]; | ||
24 | 26 | ||
25 | B[B$"Protein Type" == "HA", ] | 27 | hist(E$Year); |