Sponsored Content
Top Forums Shell Programming and Scripting awk script to count percentage from log file Post 302314142 by devtakh on Thursday 7th of May 2009 01:06:36 PM
Old 05-07-2009
Can you calc the % for one of them? What is pmTotNoRrcConnectReqSucc and pmTotNoRrcConnectReq for the object 30011 ?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

awk percentage

how would you calculate percentage by per line? Given a column of 16 lines, grab each line and divide it by the sum of the entire column and multiply by 100? thanks ... (8 Replies)
Discussion started by: rockiefx
8 Replies

2. Shell Programming and Scripting

Need an AWK script to calculate the percentage

Hi I need a awk script to calculate percentage. I have to pass the pararmeters in to the awk script and calculate the percentage. Sum = 50 passed = 43 failed = 7 I need to pass these value in to the awk script and calculate the percentage. Please advice me. (8 Replies)
Discussion started by: bobprabhu
8 Replies

3. Shell Programming and Scripting

awk script to count characters in file 1 in file 2

I need a scripting AWK to compare 2 files. file 1 and 2 are list of keywords 1 is a b c d 2 is aa aaa b bb ccc d I want the AWK script to give us the number of times every keyword in file 1 occurs in file 2. output should be a 2 (7 Replies)
Discussion started by: anhtt
7 Replies

4. Shell Programming and Scripting

Need an awk script to calculate the percentage of value field and replace

Need an awk script to calculate the percentage of value field and replace I have a input file called file.txt with the following content: john|622.5674603562933|8|br:1;cn:3;fr:1;jp:1;us:2 andy|0.0|12|**:3;br:1;ca:2;de:2;dz:1;fr:2;nl:1 in fourth filed of input file, calulate percentage of each... (1 Reply)
Discussion started by: veeruasu
1 Replies

5. UNIX for Dummies Questions & Answers

Need an awk script to calculate the percentage of value field and replace

I have a input file called file.txt with the following content: john|622.5674603562933|8|br:1;cn:3;fr:1;jp:1;us:2 andy|0.0|12|**:3;br:1;ca:2;de:2;dz:1;fr:2;nl:1 in fourth filed of input file, calulate percentage of each sub filed seperated by ; semicolon and replace value with percentage . i... (11 Replies)
Discussion started by: veeruasu
11 Replies

6. Shell Programming and Scripting

Awk: Print count for column in a file using awk

Hi, I have the following input in a file & need output as mentioned below(need counter of every occurance of field which is to be increased by 1). Input: 919143110065 919143110065 919143110052 918648846132 919143110012 918648873782 919143110152 919143110152 919143110152... (2 Replies)
Discussion started by: siramitsharma
2 Replies

7. Shell Programming and Scripting

Count percentage of string

Hi, Am trying to count the number of occurrences and then as a percentage from a log to troubleshoot errors, can someone help please grep -o 'HTTP/1\.1\" 404 3..' access_log | wc -l 6 (5 Replies)
Discussion started by: dmccabe
5 Replies

8. Shell Programming and Scripting

Help with awk percentage calculation from a file

i have a file say test with the below mentioned details Folder Name Total space Space used /test/test1 500.1GB 112.0 GB /test/test2 3.2 TB 5TB /test/test3 3TB 100GB i need to calculate percentage of each row based on total space and space used and copy... (9 Replies)
Discussion started by: venkitesh
9 Replies

9. Shell Programming and Scripting

awk script to detect specific string in a log file and count it

Hello, can someone guide me on this? I don't know what is the best approach, (awk script, shell script) I am using RedHat Linux version 6.5. There is a third party application deployed on that server. This app by default generates 5 log files and each file is 20MB. These log rollover... (5 Replies)
Discussion started by: ktisbest
5 Replies

10. HP-UX

Shell /awk script for Percentage

having two columns, A and B.. i need to add another column C in a file and calculate the percentage based on the column A and B. (COLUMN B/ COLUMN A *100) . "|" is delimiter separating the A and B.. need C column with the percentage value. Thanks for your help 100|50 |50% ... (6 Replies)
Discussion started by: kartikirans
6 Replies
Bio::Tools::pICalculator(3pm)				User Contributed Perl Documentation			     Bio::Tools::pICalculator(3pm)

