Sponsored Content
Top Forums Shell Programming and Scripting Sequence number generation on a key column Post 302178989 by era on Wednesday 26th of March 2008 06:04:30 PM
Old 03-26-2008
Hhuh? So adjacent DAVIDs should get the same number but different from another identical bunch of DAVIDs further down in the file? (And what cruel parents gave their children names in all uppercase??)
 

10 More Discussions You Might Find Interesting

1. UNIX and Linux Applications

SSH: Avoiding password prompt with rsa key generation

Hi, I am using a remote storage service for backing up our data - we want to have a script run as part of a cron job which would do the backups from our local Linux machine to the service's Linux machine. I want to use tar and ssh to do this (rather than mounting the disk and using cp) .... (5 Replies)
Discussion started by: same1290
5 Replies

2. Shell Programming and Scripting

automating RSA key pair generation

I want to automate the process of generating RSA keys. I want to remotley login to a linux machine from a windows maching without having to enter a password. For this I need to generate the RSA key pair. but I want to do this procedure on alot of linux machines. For which I was looking to automate... (2 Replies)
Discussion started by: lassimanji
2 Replies

3. Shell Programming and Scripting

ID generation in sequence

i have an xml tag. The value for the tag should be iterated through out the xml document. eg: <data><id><id><name>a</name><addr>aaa</addr><phnumb>3456</phnumb><state>ca</state><city>ny</city></data>... (6 Replies)
Discussion started by: Sgiri1
6 Replies

4. Shell Programming and Scripting

Press Any Key script sequence using bash - HELP

hi to all. im a newbie in unix shell scripts. i want to make a simple unix shell script using the bash shell that asks a user to press any key after a series of commands, or an x if he wishes to exit. here's a sample script that i made: #!/usr/bin/bash pause(){ /usr/bin/echo "\t\t Press... (3 Replies)
Discussion started by: booghaw
3 Replies

5. Shell Programming and Scripting

How to insert a sequence number column inside a pipe delimited csv file using shell scripting?

Hi All, I need a shell script which could insert a sequence number column inside a dat file(pipe delimited). I have the dat file similar to the one as shown below.. |A|B|C||D|E |F|G|H||I|J |K|L|M||N|O |P|Q|R||S|T As shown above, the column 4 is currently blank and i need to insert sequence... (5 Replies)
Discussion started by: nithins007
5 Replies

6. Shell Programming and Scripting

find common entries and match the number with long sequence and cut that sequence in output

Hi all, I have a file like this ID 3BP5L_HUMAN Reviewed; 393 AA. AC Q7L8J4; Q96FI5; Q9BQH8; Q9C0E3; DT 05-FEB-2008, integrated into UniProtKB/Swiss-Prot. DT 05-JUL-2004, sequence version 1. DT 05-SEP-2012, entry version 71. FT COILED 59 140 ... (1 Reply)
Discussion started by: manigrover
1 Replies

7. UNIX for Dummies Questions & Answers

Public and Private Key generation for scp

Hi, What tool is used to generate public and private keys for SCP? Do you have an example script that generates these keys, puts them in files and then another example script that references them from SCP? Thanks, (9 Replies)
Discussion started by: Astrocloud
9 Replies

8. UNIX for Advanced & Expert Users

scp without first time key generation and confirmation

Hi All, I have setup ssh keys for a user to transfer files without password between two hosts. But still the first time scp asks for confirmation and generates a key Due to this our jobs are failing. Is there a way I can avoid that first time key generation and confirmation also and automate... (3 Replies)
Discussion started by: baanprog
3 Replies

9. Shell Programming and Scripting

Sequence generation in shell

Hi, I am using the nested for loops to generate the sequence , taking start and end sequence number input from test.txt (sample content mentioned below). Also , can I print the rest of columns as well with sequence number into the same file. for i in `cat test.txt|cut -d"," -f7` do ... (8 Replies)
Discussion started by: tushar.modgil
8 Replies

10. Shell Programming and Scripting

Insert a new column with sequence number (Delimiter as comma)

Hi All, I have a file which has data like a,b c,d e,f g,h And I need to insert a new column at the begining with sequence no( 1 to n) 1,a,b 2,c,d 3,e,f 4,g,h Please let me know how to acheive this in unix (3 Replies)
Discussion started by: weknowd
3 Replies
Bio::Das::FeatureTypeI(3pm)				User Contributed Perl Documentation			       Bio::Das::FeatureTypeI(3pm)

NAME
Bio::Das::FeatureTypeI - Simple interface to Sequence Ontology feature types SYNOPSIS
# Get a Bio::Das::FeatureTypeI object from somewhere $term = $db->fetch.... # Get the name of the term $definition = $term->name; # Get the accession of the term $accession = $term->accession; # Get the definition of the term $definition = $term->definition; # Get the parents of the term, optionally filtered by relationship @parents = $term->parents($relationship); # Get the children of the term, optionally filtered by relationship @children = $term->children($relationship); # Given a parent and child, returns their relationship, or undef if # not directly related $relationship = $parent->relationship($child); # Return true if two terms are identical $match = $term1->equals($term2); # Return true if $term2 is a descendent of $term1, optionally # filtering by relationship ("isa" assumed) $match = $term1->is_descendent($term2,$relationship); # Return true if $term2 is a parent of $term1, optionally # filtering by relationship ("isa" assumed) $match = $term1->is_parent($term2,$relationship); # Return true if $term2 is equal to $term1 or if $term2 descends # from term 1 via the "isa" relationship $match = $term1->match($term2); # Create a new term de novo $term = Bio::Das::FeatureTypeI->new(-name => $name, -accession => $accession, -definition => $definition); # Add a child to a term $term1->add_child($term2,$relationship); # Delete a child from a term $term1->delete_child($term2); DESCRIPTION
Bio::Das::FeatureTypeI is an interface to the Gene Ontology Consortium's Sequence Ontology (SO). The SO, like other ontologies, is a directed acyclic graph in which a child node may have multiple parents. The relationship between parent and child is one of a list of relationships. The SO currently recognizes two relationships "isa" and "partof". The intent of this interface is to interoperate with older software that uses bare strings to represent feature types. For this reason, the interface overloads the stringify ("") and string equals (eq) operations. FEEDBACK
Mailing Lists User feedback is an integral part of the evolution of this and other Bioperl modules. Send your comments and suggestions preferably to one of the Bioperl mailing lists. Your participation is much appreciated. bioperl-l@bio.perl.org Support Please direct usage questions or support issues to the mailing list: bioperl-l@bioperl.org rather than to the module maintainer directly. Many experienced and reponsive experts will be able look at the problem and quickly address it. Please include a thorough description of the problem with code and data examples if at all possible. Reporting Bugs Report bugs to the Bioperl bug tracking system to help us keep track the bugs and their resolution. Bug reports can be submitted via the web: https://redmine.open-bio.org/projects/bioperl/ AUTHOR - Lincoln Stein Email lstein@cshl.org APPENDIX
The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _ this is somehow FUBAR, implementation classes cannot successfully inherit from Bio::Das::FeatureTypeI name Title : name Usage : $string = $term->name Function: return the term for the type Returns : a string Args : none Status : Public accession Title : accession Usage : $string = $term->accession Function: return the accession number for the term Returns : a string Args : none Status : Public definition Title : definition Usage : $string = $term->definition Function: return the human-readable definition for the term Returns : a string Args : none Status : Public parents Title : parents Usage : @terms = $term->parents($relationship) Function: return parent terms Returns : list of Bio::Das::FeatureTypeI Args : none Status : Public Returns the parents for the current term, empty if there are none. An optional relationship argument will return those parents that are related via the specified relationship type. The relationship is one of "isa" or "partof". children Title : children Usage : @terms = $term->children($relationship) Function: return children terms Returns : list of Bio::Das::FeatureTypeI Args : none Status : Public Returns the children for the current term, empty if there are none. An optional relationship argument will return those children that are related via the specified relationship type. The relationship is one of "isa" or "partof". relationship Title : relationship Usage : $relationship = $parent->relationship($child) Function: return the relationship between a parent and a child Returns : one of "isa" or "partof" Args : none Status : Public This method returns the relationship between a parent and one of its immediate descendents. It can return "isa", "partof", or undef if there is not a direct parent/child relationship (kissing cousins are *not* recognized). equals Title : equals Usage : $boolean = $term1->equals($term2) Function: return true if $term1 and $term2 are the same Returns : boolean Args : second term Status : Public The two terms must be identical. In practice, this means that if term2 is a Bio::Das::FeatureI object, then its accession number must match the first term's accession number. Otherwise, if term2 is a bare string, then it must equal (in a case insensitive manner) the name of term1. NOTE TO IMPLEMENTORS: This method is defined in terms of other methods, so does not need to be implemented. is_descendent Title : is_descendent Usage : $boolean = $term1->is_descendent($term2 [,$relationship]) Function: return true of $term2 is a descendent of $term1 Returns : boolean Args : second term Status : Public This method returns true if $term2 descends from $term1. The operation traverses the tree. The traversal can be limited to the relationship type ("isa" or "partof") if desired. $term2 can be a bare string, in which case the term names will be used as the basis for term matching (see equals()). NOTE TO IMPLEMENTORS: this method is defined as the inverse of is_parent(). Do not implement it directly, but do implement is_parent(). is_parent Title : is_parent Usage : $boolean = $term1->is_parent($term2 [,$relationship]) Function: return true of $term2 is a parent of $term1 Returns : boolean Args : second term Status : Public This method returns true if $term2 is a parent of $term1. The operation traverses the tree. The traversal can be limited to the relationship type ("isa" or "partof") if desired. $term2 can be a bare string, in which case the term names will be used as the basis for term matching (see equals()). NOTE TO IMPLEMENTORS: Implementing this method will also implement is_descendent(). match Title : match Usage : $boolean = $term1->match($term2) Function: return true if $term1 equals $term2 or if $term2 is an "isa" descendent Returns : boolean Args : second term Status : Public This method combines equals() and is_descendent() in such a way that the two terms will match if they are the same or if the second term is an instance of the first one. This is also the basis of the operator overloading of eq. NOTE TO IMPLEMENTORS: This method is defined in terms of other methods and does not need to be implemented. new Title : new Usage : $term = Bio::Das::FeatureTypeI->new(@args) Function: create a new term Returns : new term Args : see below Status : Public This method creates a new Bio::Das::FeatureTypeI. Arguments: Argument Description -------- ------------ -name Name of this term -accession Accession number for the term -definition Definition of the term add_child Title : add_child Usage : $boolean = $term->add_child($term2,$relationship) Function: add a child to a term Returns : a boolean indicating success Args : new child Throws : a "cycle detected" exception Status : Public This method adds a new child to the indicated node. It may detect a cycle in the DAG and throw a "cycle detected" exception. delete_child Title : delete_child Usage : $boolean = $term->delete_child($term2); Function: delete a child of the term Returns : a boolean indicating success Args : child to be deleted Throws : a "not a child" exception Status : Public This method deletes a new child from the indicated node. It will throw an exception if the indicated child is not a direct descendent. perl v5.14.2 2012-03-02 Bio::Das::FeatureTypeI(3pm)
All times are GMT -4. The time now is 08:59 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy