summaryrefslogtreecommitdiffstats
Unidiff
-rw-r--r--analysis/year.R20
-rw-r--r--src/Makefile.am39
-rw-r--r--src/aggregator.c6
-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.h21
-rw-r--r--src/model/gi_type_data_init.c36
-rw-r--r--src/model/gi_type_data_init.h14
-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.c4
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);
5hdf5load("/home/don/exp007/src/influenza.h5", tidy = TRUE);5hdf5load("/home/don/exp007/src/influenza.h5", tidy = TRUE);
66
7A <- influenza.aa.dat;7A <- influenza.aa.dat;
8
9B <- influenza.faa;8B <- influenza.faa;
109
10# Join the two tables by GB value.
11C <- merge (A, B, by.x = "GenBank accession number", by.y = "GB");
12
11# All records for 1918. Based on code from13# All records for 1918. Based on code from
12# http://wiki.r-project.org/rwiki/doku.php?id=tips:data-frames:select_observations14# http://wiki.r-project.org/rwiki/doku.php?id=tips:data-frames:select_observations
13C <- A[A$Year == 1918, ]15D <- C[C$Year == 1918, ]
1416
15# Countries represented in the 1918 dataset.17summary (D);
16C$Country;
1718
18# All record with a year value.19# Countries represented in the 1918 dataset.
19D <- A[A$Year != 0, ];20D$Country;
2021
21hist(D$Year);22D[D$"Protein Type" == "HA", ]
2223
23B[B$GI == 305182, ]24# All record with a year value.
25E <- A[A$Year != 0, ];
2426
25B[B$"Protein Type" == "HA", ]27hist(E$Year);

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.