8c46bf4f26ab5833f1b9f23e4ec54f62ed60bf00 braney Thu May 14 15:48:28 2020 -0700 changes in comment in response to code review diff --git src/hg/lib/rnaSecStr.c src/hg/lib/rnaSecStr.c index 426ab31..f73fc00 100644 --- src/hg/lib/rnaSecStr.c +++ src/hg/lib/rnaSecStr.c @@ -2,51 +2,51 @@ * generated rnaSecStr.h and rnaSecStr.sql. This module links the database and * the RAM representation of objects. */ /* Copyright (C) 2014 The Regents of the University of California * See README in this or parent directory for licensing information. */ #include "common.h" #include "linefile.h" #include "dystring.h" #include "jksql.h" #include "rnaSecStr.h" struct rnaSecStr *rnaSecStrLoad(char **row) /* Load a rnaSecStr from row fetched with select * from rnaSecStr - * from database. Dispose of this with rnaSecStrFree(). */ + * from database. Ignores conf column if present. Dispose of this with rnaSecStrFree(). */ { struct rnaSecStr *ret; AllocVar(ret); ret->size = sqlUnsigned(row[6]); ret->chrom = cloneString(row[0]); ret->chromStart = sqlUnsigned(row[1]); ret->chromEnd = sqlUnsigned(row[2]); ret->name = cloneString(row[3]); ret->score = sqlUnsigned(row[4]); strcpy(ret->strand, row[5]); ret->secStr = cloneString(row[7]); return ret; } struct rnaSecStr *rnaSecStrLoadConf(char **row) +/* Load a rnaSecStr from row fetched with select * from rnaSecStr + * from database. Loads conf column. Dispose of this with rnaSecStrFree(). */ { struct rnaSecStr *ret; -/* Load a rnaSecStr from row fetched with select * from rnaSecStr - * from database. Dispose of this with rnaSecStrFree(). */ AllocVar(ret); ret->size = sqlUnsigned(row[6]); ret->chrom = cloneString(row[0]); ret->chromStart = sqlUnsigned(row[1]); ret->chromEnd = sqlUnsigned(row[2]); ret->name = cloneString(row[3]); ret->score = sqlUnsigned(row[4]); strcpy(ret->strand, row[5]); ret->secStr = cloneString(row[7]); { int sizeOne; sqlDoubleDynamicArray(row[8], &ret->conf, &sizeOne); assert(sizeOne == ret->size); }