| 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 | |
| 28 | #include <sra/sradb.h>cxx . . $ `<file>/interfaces/sra/sradb.h`/ |
| 29 | #include <vdb/xform.h>cxx . . $ `<file>/interfaces/vdb/xform.h`/ |
| 30 | #include <vdb/vdb-priv.h>cxx . . $ `<file>/interfaces/vdb/vdb-priv.h`/ |
| 31 | #include <kdb/manager.h>cxx . . $ `<file>/interfaces/kdb/manager.h`/ |
| 32 | #include <kdb/table.h>cxx . . $ `<file>/interfaces/kdb/table.h`/ |
| 33 | #include <kdb/column.h>cxx . . $ `<file>/interfaces/kdb/column.h`/ |
| 34 | #include <kdb/meta.h>cxx . . $ `<file>/interfaces/kdb/meta.h`/ |
| 35 | #include <klib/data-buffer.h>cxx . . $ `<file>/interfaces/klib/data-buffer.h`/ |
| 36 | #include <klib/rc.h>cxx . . $ `<file>/interfaces/klib/rc.h`/ |
| 37 | #include <sysalloc.h>cxx . . $ `<file>/interfaces/os/unix/sysalloc.h`/ |
| 38 | |
| 39 | #include <stdlib.h> |
| 40 | #include <string.h> |
| 41 | #include <assert.h> |
| 42 | |
| 43 | static |
| 44 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! KMetadataStrEqualcxx . . $ KMetadataStrEqual(3d935af782b22672). ( const KMetadatacxx . . $ KMetadata# *meta, const char *path, const char *str ) |
| 45 | { |
| 46 | const KMDataNodecxx . . $ KMDataNode# *node; |
| 47 | rc_tcxx . . $ rc_t# rc = KMetadataOpenNodeReadcxx . . $ KMetadataOpenNodeRead(5f99d365c95dd08). ( meta, & node, "%s", path ); |
| 48 | if ( rc == 0 ) |
| 49 | { |
| 50 | size_t num_read; |
| 51 | char buff [ 4096 ]; |
| 52 | rc = KMDataNodeReadCStringcxx . . $ KMDataNodeReadCString(82610c51083eb9a6). ( node, buff, sizeof buff, & num_read ); |
| 53 | KMDataNodeReleasecxx . . $ KMDataNodeRelease(706d8ad95cdbe72c). ( node ); |
| 54 | if ( rc == 0 ) |
| 55 | { |
| 56 | if ( strcmpcxx . . $ strcmp(5ae29d726ae57f88). ( buff, str ) == 0 ) |
| 57 | return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!; |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; |
| 62 | } |
| 63 | |
| 64 | static |
| 65 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! KMetadataNumEqualcxx . . $ KMetadataNumEqual(839b546e9cf341de). ( const KMetadatacxx . . $ KMetadata# *meta, const char *path, int64_tcxx . . $ int64_t# num ) |
| 66 | { |
| 67 | const KMDataNodecxx . . $ KMDataNode# *node; |
| 68 | rc_tcxx . . $ rc_t# rc = KMetadataOpenNodeReadcxx . . $ KMetadataOpenNodeRead(5f99d365c95dd08). ( meta, & node, "%s", path ); |
| 69 | if ( rc == 0 ) |
| 70 | { |
| 71 | int64_tcxx . . $ int64_t# i; |
| 72 | rc = KMDataNodeReadAsI64cxx . . $ KMDataNodeReadAsI64(33c932f621704ce9). ( node, & i ); |
| 73 | KMDataNodeReleasecxx . . $ KMDataNodeRelease(706d8ad95cdbe72c). ( node ); |
| 74 | if ( rc == 0 ) |
| 75 | { |
| 76 | if ( i == num ) |
| 77 | return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!; |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; |
| 82 | } |
| 83 | |
| 84 | static |
| 85 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! KMetadataVersEqualcxx . . $ KMetadataVersEqual(3d935af782b22672). ( const KMetadatacxx . . $ KMetadata# *meta, const char *name, const char *vers ) |
| 86 | { |
| 87 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! equal = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; |
| 88 | const KMDataNodecxx . . $ KMDataNode# *node; |
| 89 | rc_tcxx . . $ rc_t# rc = KMetadataOpenNodeReadcxx . . $ KMetadataOpenNodeRead(5f99d365c95dd08). ( meta, & node, "SOFTWARE/loader" ); |
| 90 | if ( rc == 0 ) |
| 91 | { |
| 92 | size_t num_read; |
| 93 | char attr [ 256 ]; |
| 94 | rc = KMDataNodeReadAttrcxx . . $ KMDataNodeReadAttr(a93ea3b73cd8b3ef). ( node, "name", attr, sizeof attr, & num_read ); |
| 95 | if ( rc == 0 ) |
| 96 | { |
| 97 | if ( memcmpcxx . . $ memcmp(36f949851efa3055). ( attr, name, strlencxx . . $ strlen(751346f8406fd082). ( name ) ) == 0 ) |
| 98 | { |
| 99 | if ( vers == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! || vers [ 0 ] == 0 ) |
| 100 | equal = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!; |
| 101 | else |
| 102 | { |
| 103 | rc = KMDataNodeReadAttrcxx . . $ KMDataNodeReadAttr(a93ea3b73cd8b3ef). ( node, "vers", attr, sizeof attr, & num_read ); |
| 104 | if ( rc == 0 ) |
| 105 | { |
| 106 | if ( memcmpcxx . . $ memcmp(36f949851efa3055). ( attr, vers, strlencxx . . $ strlen(751346f8406fd082). ( vers ) ) == 0 ) |
| 107 | equal = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!; |
| 108 | } |
| 109 | } |
| 110 | } |
| 111 | } |
| 112 | |
| 113 | KMDataNodeReleasecxx . . $ KMDataNodeRelease(706d8ad95cdbe72c). ( node ); |
| 114 | } |
| 115 | |
| 116 | return equal; |
| 117 | } |
| 118 | |
| 119 | static |
| 120 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! KMetadataExistscxx . . $ KMetadataExists(9e739f42c6a4c3fa). ( const KMetadatacxx . . $ KMetadata# *meta, const char *path ) |
| 121 | { |
| 122 | const KMDataNodecxx . . $ KMDataNode# *node; |
| 123 | rc_tcxx . . $ rc_t# rc = KMetadataOpenNodeReadcxx . . $ KMetadataOpenNodeRead(5f99d365c95dd08). ( meta, & node, "%s", path ); |
| 124 | if ( rc != 0 ) |
| 125 | return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; |
| 126 | KMDataNodeReleasecxx . . $ KMDataNodeRelease(706d8ad95cdbe72c). ( node ); |
| 127 | return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!; |
| 128 | } |
| 129 | |
| 130 | static |
| 131 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! KMetadataEmptycxx . . $ KMetadataEmpty(9e739f42c6a4c3fa). ( const KMetadatacxx . . $ KMetadata# *meta, const char *path ) |
| 132 | { |
| 133 | size_t num_read, remaining; |
| 134 | const KMDataNodecxx . . $ KMDataNode# *node; |
| 135 | rc_tcxx . . $ rc_t# rc = KMetadataOpenNodeReadcxx . . $ KMetadataOpenNodeRead(5f99d365c95dd08). ( meta, & node, "%s", path ); |
| 136 | if ( rc != 0 ) |
| 137 | return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!; |
| 138 | rc = KMDataNodeReadcxx . . $ KMDataNodeRead(5e1d632dbc2682e9). ( node, 0, & num_read, 0, & num_read, & remaining ); |
| 139 | KMDataNodeReleasecxx . . $ KMDataNodeRelease(706d8ad95cdbe72c). ( node ); |
| 140 | if ( rc == 0 && remaining != 0 ) |
| 141 | return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; |
| 142 | return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!; |
| 143 | } |
| 144 | |
| 145 | static |
| 146 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! KColumnTypeEqualcxx . . $ KColumnTypeEqual(4f021f39752fafd5). ( const KTablecxx . . $ KTable# *tbl, const char *col, const char *type ) |
| 147 | { |
| 148 | /* TBD - this operation is expensive |
| 149 | should be addressed either by caching opened columns on table |
| 150 | or by introducing a path to open column metadata from table */ |
| 151 | const KColumncxx . . $ KColumn# *kcol; |
| 152 | rc_tcxx . . $ rc_t# rc = KTableOpenColumnReadcxx . . $ KTableOpenColumnRead(8b978414ef94758b). ( tbl, & kcol, "%s", col ); |
| 153 | if ( rc == 0 ) |
| 154 | { |
| 155 | const KMetadatacxx . . $ KMetadata# *meta; |
| 156 | rc = KColumnOpenMetadataReadcxx . . $ KColumnOpenMetadataRead(e3031ab0a81e1b5d). ( kcol, & meta ); |
| 157 | KColumnReleasecxx . . $ KColumnRelease(75d1d1a865ba8362). ( kcol ); |
| 158 | if ( rc == 0 ) |
| 159 | { |
| 160 | /* this is a expected to be a v1 column |
| 161 | open its decoding node */ |
| 162 | const KMDataNodecxx . . $ KMDataNode# *node; |
| 163 | rc = KMetadataOpenNodeReadcxx . . $ KMetadataOpenNodeRead(5f99d365c95dd08). ( meta, & node, "decoding" ); |
| 164 | KMetadataReleasecxx . . $ KMetadataRelease(42a68de8c58e7f8b). ( meta ); |
| 165 | if ( rc == 0 ) |
| 166 | { |
| 167 | /* read its type */ |
| 168 | size_t size; |
| 169 | char type_expr [ 256 ]; |
| 170 | rc = KMDataNodeReadAttrcxx . . $ KMDataNodeReadAttr(a93ea3b73cd8b3ef). ( node, "type", |
| 171 | type_expr, sizeof type_expr, & size ); |
| 172 | KMDataNodeReleasecxx . . $ KMDataNodeRelease(706d8ad95cdbe72c). ( node ); |
| 173 | if ( rc == 0 ) |
| 174 | { |
| 175 | if ( memcmpcxx . . $ memcmp(36f949851efa3055). ( type_expr, type, strlencxx . . $ strlen(751346f8406fd082). ( type ) ) == 0 ) |
| 176 | return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!; |
| 177 | } |
| 178 | } |
| 179 | } |
| 180 | } |
| 181 | return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; |
| 182 | } |
| 183 | |
| 184 | |
| 185 | /* accept_untyped |
| 186 | * recognizes any table at all |
| 187 | * used by admin to correct corrupt tables |
| 188 | */ |
| 189 | MOD_EXPORTcxx . . $ `interfaces/vdb/extern.h:44:9`! |
| 190 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! CCcxx . . $ `interfaces/kfc/callconv.h:44:11`! NCBI_SRA_accept_untypedcxx . . $ NCBI_SRA_accept_untyped(8bf4e92bbad94c57). ( const KTablecxx . . $ KTable# *tbl, const KMetadatacxx . . $ KMetadata# *meta ) |
| 191 | { |
| 192 | return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!; |
| 193 | } |
| 194 | |
| 195 | |
| 196 | /* 454_untyped_0 |
| 197 | * recognizes all runs produced with v0 loader |
| 198 | */ |
| 199 | MOD_EXPORTcxx . . $ `interfaces/vdb/extern.h:44:9`! |
| 200 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! CCcxx . . $ `interfaces/kfc/callconv.h:44:11`! NCBI_SRA__454__untyped_0cxx . . $ NCBI_SRA__454__untyped_0(8bf4e92bbad94c57). ( const KTablecxx . . $ KTable# *tbl, const KMetadatacxx . . $ KMetadata# *meta ) |
| 201 | { |
| 202 | if ( KMetadataStrEqualcxx . . $ KMetadataStrEqual(3d935af782b22672). ( meta, "PLATFORM", "454" ) ) |
| 203 | { |
| 204 | if ( ! KMetadataExistscxx . . $ KMetadataExists(9e739f42c6a4c3fa). ( meta, "SOFTWARE" ) ) |
| 205 | { |
| 206 | if ( KMetadataExistscxx . . $ KMetadataExists(9e739f42c6a4c3fa). ( meta, "MSC454_FLOW_CHARS" ) && |
| 207 | KMetadataExistscxx . . $ KMetadataExists(9e739f42c6a4c3fa). ( meta, "MSC454_KEY_SEQUENCE" ) ) |
| 208 | { |
| 209 | /* don't bother looking at columns */ |
| 210 | return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!; |
| 211 | } |
| 212 | } |
| 213 | } |
| 214 | return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; |
| 215 | } |
| 216 | |
| 217 | |
| 218 | /* 454_untyped_1_2a |
| 219 | * recognizes runs produced with v1.2 loader |
| 220 | * where the linker is present |
| 221 | * and a physical READ_SEG is present |
| 222 | */ |
| 223 | MOD_EXPORTcxx . . $ `interfaces/vdb/extern.h:44:9`! |
| 224 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! CCcxx . . $ `interfaces/kfc/callconv.h:44:11`! NCBI_SRA__454__untyped_1_2acxx . . $ NCBI_SRA__454__untyped_1_2a(8bf4e92bbad94c57). ( const KTablecxx . . $ KTable# *tbl, const KMetadatacxx . . $ KMetadata# *meta ) |
| 225 | { |
| 226 | if ( KMetadataVersEqualcxx . . $ KMetadataVersEqual(3d935af782b22672). ( meta, "sff-load", "1" ) || |
| 227 | KMetadataVersEqualcxx . . $ KMetadataVersEqual(3d935af782b22672). ( meta, "sff-load", "0" ) ) |
| 228 | { |
| 229 | if ( KMetadataExistscxx . . $ KMetadataExists(9e739f42c6a4c3fa). ( meta, "col/NREADS" ) ) |
| 230 | { |
| 231 | if ( ! KMetadataEmptycxx . . $ KMetadataEmpty(9e739f42c6a4c3fa). ( meta, "col/LINKER_SEQUENCE/row" ) ) |
| 232 | return KTableExistscxx . . $ KTableExists(e775571edbbd3fb8). ( tbl, kptColumncxx . . $ kptColumn., "READ_SEG" ); |
| 233 | } |
| 234 | } |
| 235 | return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; |
| 236 | } |
| 237 | |
| 238 | |
| 239 | /* 454_untyped_1_2b |
| 240 | * recognizes runs produced with v1.2 loader |
| 241 | * where the linker is missing or empty |
| 242 | * and a physical READ_SEG is present |
| 243 | */ |
| 244 | MOD_EXPORTcxx . . $ `interfaces/vdb/extern.h:44:9`! |
| 245 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! CCcxx . . $ `interfaces/kfc/callconv.h:44:11`! NCBI_SRA__454__untyped_1_2bcxx . . $ NCBI_SRA__454__untyped_1_2b(8bf4e92bbad94c57). ( const KTablecxx . . $ KTable# *tbl, const KMetadatacxx . . $ KMetadata# *meta ) |
| 246 | { |
| 247 | if ( KMetadataVersEqualcxx . . $ KMetadataVersEqual(3d935af782b22672). ( meta, "sff-load", "1" ) || |
| 248 | KMetadataVersEqualcxx . . $ KMetadataVersEqual(3d935af782b22672). ( meta, "sff-load", "0" ) ) |
| 249 | { |
| 250 | if ( KMetadataExistscxx . . $ KMetadataExists(9e739f42c6a4c3fa). ( meta, "col/NREADS" ) ) |
| 251 | { |
| 252 | if ( KMetadataEmptycxx . . $ KMetadataEmpty(9e739f42c6a4c3fa). ( meta, "col/LINKER_SEQUENCE/row" ) ) |
| 253 | return KTableExistscxx . . $ KTableExists(e775571edbbd3fb8). ( tbl, kptColumncxx . . $ kptColumn., "READ_SEG" ); |
| 254 | } |
| 255 | } |
| 256 | return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; |
| 257 | } |
| 258 | |
| 259 | |
| 260 | /* Illumina_untyped_0a |
| 261 | * recognizes runs produced with v0 loader with 4-channel QUALITY |
| 262 | */ |
| 263 | MOD_EXPORTcxx . . $ `interfaces/vdb/extern.h:44:9`! |
| 264 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! CCcxx . . $ `interfaces/kfc/callconv.h:44:11`! NCBI_SRA_Illumina_untyped_0acxx . . $ NCBI_SRA_Illumina_untyped_0a(8bf4e92bbad94c57). ( const KTablecxx . . $ KTable# *tbl, const KMetadatacxx . . $ KMetadata# *meta ) |
| 265 | { |
| 266 | if ( KMetadataStrEqualcxx . . $ KMetadataStrEqual(3d935af782b22672). ( meta, "PLATFORM", "SOLEXA" ) ) |
| 267 | { |
| 268 | if ( ! KMetadataExistscxx . . $ KMetadataExists(9e739f42c6a4c3fa). ( meta, "SOFTWARE" ) ) |
| 269 | { |
| 270 | if ( KMetadataNumEqualcxx . . $ KMetadataNumEqual(839b546e9cf341de). ( meta, "NUMBER_PRB_CHANNELS", 4 ) || |
| 271 | KMetadataNumEqualcxx . . $ KMetadataNumEqual(839b546e9cf341de). ( meta, "NUMBER_PRB_CHANNELS_1", 4 ) ) |
| 272 | { |
| 273 | return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!; |
| 274 | } |
| 275 | } |
| 276 | } |
| 277 | return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; |
| 278 | } |
| 279 | |
| 280 | |
| 281 | /* Illumina_untyped_0b |
| 282 | * recognizes runs produced with v0 loader with single-channel QUALITY or QUALITY2 |
| 283 | */ |
| 284 | MOD_EXPORTcxx . . $ `interfaces/vdb/extern.h:44:9`! |
| 285 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! CCcxx . . $ `interfaces/kfc/callconv.h:44:11`! NCBI_SRA_Illumina_untyped_0bcxx . . $ NCBI_SRA_Illumina_untyped_0b(8bf4e92bbad94c57). ( const KTablecxx . . $ KTable# *tbl, const KMetadatacxx . . $ KMetadata# *meta ) |
| 286 | { |
| 287 | if ( KMetadataStrEqualcxx . . $ KMetadataStrEqual(3d935af782b22672). ( meta, "PLATFORM", "SOLEXA" ) ) |
| 288 | { |
| 289 | if ( ! KMetadataExistscxx . . $ KMetadataExists(9e739f42c6a4c3fa). ( meta, "SOFTWARE" ) ) |
| 290 | { |
| 291 | if ( KMetadataNumEqualcxx . . $ KMetadataNumEqual(839b546e9cf341de). ( meta, "NUMBER_PRB_CHANNELS", 1 ) || |
| 292 | KMetadataNumEqualcxx . . $ KMetadataNumEqual(839b546e9cf341de). ( meta, "NUMBER_PRB_CHANNELS_1", 1 ) || |
| 293 | KMetadataNumEqualcxx . . $ KMetadataNumEqual(839b546e9cf341de). ( meta, "NUMBER_PRB_CHANNELS_2", 1 ) ) |
| 294 | { |
| 295 | return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!; |
| 296 | } |
| 297 | } |
| 298 | } |
| 299 | return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; |
| 300 | } |
| 301 | |
| 302 | |
| 303 | /* Illumina_untyped_1a |
| 304 | * recognizes runs produced with v1 srf and native loaders |
| 305 | * having 4-channel qualities |
| 306 | */ |
| 307 | MOD_EXPORTcxx . . $ `interfaces/vdb/extern.h:44:9`! |
| 308 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! CCcxx . . $ `interfaces/kfc/callconv.h:44:11`! NCBI_SRA_Illumina_untyped_1acxx . . $ NCBI_SRA_Illumina_untyped_1a(8bf4e92bbad94c57). ( const KTablecxx . . $ KTable# *tbl, const KMetadatacxx . . $ KMetadata# *meta ) |
| 309 | { |
| 310 | if ( KMetadataStrEqualcxx . . $ KMetadataStrEqual(3d935af782b22672). ( meta, "PLATFORM", "ILLUMINA" ) ) |
| 311 | { |
| 312 | if ( KMetadataVersEqualcxx . . $ KMetadataVersEqual(3d935af782b22672). ( meta, "illumina-load", "1" ) || |
| 313 | KMetadataVersEqualcxx . . $ KMetadataVersEqual(3d935af782b22672). ( meta, "srf-load", "1" ) ) |
| 314 | { |
| 315 | return KColumnTypeEqualcxx . . $ KColumnTypeEqual(4f021f39752fafd5). ( tbl, "QUALITY", "NCBI:SRA:swapped_qual4" ); |
| 316 | } |
| 317 | } |
| 318 | return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; |
| 319 | } |
| 320 | |
| 321 | |
| 322 | /* Illumina_untyped_1b |
| 323 | * recognizes runs produced with all v1 loaders |
| 324 | * having single-channel qualities |
| 325 | */ |
| 326 | MOD_EXPORTcxx . . $ `interfaces/vdb/extern.h:44:9`! |
| 327 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! CCcxx . . $ `interfaces/kfc/callconv.h:44:11`! NCBI_SRA_Illumina_untyped_1bcxx . . $ NCBI_SRA_Illumina_untyped_1b(8bf4e92bbad94c57). ( const KTablecxx . . $ KTable# *tbl, const KMetadatacxx . . $ KMetadata# *meta ) |
| 328 | { |
| 329 | if ( KMetadataStrEqualcxx . . $ KMetadataStrEqual(3d935af782b22672). ( meta, "PLATFORM", "ILLUMINA" ) ) |
| 330 | { |
| 331 | if ( KMetadataVersEqualcxx . . $ KMetadataVersEqual(3d935af782b22672). ( meta, "fastq-load", "1" ) || |
| 332 | KMetadataVersEqualcxx . . $ KMetadataVersEqual(3d935af782b22672). ( meta, "fastq-load", "0" ) ) |
| 333 | return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!; |
| 334 | if ( KMetadataVersEqualcxx . . $ KMetadataVersEqual(3d935af782b22672). ( meta, "illumina-load", "1" ) || |
| 335 | KMetadataVersEqualcxx . . $ KMetadataVersEqual(3d935af782b22672). ( meta, "srf-load", "1" ) ) |
| 336 | { |
| 337 | return ! KColumnTypeEqualcxx . . $ KColumnTypeEqual(4f021f39752fafd5). ( tbl, "QUALITY", "NCBI:SRA:swapped_qual4" ); |
| 338 | } |
| 339 | } |
| 340 | return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; |
| 341 | } |
| 342 | |
| 343 | |
| 344 | /* ABI_untyped_1 |
| 345 | * recognizes runs produced with all v1 loaders |
| 346 | */ |
| 347 | MOD_EXPORTcxx . . $ `interfaces/vdb/extern.h:44:9`! |
| 348 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! CCcxx . . $ `interfaces/kfc/callconv.h:44:11`! NCBI_SRA_ABI_untyped_1cxx . . $ NCBI_SRA_ABI_untyped_1(8bf4e92bbad94c57). ( const KTablecxx . . $ KTable# *tbl, const KMetadatacxx . . $ KMetadata# *meta ) |
| 349 | { |
| 350 | if ( KMetadataStrEqualcxx . . $ KMetadataStrEqual(3d935af782b22672). ( meta, "PLATFORM", "ABSOLID" ) ) |
| 351 | { |
| 352 | if ( ! KMetadataExistscxx . . $ KMetadataExists(9e739f42c6a4c3fa). ( meta, "SOFTWARE" ) || |
| 353 | KMetadataVersEqualcxx . . $ KMetadataVersEqual(3d935af782b22672). ( meta, "abi-load", "1" ) || |
| 354 | KMetadataVersEqualcxx . . $ KMetadataVersEqual(3d935af782b22672). ( meta, "srf-load", "1" ) ) |
| 355 | { |
| 356 | return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!; |
| 357 | } |
| 358 | } |
| 359 | return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; |
| 360 | } |
| 361 | |
| 362 | |
| 363 | /* this is here simply to force the compiler to check |
| 364 | the function signatures listed above against a |
| 365 | typedef for the function used by vdb. */ |
| 366 | #if _DEBUGGINGcxx . . $ `<built-in>:419:9`! |
| 367 | VUntypedFunccxx . . $ VUntypedFunc# test_signaturecxx . . $ test_signature. [] = |
| 368 | { |
| 369 | NCBI_SRA__454__untyped_0cxx . . $ NCBI_SRA__454__untyped_0(8bf4e92bbad94c57)., |
| 370 | NCBI_SRA__454__untyped_1_2acxx . . $ NCBI_SRA__454__untyped_1_2a(8bf4e92bbad94c57)., |
| 371 | NCBI_SRA__454__untyped_1_2bcxx . . $ NCBI_SRA__454__untyped_1_2b(8bf4e92bbad94c57)., |
| 372 | NCBI_SRA_Illumina_untyped_0acxx . . $ NCBI_SRA_Illumina_untyped_0a(8bf4e92bbad94c57)., |
| 373 | NCBI_SRA_Illumina_untyped_0bcxx . . $ NCBI_SRA_Illumina_untyped_0b(8bf4e92bbad94c57)., |
| 374 | NCBI_SRA_Illumina_untyped_1acxx . . $ NCBI_SRA_Illumina_untyped_1a(8bf4e92bbad94c57)., |
| 375 | NCBI_SRA_Illumina_untyped_1bcxx . . $ NCBI_SRA_Illumina_untyped_1b(8bf4e92bbad94c57)., |
| 376 | NCBI_SRA_ABI_untyped_1cxx . . $ NCBI_SRA_ABI_untyped_1(8bf4e92bbad94c57). |
| 377 | }; |
| 378 | #endif |