NAME
Bio::Tools::pICalculator - calculate the isoelectric point of a protein DESCRIPTION
Calculates the isoelectric point of a protein, the pH at which there is no overall charge on the protein. Calculates the charge on a protein at a given pH. Can use built-in sets of pK values or custom pK sets. SYNOPSIS
use Bio::Tools::pICalculator; use Bio::SeqIO; my $in = Bio::SeqIO->new( -fh => *STDIN , -format => 'Fasta' ); my $calc = Bio::Tools::pICalculator->new(-places => 2, -pKset => 'EMBOSS'); while ( my $seq = $in->next_seq ) { $calc->seq($seq); my $iep = $calc->iep; print sprintf( "%s %s %.2f ", $seq->id, $iep, $calc->charge_at_pH($iep) ); for( my $i = 0; $i <= 14; $i += 0.5 ){ print sprintf( "pH = %.2f Charge = %.2f ", $i, $calc->charge_at_pH($i) ); } } SEE ALSO
http://fields.scripps.edu/DTASelect/20010710-pI-Algorithm.pdf http://emboss.sourceforge.net/apps/cvs/emboss/apps/iep.html http://us.expasy.org/tools/pi_tool.html LIMITATIONS
There are various sources for the pK values of the amino acids. The set of pK values chosen will affect the pI reported. The charge state of each residue is assumed to be independent of the others. Protein modifications (such as a phosphate group) that have a charge are ignored. 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 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
Mark Southern (mark_southern@merck.com). From an algorithm by David Tabb found at http://fields.scripps.edu/DTASelect/20010710-pI-Algorithm.pdf. Modification for Bioperl, additional documentation by Brian Osborne. COPYRIGHT
Copyright (c) 2002, Merck & Co. Inc. All Rights Reserved. This module is free software. It may be used, redistributed and/or modified under the terms of the Perl Artistic License (see http://www.perl.com/perl/misc/Artistic.html) APPENDIX
The rest of the documentation details each of the object methods. Private methods are usually preceded by a _. desc Title : new Usage : Bio::Tools::pICalculator->new Function: Instantiates the Bio::Tools::pICalculator object Example : $calc = Bio::Tools::pICalculator->new( -pKset => \%pKvalues, # a Bio::Seq object -seq => $seq, -places => 2 ); or: $calc = Bio::Tools::pICalculator->new( -pKset => 'string', # a Bio::Seq object -seq => $seq, -places => 1 ); Constructs a new pICalculator. Arguments are a flattened hash. Valid, optional keys are: pKset - A reference to a hash with key value pairs for the pK values of the charged amino acids. Required keys are: N_term C_term K R H D E C Y pKset - A string ( 'DTASelect' or 'EMBOSS' ) that will specify an internal set of pK values to be used. The default is 'EMBOSS' seq - A Bio::Seq sequence object to analyze places - The number of decimal places to use in the isoelectric point calculation. The default is 2. Returns : The description Args : The description or none seq Title : seq Usage : $calc->seq($seqobj) Function: Sets or returns the Bio::Seq used in the calculation Example : $seqobj = Bio::Seq->new(-seq=>"gghhhmmm",-id=>"GHM"); $calc = Bio::Tools::pICalculator->new; $calc->seq($seqobj); Returns : Bio::Seq object Args : Bio::Seq object or none pKset Title : pKset Usage : $pkSet = $calc->pKSet(\%pKSet) Function: Sets or returns the hash of pK values used in the calculation Example : $calc->pKset('emboss') Returns : reference to pKset hash Args : The reference to a pKset hash, a string, or none. Examples: pKset - A reference to a hash with key value pairs for the pK values of the charged amino acids. Required keys are: N_term C_term K R H D E C Y pKset - A valid string ( 'DTASelect' or 'EMBOSS' ) that will specify an internal set of pK values to be used. The default is 'EMBOSS' iep Title : iep Usage : $calc->iep Function: Returns the isoelectric point Example : $calc = Bio::Tools::pICalculator->new(-places => 2); $calc->seq($seqobj); $iep = $calc->iep; Returns : The isoelectric point of the sequence in the Bio::Seq object Args : None charge_at_pH Title : charge_at_pH Usage : $charge = $calc->charge_at_pH($pH) Function: Sets or gets the description of the sequence Example : $calc = Bio::Tools::pICalculator->new(-places => 2); $calc->seq($seqobj); $charge = $calc->charge_at_ph("7"); Returns : The predicted charge at the given pH Args : pH perl v5.14.2 2012-03-02 Bio::Tools::pICalculator(3pm)
All times are GMT -4. The time now is 07:59 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy