author | Don Pellegrino <don@drexel.edu> | 2010-01-19 20:49:49 (GMT) |
---|---|---|
committer | Don Pellegrino <don@drexel.edu> | 2010-01-19 20:49:49 (GMT) |
commit | e57116f25523fc6e27c7b49f9241dd7e20fb2789 (patch) (unidiff) | |
tree | 16f698176f349748468e2684f4ab065622f4c1b0 | |
parent | aae357374282d545f0a036c1c80b007247ff6067 (diff) | |
download | exp007-e57116f25523fc6e27c7b49f9241dd7e20fb2789.zip exp007-e57116f25523fc6e27c7b49f9241dd7e20fb2789.tar.gz exp007-e57116f25523fc6e27c7b49f9241dd7e20fb2789.tar.bz2 |
Cleaned up some of the documentation.
-rw-r--r-- | src/assign/assign_protein_type.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/assign/assign_protein_type.c b/src/assign/assign_protein_type.c index 3947800..9a0717b 100644 --- a/src/assign/assign_protein_type.c +++ b/src/assign/assign_protein_type.c | |||
@@ -42,6 +42,7 @@ assign_protein_type (hid_t file_id) | |||
42 | * Make BLAST messages reportable. | 42 | * Make BLAST messages reportable. |
43 | */ | 43 | */ |
44 | ErrSetMessageLevel (SEV_WARNING); | 44 | ErrSetMessageLevel (SEV_WARNING); |
45 | ValNodePtr error_returns = NULL; | ||
45 | 46 | ||
46 | /* | 47 | /* |
47 | * Open the BLAST sequence database. | 48 | * Open the BLAST sequence database. |
@@ -59,8 +60,6 @@ assign_protein_type (hid_t file_id) | |||
59 | options->window_size = 0; | 60 | options->window_size = 0; |
60 | options->multiple_hits_only = false; | 61 | options->multiple_hits_only = false; |
61 | 62 | ||
62 | ValNodePtr error_returns = NULL; | ||
63 | |||
64 | /* | 63 | /* |
65 | * Read the data from HDF5 influenza.faa. | 64 | * Read the data from HDF5 influenza.faa. |
66 | */ | 65 | */ |
@@ -240,7 +239,7 @@ assign_protein_type (hid_t file_id) | |||
240 | 239 | ||
241 | /* | 240 | /* |
242 | * A hit was found. Record the first hit as the protein type. | 241 | * A hit was found. Record the first hit as the protein type. |
243 | * Skip the first 6 characters and eat the "lcl|x_". | 242 | * Skip the first 4 characters and eat the "lcl|". |
244 | */ | 243 | */ |
245 | else if (seqalign != NULL) | 244 | else if (seqalign != NULL) |
246 | { | 245 | { |
@@ -253,7 +252,7 @@ assign_protein_type (hid_t file_id) | |||
253 | new_buf[i].type[0] = target_id_buf[4]; | 252 | new_buf[i].type[0] = target_id_buf[4]; |
254 | new_buf[i].type[1] = '\0'; | 253 | new_buf[i].type[1] = '\0'; |
255 | 254 | ||
256 | // Protein Type | 255 | // Protein Type (Skip the underscore in the string). |
257 | strncpy (new_buf[i].protein, &target_id_buf[6], | 256 | strncpy (new_buf[i].protein, &target_id_buf[6], |
258 | sizeof (new_buf[i].protein)); | 257 | sizeof (new_buf[i].protein)); |
259 | } | 258 | } |