comparison libs/sratoolkit.2.8.0-centos_linux64/schema/sra/helicos.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 /*==========================================================================
28 * NCBI Helicos Sequence Read Archive schema
29 */
30 version 1;
31
32 include 'ncbi/sra.vschema';
33 include 'ncbi/spotname.vschema';
34
35
36 /*--------------------------------------------------------------------------
37 * functions
38 */
39
40 /* tokenize_spot_name
41 * scans name on input
42 * tokenizes into parts
43 */
44 extern function NCBI:SRA:spot_name_token
45 NCBI:SRA:Helicos:tokenize_spot_name #1 ( ascii name );
46
47
48 /* Helicos:tbl
49 *
50 * history:
51 * 1.0.1 - explictly base upon ancestry
52 * 1.0.2 - base explicitly upon latest ancestry
53 * 1.0.3 - base explicitly upon latest ancestry
54 * 1.0.4 - base explicitly upon latest ancestry
55 */
56 table NCBI:SRA:Helicos:tbl:v2 #1.0.4
57 = NCBI:SRA:tbl:sra #2.1.3
58 , NCBI:tbl:base_space #2.0.3
59 , NCBI:tbl:phred_quality #2.0.3
60 {
61 ascii platform_name
62 = < ascii > echo < "HELICOS" > ();
63
64 /* NAME tokenizing and coordinates
65 * most work happens in skeyname table
66 * we still obtain REGION from name
67 */
68
69 readonly column INSDC:coord:val CHANNEL = ( INSDC:coord:val )
70 NCBI:SRA:extract_name_coord < NCBI:SRA:name_token:L > ( _out_name, out_spot_name_tok );
71 readonly column INSDC:coord:val FIELD = ( INSDC:coord:val )
72 NCBI:SRA:extract_name_coord < NCBI:SRA:name_token:T > ( _out_name, out_spot_name_tok );
73 NCBI:SRA:spot_name_token out_spot_name_tok
74 = NCBI:SRA:Helicos:tokenize_spot_name ( _out_name );
75
76 readonly column INSDC:coord:val CAMERA = out_x_coord;
77 readonly column INSDC:coord:val POS = out_y_coord;
78
79 NCBI:SRA:spot_name_token in_spot_name_tok
80 = NCBI:SRA:Helicos:tokenize_spot_name ( NAME );
81
82 INSDC:coord:zero trim_start
83 = < INSDC:coord:zero > echo < 0 > ();
84 INSDC:coord:len trim_len = spot_len;
85 };