This file is indexed.

/usr/share/perl5/SWISS/CCbpc_properties.pm is in libswiss-perl 1.67-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
package SWISS::CCbpc_properties;

use vars qw($AUTOLOAD @ISA @_properties %fields);

use Carp;
use strict;
use SWISS::TextFunc;
use SWISS::BaseClass;

BEGIN {
  @ISA = ('SWISS::BaseClass');

  @_properties = (
    ['Absorption', 'Abs(max)', 'Note'],
    ['Kinetic parameters', 'KM', 'Vmax', 'Note'],
    ['pH dependence'],
    ['Redox potential'],
    ['Temperature dependence'],
  );

  %fields = map {
      $_->[0], undef
  } @_properties;
}

sub new {
  my $ref = shift;
  my $class = ref($ref) || $ref;
  my $self = new SWISS::BaseClass;
  $self->rebless($class);
  return $self;
}

sub fromText {
  my $class = shift;
  my $textRef = shift;
  my $self = new SWISS::CCbpc_properties;
  my (@events, @newEvents, %events, $topic);
  my $text = $$textRef;
  $self->initialize();
  $text =~ s/ +/ /g;

  my $properties_re = join "|", map {$_->[0]} @_properties;

  $text =~ s/\s*-!-.*?:\s*//;
  my $last_property = $_properties[0][0]; #"default" property
  while (length $text) {
    if ($text =~ s/^\s*($properties_re):\s*(.*?)\s*(;\s*|\Z)//so) {
      my ($property, $ltext) = ($1, $2);
      $last_property = $property;
      my @content;
      #grab any evidence tags
      my $ev = $ltext =~ s/\s*($SWISS::TextFunc::evidencePattern)// ? $1 : undef;
      if ($ltext =~ s/^(\S+)=// and length $ltext) {
        @content = [$1, $ltext, $ev];
      }
      elsif (length $ltext) {
        @content = [undef, $ltext, $ev];
      }
      while ($text =~ s/^(\S+)=(.*?)\s*(;\s*|\Z)//) { #take Note=, Vmax=, ...
        my ($field, $ltext) = ($1, $2);
        next unless length $ltext;
        my $ev = $ltext =~ s/\s*($SWISS::TextFunc::evidencePattern)// ? $1 : undef;
        push @content, [$field, $ltext, $ev];
      }
      $self->{$property} = \@content;
    }
    else { #dangling text 
      my ($ltext) = $text =~ s/(.*?)\s*(;\s*|\Z)//;
      my $ev = $ltext =~ s/\s*($SWISS::TextFunc::evidencePattern)// ? $1 : undef;
      push @{$self->{$last_property}}, [undef, $ltext, $ev];
    }
  }
  $self->sort;
  $self->{_dirty} = 0;
  return $self;
}

sub sort {
  my ($self) = @_;
  if ($self) {
    for my $property (@_properties) {
      my ($property_name, @fields) = @$property;
      next unless @fields;
      my $fields = join " ", " ", @fields, " ";
      if (defined (my $val = $self->{$property->[0]})) {
        @$val = sort {index($fields, $a->[0] || "") <=> index($fields, $b->[0] || "") } @$val;
      }
    }
  }
}

sub toString {
  my $self = shift;
  my $text = "-!- BIOPHYSICOCHEMICAL PROPERTIES:\n" . $self->comment;
  $text =~ s/^/CC       /mg;
  $text =~ s/    //;
  return $text;
}

sub topic {
  return "BIOPHYSICOCHEMICAL PROPERTIES";
}

sub properties {
  my ($self) = @_;
  my @list;
  for my $property (@_properties) {
    next unless defined $self->{$property->[0]};
    push @list, $property->[0];
  }
  return @list;
}

sub fields {
  my ($self, $property) = @_;
  defined $property or confess "Must pass a property";
  my @list;
  if (defined (my $val = $self->{$property})) {
    for my $item (@$val) {
      push @list, $item;
    }
  }
  return @list;
}

sub comment {
  my ($self) = @_;
  my $text = "";
  if ($self) {
    for my $property (@_properties) {
      if (defined (my $val = $self->{$property->[0]})) {
        $text .= "$property->[0]:\n";
        for my $item (@$val) {
          my ($field, $value, $ev) = @$item;
          $value .= $ev if defined $ev;
          my $field_text = defined $field ? "$field=" : "";
          my $t = "$field_text$value;";
          $text .= SWISS::TextFunc->wrapOn('  ','  ', $SWISS::TextFunc::lineLength-9, $t);
        }
      }
    }
  }
  $text;
  
}

1;

__END__

=head1 Name

SWISS::CCbpc_properties.pm

=head1 Description

B<SWISS::CCbpc_properties> represents a comment on the topic 'BIOPHYSICOCHEMICAL PROPERTIES'
within a Swiss-Prot or TrEMBL entry as specified in the user manual
http://www.expasy.org/sprot/userman.html .  Comments on other topics are stored
in other types of objects, such as SWISS::CC (see SWISS::CCs for more information).

Collectively, comments of all types are stored within a SWISS::CCs container
object.

=head1 Inherits from

SWISS::BaseClass.pm

=head1 Attributes

=over

=item topic

The topic of this comment ('BIOPHYSICOCHEMICAL PROPERTIES').

=item properties

A list of all filled properties in this comment.

=item fields($properties)

A list of fields in a given property in this comment.
Each field is a reference to an array of [$field, $text, $evidence_tags].
$field is undefined for unnamed fields.

=back
=head1 Methods

=head2 Standard methods

=over

=item new

=item fromText

=item toString

Returns a string representation of this comment.

=back