Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

swiss::stars(3pm) [debian man page]

SWISS::Stars(3pm)					User Contributed Perl Documentation					 SWISS::Stars(3pm)

NAME
SWISS::Stars.pm DESCRIPTION
SWISS::Stars represents the ** lines within an SWISS-PROT + TrEMBL entry. These are the lines with the line tag ** which are normally not publicly visible. SWISS::Stars is a master object like SWISS::Entry. It contains subobjects which represent the different line types in the ** section. Each line type has a two letter tag in addition to the ** line tag. This module has been written to allow easy addition of new ** line types. To use a new ** line tag, just use the tag as an object dereference. Example: $entry->Stars->XX->add("New XX tag line.","Second new XX tag line."); If there is no class SWISS::Stars::XX, the class of the new object will be SWISS::Stars::default, which handles lines with the corresponding tag as an array of lines. If more specific handling is required, a new class SWISS::Stars::XX can be created following the template of SWISS::Stars::default. An example is SWISS::Stars::aa. Subclass names and new line tags have to be two-letter-tags. No checks are made wheter the dereferenced tag is allowed. Access to the (old) unstructured ANNOTATOR'S SECTION is provided by the line tag 'aa'. $entry->Stars->aa->add("Testline 1.","Second new test line."); will add these two lines to the ANNOTATOR'S SECTION. Inherits from SWISS::BaseClass.pm Attributes No public attributes apart from the subclasses. Methods Standard methods new fromText toText update perl v5.10.1 2006-01-26 SWISS::Stars(3pm)

Check Out this Related Man Page

SWISS::GeneGroup(3pm)					User Contributed Perl Documentation				     SWISS::GeneGroup(3pm)

Name
       SWISS::GeneGroup.pm

Description
       A SWISS::GeneGroup object contain all synonyms for a given gene name. See SWISS::GNs for a description of the gene name format.

Inherits from
       SWISS::BaseClass.pm

       (also implements many methods from SWISS::ListBase.pm)

Attributes
       "Names"
	     Each list element is a SWISS::GN object, describing a primary name
	     or synonym. Concatenation of Name and Synonyms lists.

       "OLN"
	     Each list element is a SWISS::GN object, describing an
	     OrderedLocusName.

       "ORFNames"
	     Each list element is a SWISS::GN object, describing an ORFName.

Methods
   Standard methods
       new
       fromText
       toText

   Specific methods
       Name
	   Returns the Name (primary name).

       Synonyms
	   Returns the Synonyms.

       elements
	     Concatenates all elements from Names, OLN and ORFNames in
	     a single array.

   List manipulation methods
       Since GeneGroup was a previous implementation of SWISS::ListBase, the list manipulation methods below are provided to facilitate
       compatibility.

       size
       isEmpty
       elements
       filter
       get (deprecated)
       head (deprecated)
       tail (deprecated)
       item (deprecated)
       push (deprecated)
       pop (deprecated)
       shift (deprecated)
       splice (deprecated)
       unshift (deprecated)
       set (deprecated)
       add (deprecated)

perl v5.10.1							    2006-01-26						     SWISS::GeneGroup(3pm)
Man Page

15 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Appending line/lines with sed

Hi folks, I need to append line or bulk of lines into a file. For example,I have the following section in opmn.xml file: <process-type id="OC4J_RTEadmin_NIR" module-id="OC4J"> <module-data> <category id="start-parameters"> <data... (28 Replies)
Discussion started by: nir_s
28 Replies

2. Shell Programming and Scripting

Need to add a line of data to already existing file in Unix..

Hello.. I have a text file with 100 lines of data. I need to add 1 line of data to that already existing file at the first line( beginning of the file) , so that the already existing 100 lines will start from 2 nd line.Now the file will have 101 lines of data. Help me on how to add the line... (4 Replies)
Discussion started by: charan81
4 Replies

3. Shell Programming and Scripting

hash,array and perl

Hi,i have a code fragment below. %tag = (); #line 1 $tag{'info'} = $datastring; #line 2 $resp = $ua->request( #$ua is a user agent POST 'http://10.2.3.0' , Content_Type => application/x-www-form-urlencoded Content => #line 3 I am not sure of what the code... (3 Replies)
Discussion started by: new2ss
3 Replies

