Sponsored Content
Full Discussion: Extract data from a string
Top Forums Shell Programming and Scripting Extract data from a string Post 302290540 by cillmor on Monday 23rd of February 2009 02:37:56 PM
Old 02-23-2009
Thanks guys for all you help, much appreciated
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

extract data from a find string

Can any one please lend a helping hand here? eg. find /tough -name temp1 -print After finding the location of all temp1 files. I need to extract some data( some are multiple others are just one entry) from each of the temp file. eg Order_Error{"aaaa") Order_Error("bbba") ... (2 Replies)
Discussion started by: odogbolu98
2 Replies

2. Shell Programming and Scripting

Search for string in a file and extract another string to a variable

Hi, guys. I have one question: I need to search for a string in a file, and then extract another string from the file and assign it to a variable. For example: the contents of the file (group) is below: ... ftp:x:23: mail:x:34 ... testing:x:2001 sales:x:2002 development:x:2003 ...... (6 Replies)
Discussion started by: daikeyang
6 Replies

3. Shell Programming and Scripting

extract data from a data matrix with filter criteria

Here is what old matrix look like, IDs X1 X2 Y1 Y2 10914061 -0.364613333 -0.362922333 0.001691 -0.450094667 10855062 0.845956333 0.860396667 0.014440333 1.483899333... (7 Replies)
Discussion started by: ssshen
7 Replies

4. Shell Programming and Scripting

Extract data based on match against one column data from a long list data

My input file: data_5 Ali 422 2.00E-45 102/253 140/253 24 data_3 Abu 202 60.00E-45 12/23 140/23 28 data_1 Ahmad 256 7.00E-45 120/235 140/235 22 data_4 Aman 365 8.00E-45 15/65 140/65 20 data_10 Jones 869 9.00E-45 65/253 140/253 18... (12 Replies)
Discussion started by: patrick87
12 Replies

5. Shell Programming and Scripting

Extract specific data content from a long list of data

My input: Data name: ABC001 Data length: 1000 Detail info Data Direction Start_time End_time Length 1 forward 10 100 90 1 forward 15 200 185 2 reverse 50 500 450 Data name: XFG110 Data length: 100 Detail info Data Direction Start_time End_time Length 1 forward 50 100 50 ... (11 Replies)
Discussion started by: patrick87
11 Replies

6. Shell Programming and Scripting

to extract string from main string and string comparison

continuing from my previous post, whose link is given below as a reference https://www.unix.com/shell-programming-scripting/171076-shell-scripting.html#post302573569 consider there is create table commands in a file for eg: CREATE TABLE `Blahblahblah` ( `id` int(11) NOT NULL... (2 Replies)
Discussion started by: vivek d r
2 Replies

7. Shell Programming and Scripting

Extract a string between 2 ref string from a file

Hi, May i ask if someone share some command for extracting a string between 2 ref string in a txt file My objective: i had a file with multiple lines and wants only to extract the string "watch?v=IbkAXOmEHpY" or "watch?v=<11 random character>", when i used "grep 'watch?=*' i got a results per... (4 Replies)
Discussion started by: jao_madn
4 Replies

8. Shell Programming and Scripting

Search String and extract few lines under the searched string

Need Assistance in shell programming... I have a huge file which has multiple stations and i wanted to search particular station and extract few lines from it and the rest is not needed Bold letters are the stations . The whole file has multiple stations . Below example i wanted to search... (4 Replies)
Discussion started by: ajayram_arya
4 Replies

9. Shell Programming and Scripting

To Search for a string and to extract the string from the text

Hi Team I have an huge xml where i need to search for a ceratin numbers. For example 2014-05-06 15:15:41,498 INFO WebContainer : 10 CommonServicesLogs - CleansingTriggerService.invokeCleansingService Entered PUBSUB NOTIFY MESSAGE () - <?xml version="1.0" encoding="UTF-8"... (5 Replies)
Discussion started by: Kannannair
5 Replies

10. Shell Programming and Scripting

How to extract every repeated string between two specific string?

Hello guys, I have problem with hpux shell script. I have one big text file that contains like SOH bla bla bla bla bla bla ETX SOH bla bla bla ETX SOH bla bla bla ETX What I need to do is save first SOH*BLA into file1.txt, save second SOH*BLA into file2.txt and so on.... (17 Replies)
Discussion started by: sembii
17 Replies
Bio::SeqFeature::Computation(3pm)			User Contributed Perl Documentation			 Bio::SeqFeature::Computation(3pm)

