comparison libs/sratoolkit.2.8.0-centos_linux64/schema/align/pileup-stats.vschema @ 3:38ad1130d077 draft

planemo upload commit a4fb57231f274270afbfebd47f67df05babffa4a-dirty
author charles_s_test
date Mon, 27 Nov 2017 11:21:07 -0500
parents
children
comparison
equal deleted inserted replaced
2:0d65b71ff8df 3:38ad1130d077
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
27 version 1;
28
29 include 'vdb/built-in.vschema';
30 include 'vdb/vdb.vschema';
31 include 'insdc/insdc.vschema';
32
33
34 /*--------------------------------------------------------------------------
35 * tables
36 */
37
38 table NCBI:pileup:tbl:pileup_stats #1
39 {
40 /* RUN_NAME
41 * expected to be a single value for entire object
42 */
43 extern column ascii RUN_NAME;
44
45 /* REFERENCE_SPEC
46 * the canonical reference accession
47 * an index is stored in 'ref_spec'.
48 */
49 extern column ascii REFERENCE_SPEC = out_reference_spec;
50 physical < ascii > zip_encoding .REFERENCE_SPEC
51 = idx:text:insert #1.0 < 'ref_spec' > ( REFERENCE_SPEC );
52 ascii out_reference_spec
53 = idx:text:project #1.0 < 'ref_spec' > ( .REFERENCE_SPEC );
54
55 /* REF_POS
56 * we dedicate a row to every position on the reference
57 * some rows are empty, other than their position
58 */
59 extern column I64 REF_POS = out_ref_pos;
60 physical < I64 > izip_encoding .REF_POS = in_ref_pos;
61 I64 in_ref_pos
62 = < I64 > sub_row_id ( REF_POS )
63 ;
64 I64 out_ref_pos
65 = < I64 > add_row_id ( .REF_POS )
66 | < I64 > add_row_id ( .REF_POS_TRANS )
67 ;
68
69 /* REF_POS_TRANS
70 * records the translation between current row-id
71 * and REF_POS, such that
72 * row-id () + REF_POS_TRANS == REF_POS
73 */
74 extern column I64 REF_POS_TRANS = out_ref_pos_trans;
75 physical < I64 > izip_encoding .REF_POS_TRANS = in_ref_pos_trans;
76 I64 in_ref_pos_trans
77 = REF_POS_TRANS
78 ;
79 I64 out_ref_pos_trans
80 = .REF_POS_TRANS
81 | < I64 > sub_row_id ( .REF_POS )
82 ;
83
84 /* REF_BASE
85 * this optional column records data extracted from reference
86 * it is the base at REF_POS
87 */
88 extern column < INSDC:dna:text > zip_encoding REF_BASE;
89
90 /* DEPTH
91 * depth of coverage at REF_POS
92 */
93 extern column < U32 > izip_encoding DEPTH;
94
95 /* MISMATCH_COUNTS
96 * the number of pileup bases that do not match against REF_BASE
97 * the normal vector MISMATCH_COUNTS [ 4 ] is recorded as MISMATCH_COUNTS [ 3 ]
98 * where the element representing REF_BASE has been eliminated.
99 */
100 extern column < U32 > izip_encoding MISMATCH_COUNTS;
101
102 /* INSERTION_COUNTS
103 * the number of insertions-before-bases
104 */
105 extern column < U32 > izip_encoding INSERTION_COUNTS;
106
107 /* DELETION_COUNT
108 * the number of deletions at REF_POS
109 */
110 extern column < U32 > izip_encoding DELETION_COUNT;
111 }
112
113 /*--------------------------------------------------------------------------
114 * databases
115 */
116
117 database NCBI:pileup:db:pileup_stats #1
118 {
119 table NCBI:pileup:tbl:pileup_stats #1 STATS;
120 }