Debian Codegraph @

libs/wgsxf/build_scaffold.c

raw symbols SCIP
1 /*===========================================================================
2 *
3 * PUBLIC DOMAIN NOTICE
4 * National Center for Biotechnology Information
5 *
6 * This software/database is a "United States Government Work" under the
7 * terms of the United States Copyright Act. It was written as part of
8 * the author's official duties as a United States Government employee and
9 * thus cannot be copyrighted. This software/database is freely available
10 * to the public for use. The National Library of Medicine and the U.S.
11 * Government have not placed any restriction on its use or reproduction.
12 *
13 * Although all reasonable efforts have been taken to ensure the accuracy
14 * and reliability of the software and data, the NLM and the U.S.
15 * Government do not and cannot warrant the performance or results that
16 * may be obtained by using this software or data. The NLM and the U.S.
17 * Government disclaim all warranties, express or implied, including
18 * warranties of performance, merchantability or fitness for any particular
19 * purpose.
20 *
21 * Please cite the author in any work or product based on this material.
22 *
23 * ===========================================================================
24 *
25 */
26 #include <vdb/extern.h>cxx . . $ `<file>/interfaces/vdb/extern.h`/
27 #include <vdb/xform.h>cxx . . $ `<file>/interfaces/vdb/xform.h`/
28 #include <vdb/database.h>cxx . . $ `<file>/interfaces/vdb/database.h`/
29 #include <vdb/table.h>cxx . . $ `<file>/interfaces/vdb/table.h`/
30 #include <vdb/cursor.h>cxx . . $ `<file>/interfaces/vdb/cursor.h`/
31 #include <vdb/schema.h>cxx . . $ `<file>/interfaces/vdb/schema.h`/
32
33 #include <klib/defs.h>cxx . . $ `<file>/interfaces/klib/defs.h`/
34 #include <klib/rc.h>cxx . . $ `<file>/interfaces/klib/rc.h`/
35 #include <kdb/meta.h>cxx . . $ `<file>/interfaces/kdb/meta.h`/
36 #include <klib/data-buffer.h>cxx . . $ `<file>/interfaces/klib/data-buffer.h`/
37 #include <insdc/insdc.h>cxx . . $ `<file>/interfaces/insdc/insdc.h`/
38 #include <align/refseq-mgr.h>cxx . . $ `<file>/interfaces/align/refseq-mgr.h`/
39 #include <bitstr.h>cxx . . $ `<file>/interfaces/cc/gcc/x86_64/bitstr.h`/
40 #include <sysalloc.h>cxx . . $ `<file>/interfaces/os/unix/sysalloc.h`/
41 #include <stdint.h>
42 #include <stdlib.h>
43 #include <assert.h>
44 #include <string.h>
45 #include <stdio.h>
46
47 #include <insdc/sra.h>cxx . . $ `<file>/interfaces/insdc/sra.h`/
48 #include <ncbi/wgs-contig.h>cxx . . $ `<file>/interfaces/ncbi/wgs-contig.h`/
49
50 #define READ_GAP_VALUEcxx . . $ `libs/wgsxf/build_scaffold.c:50:9`! (0)
51 #define QUAL_GAP_VALUEcxx . . $ `libs/wgsxf/build_scaffold.c:51:9`! (2)
52
53 #define CURSOR_CACHE_SIZEcxx . . $ `libs/wgsxf/build_scaffold.c:53:9`! (4 * 1024 * 1024)
54
55 typedef struct self_tcxx . . $ self_t# self_tcxx . . $ self_t#;
56 typedef rc_tcxx . . $ rc_t# (*impl_fcxx . . $ impl_f#)(self_tcxx . . $ self_t# const *const self, void *const Dst,
57 unsigned const components,
58 INSDC_coord_onecxx . . $ INSDC_coord_one# const start[/* components */],
59 INSDC_coord_lencxx . . $ INSDC_coord_len# const length[/* components */],
60 NCBI_WGS_component_propscxx . . $ NCBI_WGS_component_props# const props[/* components */],
61 int64_tcxx . . $ int64_t# const join[/* components */]);
62
63 struct self_tcxx . . $ self_t#
64 {
65 VCursorcxx . . $ VCursor# const *curscxx . . $ self_t#curs.;
66 uint32_tcxx . . $ uint32_t# col_idxcxx . . $ self_t#col_idx.;
67 impl_fcxx . . $ impl_f# implcxx . . $ self_t#impl.;
68 };
69
70 static void free_selfcxx . . $ free_self(11a5cce08ec38369).(self_tcxx . . $ self_t# *const self)
71 {
72 VCursorReleasecxx . . $ VCursorRelease(b9a67829f47d6367).(self->curscxx . . $ self_t#curs.);
73 }
74
75 static
76 void CCcxx . . $ `interfaces/kfc/callconv.h:44:11`! whackcxx . . $ whack(5d22bdacc48458e8).(void *vp)
77 {
78 if (vp) {
79 free_selfcxx . . $ free_self(11a5cce08ec38369).(vp);
80 freecxx . . $ free(5d22bdacc48458e8).(vp);
81 }
82 }
83
84
85 static boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! does_table_have_columncxx . . $ does_table_have_column(57d36a71352d79f).( VTablecxx . . $ VTable# const * tbl, char const column[] )
86 {
87 KNamelistcxx . . $ KNamelist# * column_names;
88 boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! res = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
89 rc_tcxx . . $ rc_t# rc = VTableListReadableColumnscxx . . $ VTableListReadableColumns(525ceb28122860a). ( tbl, &column_names );
90 if ( rc == 0 )
91 {
92 uint32_tcxx . . $ uint32_t# count;
93 rc = KNamelistCountcxx . . $ KNamelistCount(6588a09974ba8f2a). ( column_names, &count );
94 if ( rc == 0 && count > 0 )
95 {
96 uint32_tcxx . . $ uint32_t# idx;
97 size_t col_name_size;
98 const char * col_name = string_chrcxx . . $ string_chr(6ac83bd45ff73f6c). ( column, string_sizecxx . . $ string_size(751346f8406fd082).( column ), ')' );
99 if ( col_name == NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`! )
100 col_name = column;
101 else
102 col_name++;
103 col_name_size = string_sizecxx . . $ string_size(751346f8406fd082).( col_name );
104 for ( idx = 0; idx < count && rc == 0 && !res; ++idx )
105 {
106 const char * name;
107 rc = KNamelistGetcxx . . $ KNamelistGet(182ad7166e906d1d). ( column_names, idx, &name );
108 if ( rc == 0 && name != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`! )
109 {
110 int cmp = string_cmpcxx . . $ string_cmp(91b31e1e5d2e3017).( col_name, col_name_size,
111 name, string_sizecxx . . $ string_size(751346f8406fd082).( name ), 0xFFFF );
112 if ( cmp == 0 )
113 res = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
114 }
115 }
116 }
117 KNamelistReleasecxx . . $ KNamelistRelease(817a463880e297d2). ( column_names );
118 }
119 return res;
120 }
121
122
123 static
124 rc_tcxx . . $ rc_t# init_selfcxx . . $ init_self(483ebcf96ad6e2a6).( self_tcxx . . $ self_t# *self, VTablecxx . . $ VTable# const * const srctbl, char const column[] )
125 {
126 VDatabasecxx . . $ VDatabase# const * db;
127 rc_tcxx . . $ rc_t# rc = VTableOpenParentReadcxx . . $ VTableOpenParentRead(db4cac11a296d475).( srctbl, &db );
128 if ( rc == 0 )
129 {
130 VTablecxx . . $ VTable# const * tbl;
131 rc = VDatabaseOpenTableReadcxx . . $ VDatabaseOpenTableRead(c0afac0c6db25bdd).( db, &tbl, "SEQUENCE" );
132 VDatabaseReleasecxx . . $ VDatabaseRelease(a663aaccdcd0cced).( db );
133 if ( rc == 0 )
134 {
135 boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! has_column = does_table_have_columncxx . . $ does_table_have_column(57d36a71352d79f).( tbl, column );
136 if ( !has_column )
137 VTableReleasecxx . . $ VTableRelease(9e343179418960f2).( tbl );
138 else
139 {
140 VCursorcxx . . $ VCursor# const * curs;
141 #if CURSOR_CACHE_SIZEcxx . . $ `libs/wgsxf/build_scaffold.c:53:9`!
142 rc = VTableCreateCachedCursorReadcxx . . $ VTableCreateCachedCursorRead(59f022b8c2fa0d34).( tbl, &curs, CURSOR_CACHE_SIZEcxx . . $ `libs/wgsxf/build_scaffold.c:53:9`! );
143 #else
144 rc = VTableCreateCursorRead( tbl, &curs );
145 #endif
146 VTableReleasecxx . . $ VTableRelease(9e343179418960f2).( tbl );
147 if ( rc == 0 )
148 {
149 uint32_tcxx . . $ uint32_t# col_idx;
150 rc = VCursorAddColumncxx . . $ VCursorAddColumn(240adf50b07e1022).( curs, &col_idx, "%s", column );
151 if ( rc == 0 )
152 {
153 rc = VCursorOpencxx . . $ VCursorOpen(b9a67829f47d6367).( curs );
154 if ( rc == 0 )
155 {
156 self->curscxx . . $ self_t#curs. = curs;
157 self->col_idxcxx . . $ self_t#col_idx. = col_idx;
158 return 0;
159 }
160 if ( GetRCObjectcxx . . $ `interfaces/klib/rc.h:176:9`!( rc ) == (enum RCObjectcxx . . $ RCObject#)rcColumncxx . . $ rcColumn. && GetRCStatecxx . . $ `interfaces/klib/rc.h:182:9`!( rc ) == rcUndefinedcxx . . $ rcUndefined. )
161 rc = 0;
162 }
163 VCursorReleasecxx . . $ VCursorRelease(b9a67829f47d6367).( curs );
164 }
165 }
166 }
167 }
168 return rc;
169 }
170
171 static
172 rc_tcxx . . $ rc_t# build_scaffold_read_implcxx . . $ build_scaffold_read_impl(1923086a697a8164).(self_tcxx . . $ self_t# const *const self, void *const Dst,
173 unsigned const components,
174 INSDC_coord_onecxx . . $ INSDC_coord_one# const Start[/* components */],
175 INSDC_coord_lencxx . . $ INSDC_coord_len# const Length[/* components */],
176 NCBI_WGS_component_propscxx . . $ NCBI_WGS_component_props# const Props[/* components */],
177 int64_tcxx . . $ int64_t# const join[/* components */])
178 {
179 INSDC_4na_bincxx . . $ INSDC_4na_bin# *const dst = Dst;
180 unsigned i;
181 unsigned j;
182 unsigned id;
183 rc_tcxx . . $ rc_t# rc;
184
185 for (rc = 0, id = j = i = 0; rc == 0 && i != components; ++i) {
186 INSDC_coord_lencxx . . $ INSDC_coord_len# const length = Length[i];
187 int const props = Props[i];
188
189 if (props < 0) {
190 /* gap */
191 memsetcxx . . $ memset(d1de1e4fb215f1c6).(dst + j, READ_GAP_VALUEcxx . . $ `libs/wgsxf/build_scaffold.c:50:9`!, length);
192 }
193 else if (self->curscxx . . $ self_t#curs. == NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!) {
194 memsetcxx . . $ memset(d1de1e4fb215f1c6).(dst + j, 15, length);
195 }
196 else {
197 int const type = props & 0x0F;
198 int const strand = (props & ~(NCBI_WGS_strand_pluscxx . . $ NCBI_WGS_strand_plus. | NCBI_WGS_strand_minuscxx . . $ NCBI_WGS_strand_minus.)) >> 4;
199
200 if (type != 0 || strand == 3)
201 rc = RCcxx . . $ `interfaces/klib/rc.h:111:9`!(rcXF, rcFunction, rcExecuting, rcType, rcInvalid);
202 else {
203 int64_tcxx . . $ int64_t# const row = join[id++];
204 uint32_tcxx . . $ uint32_t# elem_bits;
205 uint32_tcxx . . $ uint32_t# bit_offset;
206 uint32_tcxx . . $ uint32_t# elem_count;
207 void const *base;
208
209 rc = VCursorCellDataDirectcxx . . $ VCursorCellDataDirect(a0934254cb578360).(self->curscxx . . $ self_t#curs., row, self->col_idxcxx . . $ self_t#col_idx.,
210 &elem_bits, &base, &bit_offset,
211 &elem_count);
212 assertcxx . . $ `/usr/include/assert.h:118:11`!(bit_offset == 0);
213 if (rc == 0) {
214 INSDC_coord_onecxx . . $ INSDC_coord_one# const start = Start[i] - 1;
215
216 if (elem_count < start + length)
217 rc = RCcxx . . $ `interfaces/klib/rc.h:111:9`!(rcXF, rcFunction, rcExecuting, rcData, rcInsufficient);
218 else {
219 INSDC_4na_bincxx . . $ INSDC_4na_bin# const *const src = base;
220
221 if (strand == 2) {
222 static INSDC_4na_bincxx . . $ INSDC_4na_bin# const complement[] = {
223 /* 0 0000 - 0000*/ 0,
224 /* 1 0001 - 1000*/ 8,
225 /* 2 0010 - 0100*/ 4,
226 /* 3 0011 - 1100*/ 12,
227 /* 4 0100 - 0010*/ 2,
228 /* 5 0101 - 1010*/ 10,
229 /* 6 0110 - 0110*/ 6,
230 /* 7 0111 - 1110*/ 14,
231 /* 8 1000 - 0001*/ 1,
232 /* 9 1001 - 1001*/ 9,
233 /*10 1010 - 0101*/ 5,
234 /*11 1011 - 1101*/ 13,
235 /*12 1100 - 0011*/ 3,
236 /*13 1101 - 1011*/ 11,
237 /*14 1110 - 0111*/ 7,
238 /*15 1111 - 1111*/ 15
239 };
240 unsigned k;
241 unsigned jj;
242
243 for (jj = j + length, k = 0; k != length; ++k) {
244 INSDC_4na_bincxx . . $ INSDC_4na_bin# const elem = src[start + k];
245
246 assertcxx . . $ `/usr/include/assert.h:118:11`!(/* 0 <= elem && */ elem <= 15);
247 --jj;
248 dst[jj] = complement[elem];
249 }
250 }
251 else
252 memmovecxx . . $ memmove(cc817cb175f282d).(&dst[j], &src[start], length);
253 }
254 }
255 }
256 }
257
258 j += length;
259 }
260 return rc;
261 }
262
263 static
264 rc_tcxx . . $ rc_t# build_scaffold_qual_implcxx . . $ build_scaffold_qual_impl(1923086a697a8164).(self_tcxx . . $ self_t# const *const self, void *const Dst,
265 unsigned const components,
266 INSDC_coord_onecxx . . $ INSDC_coord_one# const Start[/* components */],
267 INSDC_coord_lencxx . . $ INSDC_coord_len# const Length[/* components */],
268 NCBI_WGS_component_propscxx . . $ NCBI_WGS_component_props# const Props[/* components */],
269 int64_tcxx . . $ int64_t# const join[/* components */])
270 {
271 INSDC_quality_phredcxx . . $ INSDC_quality_phred# *const dst = Dst;
272 unsigned i;
273 unsigned j;
274 unsigned id;
275 rc_tcxx . . $ rc_t# rc;
276
277 for (rc = 0, id = j = i = 0; rc == 0 && i != components; ++i) {
278 INSDC_coord_lencxx . . $ INSDC_coord_len# const length = Length[i];
279 int const props = Props[i];
280
281 if (props < 0) {
282 /* gap */
283 memsetcxx . . $ memset(d1de1e4fb215f1c6).(dst + j, QUAL_GAP_VALUEcxx . . $ `libs/wgsxf/build_scaffold.c:51:9`!, length);
284 }
285 else if (self->curscxx . . $ self_t#curs. == NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!) {
286 memsetcxx . . $ memset(d1de1e4fb215f1c6).(dst + j, 30, length);
287 }
288 else {
289 int const type = props & 0x0F;
290 int const strand = (props & ~(NCBI_WGS_strand_pluscxx . . $ NCBI_WGS_strand_plus. | NCBI_WGS_strand_minuscxx . . $ NCBI_WGS_strand_minus.)) >> 4;
291
292 if (type != 0 || strand == 3)
293 rc = RCcxx . . $ `interfaces/klib/rc.h:111:9`!(rcXF, rcFunction, rcExecuting, rcType, rcInvalid);
294 else {
295 int64_tcxx . . $ int64_t# const row = join[id++];
296 uint32_tcxx . . $ uint32_t# elem_bits;
297 uint32_tcxx . . $ uint32_t# bit_offset;
298 uint32_tcxx . . $ uint32_t# elem_count;
299 void const *base;
300
301 rc = VCursorCellDataDirectcxx . . $ VCursorCellDataDirect(a0934254cb578360).(self->curscxx . . $ self_t#curs., row, self->col_idxcxx . . $ self_t#col_idx.,
302 &elem_bits, &base, &bit_offset,
303 &elem_count);
304 assertcxx . . $ `/usr/include/assert.h:118:11`!(bit_offset == 0);
305 if (rc == 0) {
306 INSDC_quality_phredcxx . . $ INSDC_quality_phred# const start = Start[i] - 1;
307
308 if (elem_count < start + length)
309 rc = RCcxx . . $ `interfaces/klib/rc.h:111:9`!(rcXF, rcFunction, rcExecuting, rcData, rcInsufficient);
310 else {
311 INSDC_quality_phredcxx . . $ INSDC_quality_phred# const *const src = base;
312
313 if (strand == 2) {
314 unsigned k;
315 unsigned jj;
316
317 for (jj = j + length, k = 0; k != length; ++k) {
318 INSDC_quality_phredcxx . . $ INSDC_quality_phred# const elem = src[start + k];
319
320 --jj;
321 dst[jj] = elem;
322 }
323 }
324 else
325 memmovecxx . . $ memmove(cc817cb175f282d).(&dst[j], &src[start], length);
326 }
327 }
328 }
329 }
330
331 j += length;
332 }
333 return rc;
334 }
335
336 static
337 unsigned total_lengthcxx . . $ total_length(a9cdd1d160eabaf7).(unsigned const components, INSDC_coord_lencxx . . $ INSDC_coord_len# const length[/* components */])
338 {
339 unsigned i;
340 unsigned len;
341
342 for (i = len = 0; i != components; ++i)
343 len += length[i];
344 return len;
345 }
346
347
348 /*
349 * function INSDC:4na:bin NCBI:WGS:build_scaffold_read #1
350 * ( INSDC:coord:one component_start, INSDC:coord:len component_len,
351 * NCBI:WGS:component_props component_props, I64 component_id )
352 *
353 * function INSDC:quality:phred NCBI:WGS:build_scaffold_qual #1
354 * ( INSDC:coord:one component_start, INSDC:coord:len component_len,
355 * NCBI:WGS:component_props component_props, I64 component_id )
356 */
357
358 static
359 rc_tcxx . . $ rc_t# CCcxx . . $ `interfaces/kfc/callconv.h:44:11`! build_scaffold_implcxx . . $ build_scaffold_impl(c7f02ef3aabbc98b).(void *const data, VXformInfocxx . . $ VXformInfo# const *const info,
360 int64_tcxx . . $ int64_t# const row_id, VRowResultcxx . . $ VRowResult# *const rslt,
361 uint32_tcxx . . $ uint32_t# const argc, VRowDatacxx . . $ VRowData# const argv[])
362 {
363 self_tcxx . . $ self_t# const *const self = data;
364 INSDC_coord_onecxx . . $ INSDC_coord_one# const *const start = argv[0].ucxx . . $ VRowData#u..datacxx . . $ VRowData#$anonymous_type_1#data..basecxx . . $ VRowData#$anonymous_type_1#$anonymous_type_2#base.;
365 INSDC_coord_lencxx . . $ INSDC_coord_len# const *const length = argv[1].ucxx . . $ VRowData#u..datacxx . . $ VRowData#$anonymous_type_1#data..basecxx . . $ VRowData#$anonymous_type_1#$anonymous_type_2#base.;
366 NCBI_WGS_component_propscxx . . $ NCBI_WGS_component_props# const *const props = argv[2].ucxx . . $ VRowData#u..datacxx . . $ VRowData#$anonymous_type_1#data..basecxx . . $ VRowData#$anonymous_type_1#$anonymous_type_2#base.;
367 int64_tcxx . . $ int64_t# const *const join = argv[3].ucxx . . $ VRowData#u..datacxx . . $ VRowData#$anonymous_type_1#data..basecxx . . $ VRowData#$anonymous_type_1#$anonymous_type_2#base.;
368 unsigned const components = argv[0].ucxx . . $ VRowData#u..datacxx . . $ VRowData#$anonymous_type_1#data..elem_countcxx . . $ VRowData#$anonymous_type_1#$anonymous_type_2#elem_count.;
369 rc_tcxx . . $ rc_t# rc;
370
371 assertcxx . . $ `/usr/include/assert.h:118:11`!(argv[1].u.data.elem_count == components);
372 assertcxx . . $ `/usr/include/assert.h:118:11`!(argv[2].u.data.elem_count == components);
373
374 assertcxx . . $ `/usr/include/assert.h:118:11`!(start != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
375 assertcxx . . $ `/usr/include/assert.h:118:11`!(length != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
376 assertcxx . . $ `/usr/include/assert.h:118:11`!(props != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
377 assertcxx . . $ `/usr/include/assert.h:118:11`!(join != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
378
379 assertcxx . . $ `/usr/include/assert.h:118:11`!(rslt->elem_bits == 8);
380 rslt->elem_countcxx . . $ VRowResult#elem_count. = total_lengthcxx . . $ total_length(a9cdd1d160eabaf7).(components, &length[argv[1].ucxx . . $ VRowData#u..datacxx . . $ VRowData#$anonymous_type_1#data..first_elemcxx . . $ VRowData#$anonymous_type_1#$anonymous_type_2#first_elem.]);
381 rc = KDataBufferResizecxx . . $ KDataBufferResize(daabdf243431d3e4).(rslt->datacxx . . $ VRowResult#data., rslt->elem_countcxx . . $ VRowResult#elem_count.);
382 if (rc == 0)
383 rc = self->implcxx . . $ self_t#impl.(self, rslt->datacxx . . $ VRowResult#data.->basecxx . . $ KDataBuffer#base., components,
384 &start[argv[0].ucxx . . $ VRowData#u..datacxx . . $ VRowData#$anonymous_type_1#data..first_elemcxx . . $ VRowData#$anonymous_type_1#$anonymous_type_2#first_elem.],
385 &length[argv[1].ucxx . . $ VRowData#u..datacxx . . $ VRowData#$anonymous_type_1#data..first_elemcxx . . $ VRowData#$anonymous_type_1#$anonymous_type_2#first_elem.],
386 &props[argv[2].ucxx . . $ VRowData#u..datacxx . . $ VRowData#$anonymous_type_1#data..first_elemcxx . . $ VRowData#$anonymous_type_1#$anonymous_type_2#first_elem.],
387 &join[argv[3].ucxx . . $ VRowData#u..datacxx . . $ VRowData#$anonymous_type_1#data..first_elemcxx . . $ VRowData#$anonymous_type_1#$anonymous_type_2#first_elem.]);
388 return rc;
389 }
390
391 VTRANSFACT_IMPLcxx . . $ `interfaces/vdb/xform.h:791:9`!(NCBI_WGS_build_scaffold_read, 1, 0, 0)(void const * Self,
392 VXfactInfocxx . . $ VXfactInfo# const * info,
393 VFuncDesccxx . . $ VFuncDesc# * rslt,
394 VFactoryParamscxx . . $ VFactoryParams# const * cp,
395 VFunctionParamscxx . . $ VFunctionParams# const * dp)
396 {
397 self_tcxx . . $ self_t# *self = calloccxx . . $ calloc(63a7bf2941bfcd7a).(1, sizeof(*self));
398 if (self) {
399 rc_tcxx . . $ rc_t# const rc = init_selfcxx . . $ init_self(483ebcf96ad6e2a6).(self, info->tblcxx . . $ VXfactInfo#tbl., "(INSDC:4na:bin)READ");
400
401 if (rc == 0) {
402 self->implcxx . . $ self_t#impl. = build_scaffold_read_implcxx . . $ build_scaffold_read_impl(1923086a697a8164).;
403
404 rslt->selfcxx . . $ VFuncDesc#self. = self;
405 rslt->whackcxx . . $ VFuncDesc#whack. = whackcxx . . $ whack(5d22bdacc48458e8).;
406 rslt->variantcxx . . $ VFuncDesc#variant. = vftRowcxx . . $ vftRow.;
407 rslt->ucxx . . $ VFuncDesc#u..rfcxx . . $ VFuncDesc#$anonymous_type_7#rf. = build_scaffold_implcxx . . $ build_scaffold_impl(c7f02ef3aabbc98b).;
408 }
409 return rc;
410 }
411 return RCcxx . . $ `interfaces/klib/rc.h:111:9`!(rcXF, rcFunction, rcConstructing, rcMemory, rcExhausted);
412 }
413
414 VTRANSFACT_IMPLcxx . . $ `interfaces/vdb/xform.h:791:9`!(NCBI_WGS_build_scaffold_qual, 1, 0, 0)(void const * Self,
415 VXfactInfocxx . . $ VXfactInfo# const * info,
416 VFuncDesccxx . . $ VFuncDesc# * rslt,
417 VFactoryParamscxx . . $ VFactoryParams# const * cp,
418 VFunctionParamscxx . . $ VFunctionParams# const * dp)
419 {
420 self_tcxx . . $ self_t# *self = calloccxx . . $ calloc(63a7bf2941bfcd7a).(1, sizeof(*self));
421 if (self) {
422 rc_tcxx . . $ rc_t# const rc = init_selfcxx . . $ init_self(483ebcf96ad6e2a6).(self, info->tblcxx . . $ VXfactInfo#tbl., "(INSDC:quality:phred)QUALITY");
423
424 if (rc == 0) {
425 self->implcxx . . $ self_t#impl. = build_scaffold_qual_implcxx . . $ build_scaffold_qual_impl(1923086a697a8164).;
426
427 rslt->selfcxx . . $ VFuncDesc#self. = self;
428 rslt->whackcxx . . $ VFuncDesc#whack. = whackcxx . . $ whack(5d22bdacc48458e8).;
429 rslt->variantcxx . . $ VFuncDesc#variant. = vftRowcxx . . $ vftRow.;
430 rslt->ucxx . . $ VFuncDesc#u..rfcxx . . $ VFuncDesc#$anonymous_type_7#rf. = build_scaffold_implcxx . . $ build_scaffold_impl(c7f02ef3aabbc98b).;
431 }
432 return rc;
433 }
434 return RCcxx . . $ `interfaces/klib/rc.h:111:9`!(rcXF, rcFunction, rcConstructing, rcMemory, rcExhausted);
435 }