summaryrefslogtreecommitdiffstats
authorDon Pellegrino <don@drexel.edu>2010-01-19 20:49:49 (GMT)
committer Don Pellegrino <don@drexel.edu>2010-01-19 20:49:49 (GMT)
commite57116f25523fc6e27c7b49f9241dd7e20fb2789 (patch) (side-by-side diff)
tree16f698176f349748468e2684f4ab065622f4c1b0
parentaae357374282d545f0a036c1c80b007247ff6067 (diff)
downloadexp007-e57116f25523fc6e27c7b49f9241dd7e20fb2789.zip
exp007-e57116f25523fc6e27c7b49f9241dd7e20fb2789.tar.gz
exp007-e57116f25523fc6e27c7b49f9241dd7e20fb2789.tar.bz2
Cleaned up some of the documentation.
-rw-r--r--src/assign/assign_protein_type.c7
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)
* Make BLAST messages reportable.
*/
ErrSetMessageLevel (SEV_WARNING);
+ ValNodePtr error_returns = NULL;
/*
* Open the BLAST sequence database.
@@ -59,8 +60,6 @@ assign_protein_type (hid_t file_id)
options->window_size = 0;
options->multiple_hits_only = false;
- ValNodePtr error_returns = NULL;
-
/*
* Read the data from HDF5 influenza.faa.
*/
@@ -240,7 +239,7 @@ assign_protein_type (hid_t file_id)
/*
* A hit was found. Record the first hit as the protein type.
- * Skip the first 6 characters and eat the "lcl|x_".
+ * Skip the first 4 characters and eat the "lcl|".
*/
else if (seqalign != NULL)
{
@@ -253,7 +252,7 @@ assign_protein_type (hid_t file_id)
new_buf[i].type[0] = target_id_buf[4];
new_buf[i].type[1] = '\0';
- // Protein Type
+ // Protein Type (Skip the underscore in the string).
strncpy (new_buf[i].protein, &target_id_buf[6],
sizeof (new_buf[i].protein));
}

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.