comparison srf2fastq/io_lib-1.12.2/progs/scf_info.c @ 0:d901c9f41a6a default tip

Migrated tool version 1.0.1 from old tool shed archive to new tool shed repository
author dawe
date Tue, 07 Jun 2011 17:48:05 -0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:d901c9f41a6a
1 /*
2 * Copyright (c) Medical Research Council 1994. All rights reserved.
3 *
4 * Permission to use, copy, modify and distribute this software and its
5 * documentation for any purpose is hereby granted without fee, provided that
6 * this copyright and notice appears in all copies.
7 *
8 * This file was written by James Bonfield, Simon Dear, Rodger Staden,
9 * as part of the Staden Package at the MRC Laboratory of Molecular
10 * Biology, Hills Road, Cambridge, CB2 2QH, United Kingdom.
11 *
12 * MRC disclaims all warranties with regard to this software.
13 */
14
15 #include <stdio.h>
16 #include <io_lib/scf.h>
17
18 int main(int argc, char **argv) {
19 Scf *scf;
20
21 if (argc != 2) {
22 fprintf(stderr, "Usage: scf_info scf_filename\n");
23 return 1;
24 }
25
26 scf = read_scf(argv[1]);
27
28 if (scf == NULL) {
29 fprintf(stderr, "read_scf failed\n");
30 return 1;
31 }
32
33 printf("Version_number %.4s\n", scf->header.version);
34 printf("Number_of_samples %d\n", scf->header.samples);
35 printf("Samples_offset %d\n", scf->header.samples_offset);
36 printf("Samples_size %d\n", scf->header.sample_size);
37 printf("Number_of_bases %d\n", scf->header.bases);
38 printf("Bases_offset %d\n", scf->header.bases_offset);
39 printf("Comments_size %d\n", scf->header.comments_size);
40 printf("Comments_offset %d\n", scf->header.comments_offset);
41 printf("Left_clip %d\n", scf->header.bases_left_clip);
42 printf("Right_clip %d\n", scf->header.bases_right_clip);
43 printf("Code set %d\n", scf->header.code_set);
44
45 scf_deallocate(scf);
46
47 return 0;
48 }