NAME
Bio::SeqFeature::Computation - Computation SeqFeature SYNOPSIS
$feat = Bio::SeqFeature::Computation->new( -start => 10, -end => 100, -strand => -1, -primary => 'repeat', -program_name => 'GeneMark', -program_date => '12-5-2000', -program_version => 'x.y', -database_name => 'Arabidopsis', -database_date => '12-dec-2000', -computation_id => 2231, -score => { no_score => 334 } ); DESCRIPTION
Bio::SeqFeature::Computation extends the Generic seqfeature object with a set of computation related fields and a more flexible set of storing more types of score and subseqfeatures. It is compatible with the Generic SeqFeature object. The new way of storing score values is similar to the tag structure in the Generic object. For storing sets of subseqfeatures the array containg the subseqfeatures is now a hash which contains arrays of seqfeatures Both the score and subSeqfeature methods can be called in exactly the same way, the value's will be stored as a 'default' score or subseqfeature. 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@bioperl.org - General discussion http://bioperl.org/wiki/Mailing_lists - About the mailing lists 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 - Ewan Birney, Mark Fiers Ewan Birney <birney@sanger.ac.uk> Mark Fiers <m.w.e.j.fiers@plant.wag-ur.nl> DEVELOPERS
This class has been written with an eye out of inheritance. The fields the actual object hash are: _gsf_sub_hash = reference to a hash containing sets of sub arrays _gsf_score_hash= reference to a hash for the score values APPENDIX
The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _ has_score Title : has_score Usage : $value = $self->has_score('some_score') Function: Tests wether a feature contains a score Returns : TRUE if the SeqFeature has the score, and FALSE otherwise. Args : The name of a score add_score_value Title : add_score_value Usage : $self->add_score_value('P_value',224); Returns : TRUE on success Args : score (string) and value (any scalar) score Title : score Usage : $value = $comp_obj->score() $comp_obj->score($value) Function: Returns the 'default' score or sets the 'default' score This method exist for compatibility options It would equal ($comp_obj->each_score_value('default'))[0]; Returns : A value Args : (optional) a new value for the 'default' score each_score_value Title : each_score_value Usage : @values = $gsf->each_score_value('note'); Function: Returns a list of all the values stored under a particular score. Returns : A list of scalars Args : The name of the score all_scores Title : all_scores Usage : @scores = $feat->all_scores() Function: Get a list of all the scores in a feature Returns : An array of score names Args : none remove_score Title : remove_score Usage : $feat->remove_score('some_score') Function: removes a score from this feature Returns : nothing Args : score (string) computation_id Title : computation_id Usage : $computation_id = $feat->computation_id() $feat->computation_id($computation_id) Function: get/set on program name information Returns : string Args : none if get, the new value if set program_name Title : program_name Usage : $program_name = $feat->program_name() $feat->program_name($program_name) Function: get/set on program name information Returns : string Args : none if get, the new value if set program_date Title : program_date Usage : $program_date = $feat->program_date() $feat->program_date($program_date) Function: get/set on program date information Returns : date (string) Args : none if get, the new value if set program_version Title : program_version Usage : $program_version = $feat->program_version() $feat->program_version($program_version) Function: get/set on program version information Returns : date (string) Args : none if get, the new value if set database_name Title : database_name Usage : $database_name = $feat->database_name() $feat->database_name($database_name) Function: get/set on program name information Returns : string Args : none if get, the new value if set database_date Title : database_date Usage : $database_date = $feat->database_date() $feat->database_date($database_date) Function: get/set on program date information Returns : date (string) Args : none if get, the new value if set database_version Title : database_version Usage : $database_version = $feat->database_version() $feat->database_version($database_version) Function: get/set on program version information Returns : date (string) Args : none if get, the new value if set sub_SeqFeature_type Title : sub_SeqFeature_type Usage : $sub_SeqFeature_type = $feat->sub_SeqFeature_type() $feat->sub_SeqFeature_type($sub_SeqFeature_type) Function: sub_SeqFeature_type is automatically set when adding a sub_computation (sub_SeqFeature) to a computation object Returns : sub_SeqFeature_type (string) Args : none if get, the new value if set all_sub_SeqFeature_types Title : all_Sub_SeqFeature_types Usage : @all_sub_seqfeature_types = $comp->all_Sub_SeqFeature_types(); Function: Returns an array with all subseqfeature types Returns : An array Args : none sub_SeqFeature Title : sub_SeqFeature('sub_feature_type') Usage : @feats = $feat->sub_SeqFeature(); @feats = $feat->sub_SeqFeature('sub_feature_type'); Function: Returns an array of sub Sequence Features of a specific type or, if the type is ommited, all sub Sequence Features Returns : An array Args : (optional) a sub_SeqFeature type (ie exon, pattern) add_sub_SeqFeature Title : add_sub_SeqFeature Usage : $feat->add_sub_SeqFeature($subfeat); $feat->add_sub_SeqFeature($subfeat,'sub_seqfeature_type') $feat->add_sub_SeqFeature($subfeat,'EXPAND') $feat->add_sub_SeqFeature($subfeat,'EXPAND','sub_seqfeature_type') Function: adds a SeqFeature into a specific subSeqFeature array. with no 'EXPAND' qualifer, subfeat will be tested as to whether it lies inside the parent, and throw an exception if not. If EXPAND is used, the parents start/end/strand will be adjusted so that it grows to accommodate the new subFeature, optionally a sub_seqfeature type can be defined. Returns : nothing Args : An object which has the SeqFeatureI interface : (optional) 'EXPAND' : (optional) 'sub_SeqFeature_type' flush_sub_SeqFeature Title : flush_sub_SeqFeature Usage : $sf->flush_sub_SeqFeature $sf->flush_sub_SeqFeature('sub_SeqFeature_type'); Function: Removes all sub SeqFeature or all sub SeqFeatures of a specified type (if you want to remove a more specific subset, take an array of them all, flush them, and add back only the guys you want) Example : Returns : none Args : none perl v5.14.2 2012-03-02 Bio::SeqFeature::Computation(3pm)
All times are GMT -4. The time now is 05:12 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy