1write_reading(3)                Staden Package                write_reading(3)
2
3
4

NAME

6       write_reading,  fwrite_reading  -  Write  a Read structure into a trace
7       file.
8
9

SYNOPSIS

11       #include <Read.h>
12
13       int write_reading(
14            char *filename,
15            Read *read,
16            int format);
17
18       int fwrite_reading(
19            FILE *fp,
20            Read *read,
21            int format);
22
23

DESCRIPTION

25       These functions write a Read structure into a trace file. The principle
26       format support is the SCF format. Although reading is supported for ABI
27       and ALF, writing is not. Additionally, it is possible  to  write  using
28       the  plain  (old)  staden  format files or as Experiment files. In both
29       these cases only the sequence component of the trace file will be writ‐
30       ten.
31
32       When  writing as an experiment file the QL, QR and SQ fields are gener‐
33       ated from the Read structure. If we previously created the Read  struc‐
34       ture  from reading an experiment file then the original experiment file
35       data is also written. Otherwise EN, ID, LN and LT lines are also gener‐
36       ated.
37
38       write_reading()  writes  a  Read structure to the specified filename in
39       the specified format. Formats available are TT_SCF,  TT_PLNand  TT_EXP.
40       Specifying format TT_ANY will be treated as TT_SCF.
41
42       fwrite_reading()  writes a Read structure to the specified FILE pointer
43       in the specified format. Apart from writing to FILE pointer instead  of
44       a filename, the function is identical to write_reading().
45
46

RETURN VALUES

48       On  successful  completion,  the  write_reading()  and fwrite_reading()
49       functions return 0. Otherwise these functions return -1.
50
51

SEE ALSO

53       read_reading(3), fread_reading(3), deallocate_reading(3), scf(4),
54       ExperimentFile(4)
55
56
57
58                                                              write_reading(3)
Impressum