Sponsored Content
Full Discussion: grep & awk
Top Forums Shell Programming and Scripting grep & awk Post 302349845 by *Jess* on Wednesday 2nd of September 2009 04:03:28 AM
Old 09-02-2009
Thanks a lot, i actually did try similiar 1...not working as well..

Attach is our tester output. We are only interested in Report for Site 0 & Report for Site 1 which is highlighted in red. We would want to take out all the values for %.

Still scratching my head now....

Last edited by *Jess*; 09-02-2009 at 05:27 AM..
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Awk: Version && nextfile

How can I find which version of Awk is installed? OpSystem is HPUX 11.x I am getting an error when trying to use the keyword nextfile and I dont know why! (Well, I can only assume that I have am using a version of Awk that does not support nextfile. However, according to O'Reilly, nextfile is... (3 Replies)
Discussion started by: google
3 Replies

2. UNIX for Dummies Questions & Answers

tar & Grep together

Hi, I've got dozens of tar's with two files in each one, live_access_log & live_error_log (one tar for each day, backups). The probelm is i need to match a pattern in all of the archive_access_log files and output the line to a seperate file (All_access.log). I.e. I need to get details... (21 Replies)
Discussion started by: tom123
21 Replies

3. Shell Programming and Scripting

MEM=`ps v $PPID| grep -i db2 | grep -v grep| awk '{ if ( $7 ~ " " ) { print 0 } else

Hi Guys, I need to set the value of $7 to zero in case $7 is NULL. I've tried the below command but doesn't work. Any ideas. thanks guys. MEM=`ps v $PPID| grep -i db2 | grep -v grep| awk '{ if ( $7 ~ " " ) { print 0 } else { print $7}}' ` Harby. (4 Replies)
Discussion started by: hariza
4 Replies

4. UNIX for Dummies Questions & Answers

Difference between grep, egrep & grep -i

Hi All, Please i need to know the difference between grep, egrep & grep -i when used to serach through a file. My platform is SunOS 5.9 & i'm using the korn shell. Regards, - divroro12 - (2 Replies)
Discussion started by: divroro12
2 Replies

5. Shell Programming and Scripting

awk & grep - check for a value and write sub-word

Hi people, I have a file status.txt: Following 6 ports are totally or partially unavailable: ------------------------------------------------------------ MOD LINK PORTNAMES STAT1 STAT2 STAT3 SYN TYPE ------------------------------------------------------------ 8 Pr37 ... (12 Replies)
Discussion started by: gc_sw
12 Replies

6. Shell Programming and Scripting

awk (gawk) grep & columns

Hi, I'm working with gawk (on DOS) today. A goal is: find a string for-instance '123', cut a line in two columns and write second one. The problem is: command line works OK, awk file doesn't. But I would like to work with file because there are many strings to find. input: line command: awk... (4 Replies)
Discussion started by: frajer
4 Replies

7. Shell Programming and Scripting

copying file information using awk & grep

Hi, TASK 1: I have been using this code to print the information of files kept at "/castor/cern.ch/user/s/sudha/forPooja" in some text file name FILE.txt. rfdir /castor/cern.ch/user/s/sudha/forPooja | grep data | awk '{print "rfio:///castor/cern.ch/user/s/sudha/forPooja/"$9}' > FILE.txt ... (6 Replies)
Discussion started by: nrjrasaxena
6 Replies

8. Shell Programming and Scripting

Using Grep & find & while read line in a script

Hello people! I would like to create one script following this stage I have one directory with 100 files File001 File002 ... File100 (This is the format of content of the 100 files) 2012/03/10 12:56:50:221875936 1292800448912 12345 0x00 0x04 0 then I have one... (0 Replies)
Discussion started by: Abv_mx81
0 Replies

9. Shell Programming and Scripting

awk Help: quick and easy question may be: How to use &&

Hi Guru's. I am trying to use to check if $5 is greater than 80 & if not 100, then to print $0 : awk '{ if ($5>80) && if ($5 != 100) print $0} But getting error: >bdf1|sed 's/%//g'|awk '{ if ($5>80) && if ($5 != 100) print $0}' syntax error The source line is 1. The error... (6 Replies)
Discussion started by: rveri
6 Replies
TFBS::Site(3pm) 					User Contributed Perl Documentation					   TFBS::Site(3pm)

NAME
TFBS::Site - a nucleotide sequence feature object representing (possibly putative) transcription factor binding site. SYNOPSIS
# manual creation of site object; # for details, see documentation of Bio::SeqFeature::Generic; my $site = TFBS::Site (-start => $start_pos, # integer -end => $end_pos, # integer -score => $score, # float -source => "TFBS", # string -primary => "TF binding site", # primary tag -strand => $strand, # -1, 0 or 1 -seqobj => $seqobj, # a Bio::Seq object whose sequence # contains the site -pattern => $pattern_obj # usu. TFBS::Matrix:PWM obj. -); # Searching sequence with a pattern (PWM) and retrieving individual sites: # # The following objects should be defined for this example: # $pwm - a TFBS::Matrix::PWM object # $seqobj - a Bio::Seq object # Consult the documentation for the above modules if you do not know # how to create them. # Scanning sequence with $pwm returns a TFBS::SiteSet object: my $site_set = $pwm->search_seq(-seqobj => $seqobj, -threshold => "80%"); # To retrieve individual sites from $site_set, create an iterator obj: my $site_iterator = $site_set->Iterator(-sort_by => "score"); while (my $site = $site_iterator->next()) { # do something with $site } DESCRIPTION
TFBS::Site object holds data for a (possibly predicted) transcription factor binding site on a nucleotide sequence (start, end, strand, score, tags, as well as references to the corresponding sequence and pattern objects). TFBS::Site is a subclass of Bio::SeqFeature::Generic and has acces to all of its method. Additionally, it contains the pattern() method, an accessor for pattern object associated with the site object. FEEDBACK
Please send bug reports and other comments to the author. AUTHOR - Boris Lenhard Boris Lenhard <Boris.Lenhard@cgb.ki.se> APPENDIX
The rest of the documentation details each of the object methods. Internal methods are preceded with an underscore. TFBS::Site is a class that extends Bio::SeqFeature::Generic. Please consult Bio::SeqFeature::Generic documentation for other available methods. new Title : new Usage : my $site = TFBS::Site->new(%args) Function: constructor for the TFBS::Site object Returns : TFBS::Site object Args : -start, # integer -end, # integer -strand, # -1, 0 or 1 -score, # float -source, # string (method used to detect it) -primary, # string (primary tag) -seqobj, # a Bio::Seq object -pattern # a pattern object, usu. TFBS::Matrix::PWM pattern Title : pattern Usage : my $pattern = $site->pattern(); # gets the pattern $site->pattern($pwm); # sets the pattern to $pwm Function: gets/sets the pattern object associated with the site Returns : pattern object, here TFBS::Matrix::PWM object Args : pattern object (optional, for setting the pattern only) rel_score Title : rel_score Usage : my $percent_score = $site->rel_score() * 100; # gets the pattern Function: gets relative score (between 0.0 to 1.0) with respect of the score range of the associated pattern (matrix) Returns : floating point number between 0 and 1, or undef if pattern not defined Args : none GFF Title : GFF Usage : print $site->GFF(); : print $site->GFF($gff_formatter) Function: returns a "standard" GFF string - the "generic" gff_string method is left untouched for possible customizations Returns : a string (NOT newline terminated! ) Args : a $gff_formatter function reference (optional) location start end length score frame sub_SeqFeature add_sub_SeqFeature flush_sub_SeqFeature primary_tag source_tag has_tag add_tag_value each_tag_value all_tags remove_tag attach_seq seq entire_seq seq_id annotation gff_format gff_string The above methods are inherited from Bio::SeqFeature::Generic. Please see Bio::SeqFeature::Generic for details on their usage. perl v5.14.2 2008-01-24 TFBS::Site(3pm)
All times are GMT -4. The time now is 04:25 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy