File: README

package info (click to toggle)
libstar-parser-perl 0.59-5
  • links: PTS, VCS
  • area: non-free
  • in suites: forky, sid
  • size: 220 kB
  • sloc: perl: 1,360; makefile: 2
file content (126 lines) | stat: -rw-r--r-- 3,560 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
This document describes the Perl modules and scripts contained in this 
distribution for parsing STAR compliant data files and dictionaries.

It contains the following parts:

-- General description
-- Installation instructions
-- Usage instructions
-- Copyright notice


General description
-------------------

This distribution contains a set of Perl modules for parsing STAR compliant
data files and dictionaries, for example CIF or mmCIF data files and
dictionaries. While these tools are not limited to CIF or mmCIF files, they
do not allow the presence of nested loops.

The following modules are included in this distribution:

  STAR::Parser
  STAR::DataBlock
  STAR::Dictionary
  STAR::Writer
  STAR::Checker
  STAR::Filter 

Some simple examples of application scripts are also included.


Installation instructions
-------------------------

Unzip and untar the archive:

  % gunzip STAR.tar.gz
  % tar xvf STAR.tar
  % cd STAR

Install the perl modules:

  % perl Makefile.PL
  % make
  % make test
  % make install

These commands should install the modules into a default location on your
system.

Alternatively, you may create a STAR directory in a location of your choice,
copy the "*.pm" files into the newly created STAR directory, and include a 
"use lib" line in all of the "*.pl" scripts in the bin directory:

  use lib "<path to the directory above STAR>";

The modules require Storable to be installed in your Perl distribution.
(See ftp://ftp.cpan.org/pub/perl/CPAN/modules/by-module/Storable/ )


Usage instructions
------------------

Users are expected to have a working knowledge of Perl and a basic familiarity
of CIF or some other STAR compliant data file formats. 

Detailed documentation for each "*.pm" Perl module can be extracted 
with pod2html:
 
  % pod2html Parser.pm > Parser.html

or viewed with perldoc:
  
  % perldoc Parser.pm

Each "*.pl" script has a minimum description and usage information embedded, 
which can be viewed with perldoc:

  % perldoc parse.pl

The included scripts are a mixture of basic utility scripts (e.g. parse.pl or 
check.pl), and very simplistic examples that are meant to test certain methods 
in the modules (e.g. create.pl). Most users would generally be expected to 
write their own customized scripts.

The included documentation should be sufficient for all the scripts and 
modules. As a general comment, please be aware of the type of files each 
script operates on:

parse.pl reads a CIF text file (.cif file). It has an option of saving 
  the parsed data structure as a ".cob" (cif object) file. Note that the file
  extentions are by convention only, and are not enforced.

write.pl reads a data structure (.cob file) and outputs a CIF text file 
  (.cif file).

All other scripts operate on data structures (.cob files), *NOT* on CIF text 
  files (.cif files).

Therefore, a user will probably want to first parse files and dictionaries,
save the data structures (as .cob files) and then apply some of the other 
scripts to the saved data structures:

  % perl parse.pl -s 1LEP.cif
  % perl parse.pl -Ds mmcif1000.dic
  % perl check.pl -l 1LEP.cob cif_mm.dic.cob

etc.

More information on mmCIF can be found at these web sites:

  http://pdb.rutgers.edu/mmcif/
  http://ndbserver.rutgers.edu/mmcif/

Additional questions or comments may be directed to the author of these 
modules and scripts:

  Wolfgang Bluhm
  mail@wbluhm.com


Copyright notice
----------------

A full copyright statement is provided with the distribution
(c) 2000 University of California, San Diego