This file is indexed.

/usr/include/GNUstep/Frameworks/BioCocoa.framework/Versions/2/BCSymbol.h is in libbiococoa-dev 2.2.2-2.

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
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
//
//  BCSymbol.h
//  BioCocoa
//
//  Created by Koen van der Drift on Sun Aug 15 2004.
//  Copyright (c) 2003-2009 The BioCocoa Project.
//  All rights reserved.
//
//  Redistribution and use in source and binary forms, with or without
//  modification, are permitted provided that the following conditions
//  are met:
//  1. Redistributions of source code must retain the above copyright
//  notice, this list of conditions and the following disclaimer.
//  2. Redistributions in binary form must reproduce the above copyright
//  notice, this list of conditions and the following disclaimer in the
//  documentation and/or other materials provided with the distribution.
//  3. The name of the author may not be used to endorse or promote products
//  derived from this software without specific prior written permission.
//
//  THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
//  IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
//  OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
//  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
//  INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
//  NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
//  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
//  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
//  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
//  THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

/*!
@header
@abstract Provides symbol representation of individual sequence elements (nucleotide, amino acid, etc.).
*/

#import <Foundation/Foundation.h>
#import "BCFoundationDefines.h"

@class BCSymbolSet;

/*!
    @class      BCSymbol
    @abstract   Superclass of all individual sequence elements (nucleotide, amino acid, etc.)
    @discussion This class should not be instantiated, but acts to provide some common methods
    * and variables that are used by all subclasses.
*/

@interface BCSymbol : NSObject <NSCopying>
{
    unsigned char	symbolChar;
    NSString		*name;
    NSString		*symbolString;
    NSDictionary	*symbolInfo;
    NSSet			*represents;
    NSSet			*representedBy;

	float			monoisotopicMass;
	float			averageMass;
}

#if 0
#pragma mark == INITIALIZATION METHODS ==
#endif

/*!
    @method     initWithSymbolChar:
    @abstract   initializes a BCSymbol object using a single character.
    @discussion This method does nothing else, it only sets the symbol. 
    * It's the subclass responsibility to setup all other variables
*/
- (id)initWithSymbolChar:(unsigned char)aChar;

/*!
    @method     initializeSymbolRelationships
    @abstract   converts string-based selectors to symbol references
    @discussion After the initialization above, internal references to other symbols 
 *  (complement, representations, etc.) remain in string-based selector form.  The first time
 *  the actual reference is needed, this method will use the selectors to generate the actual
 *  references to the symbols.
*/
- (void) initializeSymbolRelationships;


#if 0
#pragma mark == OBJECT METHODS ==
#endif



/*!
    @method     name
    @abstract   returns the chemical name of the object.
    @discussion returns the common chemical name for the represented object.
    *  For a nucleotide with a symbol of 'A', this will return "Adenosine", while
    *  for an amino acid with that symbol, it will return "Alanine".
*/
- (NSString *)name;


/*!
    @method     symbolChar
    @abstract   returns the one letter symbol for the object
    @discussion Provides a unicode character symbol that represents the object.  
    *  These are the standard representations:  nucleotides are ATCGNYR etc., amino acids
    *  are ACDEF etc.  Stop codons are represented with *, and gaps are represented with -.
    *  If non-symbol items are allowed, they are represented by a ?.
*/
- (unsigned char) symbolChar;


/*!
    @method     symbolString
    @abstract   returns the symbol as a single character string.
    @discussion The behavior is identical to that for the "symbol" method above, except the
    *  value returned is an NSString, and so can be readily saved, appended to strings, etc.
*/
- (NSString *)symbolString;


/*!
    @method     savableRepresentation
    @abstract   Returns the symbol string of the object.
    @discussion All BCSymbol classes implement this method to provide a standard way of
    *  accessing their data in a format that can be stored in Apple .plist files within
    *  arrays or dictionaries.  Subclasses should provide a method of converting this information
    *  back into the appropriate Symbol object.
*/
- (NSString *) savableRepresentation;


/*!
    @method     description
    @abstract   Overrides NSObject's description - describes the object in string form
    @discussion In the default implementation, returns the name of the object.  Useful primarily
    *  for debugging.
*/
- (NSString *) description;




/*!
    @method     symbolInfo
    @abstract   Returns the dictionary that was used to initialize the symbol information
    @discussion The default set of symbols (bases and amino acids) are generated from information stored in a .plist
    *  file in dictionary form.  Upon initialization, each symbol retrieves and retains this dictionary, which is
    *  accessible by this method.  Use of this method should be avoided; rather, use "valueForKey" to retrieve information
    *  about a symbol from this dictionary.
*/
- (NSDictionary	*) symbolInfo;


/*!
    @method     valueForKey:
    @abstract   Retrieves a value from the symbolInfo dictionary
    @discussion The default set of symbols (bases and amino acids) are generated from information stored in dictionary form
    *  in a .plist file.  Upon initialization, each symbol retrieves and retains this dictionary.  Most, if not all,
    *  of the values in this dictionary (ie - monoisotopicMass) are accessible through defined methods.  This method may
    *  be used to retrieve those values which do not have specified methods.  It returns nil if the  key is not used.
    *  For a list of valid keys and their defined equivalents, check the file "BCStringDefinitions" or the .plist files
    *  in the "Symbol Templates" folder.
    *
    *  This method is primarily designed to allow rapid addition of features to the symbols which are the foundation of
    *  BioCocoa via editing of the included .plist files (in the "Symbol Templates" folder), rather than by code.
    *
    *  NB - the valid keys in this dictionary may vary between releases of BioCocoa, and returned values should not be 
    *  assumed to be non-nil.
*/
- (id) valueForKey: (NSString *)aKey;

/*!
    @method     setValue:forKey:
    @abstract   Non-functional method present for key-value coding compliance.
    @discussion The symbolInfo dictionary with which symbols are initialized is non-mutable in order to maintain these 
    *  objects in an internally consistent state.  Therefore, this method cannot actually change values in this 
    *  dictionary.  It is included only to allow Symbols to be key-value coding compliant.
*/
- (void) setValue: (id)aValue forKey: (NSString *)theKey;
    
    


/*!
    @method     monoisotopicMass
    @abstract   Returns a float value containing the monoisotopic mass for this BCSymbol
    @discussion The monoisotopic mass is the mass calculated using the first
	* isotope of each element (eg 12C, 14N, 16O, etc)
*/
- (float)monoisotopicMass;

/*!
    @method     setMonoisotopicMass:
    @abstract   Set the monoisotopic mass for this BCSymbol.
    @discussion The monoisotopic mass is the mass calculated using the first
	* isotope of each element (eg 12C, 14N, 16O, etc)
*/
- (void)setMonoisotopicMass:(float)value;

/*!
    @method     averageMass
    @abstract   Returns a float value containing the average mass for this BCSymbol
    @discussion The average mass is the mass calculated averaging over all
	* isotopes of each element.
*/
- (float)averageMass;

/*!
    @method     setAverageMass:
    @abstract   Set the average mass for this BCSymbol.
    @discussion The average mass is the mass calculated averaging over all
	* isotopes of each element.
*/
- (void)setAverageMass:(float)value;

/*!
    @method     massUsingType:
    @abstract   Returns the mass of this BCSymbol
    @discussion aType defines if either the monoisotopic or average mass is returned
*/
- (float)massUsingType:(BCMassType) aType;

/*!
    @method     minMassUsingType:
    @abstract   Returns the minimum mass for this BCSymbol
    @discussion This is used for ambiguous symbols which have a mass range, because they are represented
	* by different BCSymbols, each with their own mass. It will return the mass of the BCSymbol
	* with the lowest mass.
	* aType defines if either the monoisotopic or average mass is returned
*/
- (float)minMassUsingType:(BCMassType) aType;

/*!
    @method     maxMassUsingType:
    @abstract   Returns the maximum mass for this BCSymbol
    @discussion This is used for ambiguous symbols which have a mass range, because they are represented
	* by different BCSymbols, each with their own mass. It will return the mass of the BCSymbol
	* with the highest mass.
	* aType defines if either the monoisotopic or average mass is returned
*/
- (float)maxMassUsingType:(BCMassType) aType;



#if 0
#pragma mark == SYMBOL RELATIONSHIP METHODS ==
#endif


/*!
    @method     isCompoundSymbol
    @abstract   indicates if symbol is a compound symbol
*/
- (BOOL)isCompoundSymbol;

- (BOOL)isEqualToSymbol:(BCSymbol *)aSymbol;

/*!
    @method     representedSymbols
    @abstract   returns an array containing all symbols represented by the receiver
    @discussion For instance, when called on adenosine, this method will return an array with a single item, adenosine.
 *  When called on purine, it will return an array with adenosine and guanidine.
*/
- (NSSet *) representedSymbols;

/*!
    @method     representingSymbols
    @abstract   returns an array with all symbols that may represent the receiver
    @discussion For instance, when called on adenosine, this method will return adenosine,
 *  weak, any base, etc.
*/
- (NSSet *) representingSymbols;

/*!
    @method     representsSymbol:
    @abstract   Evaluates whether the receiver represents the entry
    @discussion For instance, when called on adenosine, this method will return YES if the entry is adenosine,
 *  It will return NO for anything else.
 *  When called on weak, will return YES for adenosine and thymidine, but NO for anything else.
*/
- (BOOL) representsSymbol: (BCSymbol *) entry;

/*!
    @method     isRepresentedBySymbol:
    @abstract   Evaluates whether the receiver is represented by the entry
    @discussion For instance, when called on adenosine, this method will return YES if the entry is adenosine,
 *  weak, any base, etc.
*/
- (BOOL) isRepresentedBySymbol: (BCSymbol *) entry;

/*!
    @method     symbolSetWithRepresentedSymbols
    @abstract   Returns a symbol set containing the symbols of all the symbols that are represented by the receiver.
*/
- (BCSymbolSet *)symbolSetOfRepresentedSymbols;

/*!
    @method     symbolSetWithRepresentedSymbols
	 @abstract   Returns a symbol set containing the symbols of all the symbols that represent by the receiver.
*/
- (BCSymbolSet *)symbolSetOfRepresentingSymbols;


@end