4. Shell Programming and Scripting

Removing specific lines

Hi I have a .conf file having many location tags like <Location /main> AuthName main AuthUserFile /ppt/gaea/passwd_main Require user admin </Location> ...... ... <Location /wonder> AuthName gaea AuthUserFile /ppt/gaea/passwd_gaea Require... (3 Replies)
Discussion started by: catgovind
3 Replies

5. Shell Programming and Scripting

how to add a line after a specific line

hi I want to add a line just after a specific line can you please help? thx (2 Replies)
Discussion started by: melanie_pfefer
2 Replies

6. Shell Programming and Scripting

Removing end of line to merge multiple lines

I'm sure this will be an easy question for you experts out there, but I have been searching the forum and working on this for a couple hours now and can't get it right. I have a very messy data file that I am trying to tidy up - one of the issues is some records are split into multiple lines: ... (4 Replies)
Discussion started by: tink
4 Replies

7. Shell Programming and Scripting

Want to use sed to add some parameters at the end of the line

Hello All, I have a doubt in sed, i want to add some parameter at the end of the tag inside a xml tag. how to i do that. so i want to add Results="true" value="high" inside the xml tag. Orignal <execute description="reboot"> <execute description="Stop Servlet"> After adding the... (5 Replies)
Discussion started by: asirohi
5 Replies

8. Infrastructure Monitoring

modifying existing file using C

Hi all, I have a snmpd.conf file as below. in "SECTION: Trap Destinations" line I want to add "trap2dest <IP>:162 <com_str>" on a new line. For this I wrote following code #include <stdio.h> #include <stdlib.h> int main(void) { FILE *fp; ssize_t read_char_count = 0; ... (2 Replies)
Discussion started by: zing_foru
2 Replies

9. Shell Programming and Scripting

is there a way to add a td tag with sed?

example code What I want to do is add an ending TD tag ( </td> ) sed 's/./&</td>/g' Simple data: <tr><td>listenhere<insert/tdtaghere><tr><td>listenhere<insert/tdtaghere><tr><td>listenhere<insert/tdtaghere> (4 Replies)
Discussion started by: puttster
4 Replies

10. Shell Programming and Scripting

add a word every other line

hey guys, How to add a line to every other line, means adding a line to the above of all the lines of a file? tnx (4 Replies)
Discussion started by: Johanni
4 Replies

11. Shell Programming and Scripting

automate editing of a template

Given two files: File1 - source data abc def ghi File 2 - a template to be edited with data from File 1 This is a line with a @tag@ of some item A This is a line with a @tag@ of some item B This is a line with a @tag@ of some item C What I want to do is substitute @tag@ with a value... (3 Replies)
Discussion started by: edstevens
3 Replies

12. Shell Programming and Scripting

How to add two common lines on entire file

Hi Hi i have 500 lines of file,each line i need to add another two lines also need to separate with one line for every 3 lines after adding two lines.How to achieve this using shell? For example: Input file : dn: uid=apple,dc=example,dc=com dn: uid=ball,dc=example,dc=com output:... (4 Replies)
Discussion started by: buzzme
4 Replies

13. Shell Programming and Scripting

Add the html tag first and last line the file

Hi, i have 30 html files and i want to add the html tag first (<html>) and end of the line </html> tag..How to do it in script. Thanks, (7 Replies)
Discussion started by: bmk
7 Replies

14. Shell Programming and Scripting

Creating multiple xml tag lines in a file

Hi All, Can someone tell me how can we create same xml tag lines based on the number of lines present in other file and replace the Name variable vaule present in other file. basically I have this xml line <typ:RequestKey NameType="RIC" Name="A1" Service="DDA"/> and say I... (4 Replies)
Discussion started by: Optimus81
4 Replies

15. Shell Programming and Scripting

Add string into certain lines - sed

Hello all, I have surely an easy question - but at the moment I do not see the solution. All what I want is to add the string "/9201" within a file when a line starts with ":47A:". This is how a file look like: Information Tool :12:Delimiter :3:Space :47A:0329 :3:Space After the... (2 Replies)
Discussion started by: API
2 Replies