@@ -65,7 +65,7 @@ extern "C" {
6565typedef struct variantkey_t
6666{
6767 uint8_t chrom ; //!< Chromosome encoded number (only the LSB 5 bit are used)
68- uint32_t pos ; //!< Reference position, with the 1st base having position 0 (only the LSB 28 bit are used)
68+ uint32_t pos ; //!< Reference position, with the first base having position 0 (only the LSB 28 bit are used)
6969 uint32_t refalt ; //!< Code for Reference and Alternate allele (only the LSB 31 bits are used)
7070} variantkey_t ;
7171
@@ -130,7 +130,7 @@ size_t decode_refalt(uint32_t code, char *ref, size_t *sizeref, char *alt, size_
130130/** @brief Returns a 64 bit variant key based on the pre-encoded CHROM, POS (0-based) and REF+ALT.
131131 *
132132 * @param chrom Encoded Chromosome (see encode_chrom).
133- * @param pos Position. The reference position, with the 1st base having position 0.
133+ * @param pos Position. The reference position, with the first base having position 0.
134134 * @param refalt Encoded Reference + Alternate (see encode_refalt).
135135 *
136136 * @return VariantKey 64 bit code.
@@ -174,7 +174,7 @@ void decode_variantkey(uint64_t code, variantkey_t *vk);
174174 *
175175 * @param chrom Chromosome. An identifier from the reference genome, no white-space or leading zeros permitted.
176176 * @param sizechrom Length of the chrom string, excluding the terminating null byte.
177- * @param pos Position. The reference position, with the 1st base having position 0.
177+ * @param pos Position. The reference position, with the first base having position 0.
178178 * @param ref Reference allele. String containing a sequence of nucleotide letters.
179179 * The value in the pos field refers to the position of the first nucleotide in the String.
180180 * Characters must be A-Z, a-z or *
@@ -190,8 +190,8 @@ uint64_t variantkey(const char *chrom, size_t sizechrom, uint32_t pos, const cha
190190/** @brief Returns minimum and maximum VariantKeys for range searches.
191191 *
192192 * @param chrom Chromosome encoded number.
193- * @param pos_min Start reference position, with the 1st base having position 0.
194- * @param pos_max End reference position, with the 1st base having position 0.
193+ * @param pos_min Start reference position, with the first base having position 0.
194+ * @param pos_max End reference position, with the first base having position 0.
195195 * @param range VariantKey range values.
196196 *
197197 * @return Min and Max variant keys for any given REF+ALT encoding.
@@ -223,15 +223,15 @@ int compare_variantkey_chrom_pos(uint64_t vka, uint64_t vkb);
223223 * - 28 bit for POS
224224 * - 31 bit for REF+ALT
225225 *
226- * @param code VariantKey code.
227- * @param str String buffer to be returned (it must be sized 17 bytes at leasr ).
226+ * @param vk VariantKey code.
227+ * @param str String buffer to be returned (it must be sized 17 bytes at least ).
228228 *
229229 * @return Upon successful return, these function returns the number of characters processed
230230 * (excluding the null byte used to end output to strings).
231231 * If the buffer size is not sufficient, then the return value is the number of characters required for
232232 * buffer string, including the terminating null byte.
233233 */
234- size_t variantkey_hex (uint64_t code , char * str );
234+ size_t variantkey_hex (uint64_t vk , char * str );
235235
236236/** @brief Parses a VariantKey hexadecimal string and returns the code.
237237 *
0 commit comments