Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

tfbs::patterngen(3pm) [debian man page]

TFBS::PatternGen(3pm)					User Contributed Perl Documentation				     TFBS::PatternGen(3pm)

NAME
TFBS::PatternGen - a base class for pattern generators DESCRIPTION
TFBS::PatternGen is a base classs providing methods common to all pattern generating modules. It is meant to be inherited by a concrete pattern generator, which must have its own constructor. pattern Title : pattern Usage : my $pattern_obj = $patterngen->pattern() Function: retrieves a pattern object produced by the pattern generator Returns : a pattern object (currently available pattern generators return a TFBS::Matrix::PFM object) Args : none Warning : If a pattern generator produces more than one pattern, this method call returns only the first one and prints a warning on STDERR, In those cases you should use I<all_patterns> or I<patternSet> methods. patternSet Title : patternSet Usage : my $patternSet = $patterngen->patternSet() Function: retrieves a pattern set object containing all the patterns produced by the pattern generator Returns : a pattern set object (currently available pattern generators return a TFBS::MatrixSet object) Args : none all_patterns Title : all_patterns Usage : my @patterns = $patterngen->all_patterns() Function: retrieves an array of pattern objects produced by the pattern generator Returns : an array of pattern set objects (currently available pattern generators return an array of TFBS::Matrix::PFM objects) Args : none perl v5.14.2 2008-01-24 TFBS::PatternGen(3pm)

Check Out this Related Man Page

TFBS::PatternGen::AnnSpec(3pm)				User Contributed Perl Documentation			    TFBS::PatternGen::AnnSpec(3pm)

NAME
TFBS::PatternGen::AnnSpec - a pattern factory that uses the AnnSpec program (version 2.1) SYNOPSIS
my $patterngen = TFBS::PatternGen::AnnSpec->new(-seq_file=>'sequences.fa', -binary => 'ann-spec ' my $pfm = $patterngen->pattern(); # $pfm is now a TFBS::Matrix::PFM object DESCRIPTION
TFBS::PatternGen::AnnSpec builds position frequency matrices using an external program AnnSpec (Workman, C. and Stormo, G.D.(2000) ANN- Spec: A method for discovering transcription factor binding sites with improved specificity. Proc. Pacific Symposium on Biocomputing 2000). FEEDBACK
Please send bug reports and other comments to the author. AUTHOR - Wynand Alkema Wynand Alkema <Wynand.Alkema@cgb.ki.se<gt> new Title : new Usage : my $pattrengen = TFBS::PatternGen::AnnSpec->new(%args); Function: the constructor for the TFBS::PatternGen::AnnSpec object Returns : a TFBS::PatternGen::AnnSpec object Args : This method takes named arguments; you must specify one of the following three -seq_list # a reference to an array of strings # and/or Bio::Seq objects # or -seq_stream # A Bio::SeqIO object # or -seq_file # the name of the fasta file containing # all the sequences Other arguments are: -binary # a fully qualified path to the 'meme' executable # OPTIONAL: default 'ann-spec' -additional_params # a string containing additional # command-line switches for the # ann-spec program pattern all_patterns patternSet The three methods listed above are used for the retrieval of patterns, and are common to all TFBS::PatternGen::* classes. Please see TFBS::PatternGen for details. perl v5.14.2 2008-01-24 TFBS::PatternGen::AnnSpec(3pm)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

how to display only the pattern

Hi, I have a file with 500 Lines and I want to search for a pattern within this file which starts with sm_ and ends with ). However I just want to print the pattern only and not the entire line. How do I do it ? Thanks, p (5 Replies)
Discussion started by: yerics
5 Replies

2. Shell Programming and Scripting

replacing a pattern in a file

Hi guys, i have a pattern that i am searching in a file and i want to extract some of this pattern ... module TS1N65ULPA96X32M4 ( .... i want to extract only TS1N65ULPA96X32M4 part and i do the following sed 's/module \(x*\).*/\1/' name_of_file but this is not quite right. could... (6 Replies)
Discussion started by: ROOZ
6 Replies

3. Shell Programming and Scripting

pattern checking

hi , i am having one file which is having the contents like this : "1111111111" "2222222222" "4444232344" ... i want to check if all the patterns in the file follows this sequence like starting with " ending with " inside that 10 digits... can anyone help me in checking that.. ... (5 Replies)
Discussion started by: kripssmart
5 Replies

4. Shell Programming and Scripting

print last matched pattern using perl

Hi, If there exist multiple pattern in a file, how can I find the last record matching the pattern through perl. The below script searches for the pattern everywhere in an input file. #! /usr/bin/perl -s -wnl BEGIN { $pattern or warn"Usage: $0 -pattern='RE' \n" and exit 255;... (5 Replies)
Discussion started by: er_ashu
5 Replies

5. UNIX for Dummies Questions & Answers

how to change a particular value in a file based on a pattern

how to change a particular value in a line of a file based on a pattern eg: source file will be like ================= 99999999999 maximum number(0) ksuisikjjsl;;l skjss''llsl minimum number 0000000 maximum number of golds(0) target should be like ================= ... (9 Replies)
Discussion started by: orbeyen
9 Replies

6. UNIX for Advanced & Expert Users

searching one pattern in file and also counting

Hi, everybody this is my pattern in a file thomson, nicolas 5-3871 Wong, Fred 4-4123 Jones, Thomas 1-4122 Salazar, Richard 5-2522 first name and last names of people fallowed by Tele. while i am searching for pattern first name begin with 'S'... (8 Replies)
Discussion started by: ksr.test
8 Replies

7. Shell Programming and Scripting

deleting a pattern from a file

say i have a file with the following contents 0x20 0x20 0xc23886 > 0xc12354 > 0xc567555555 i want to delete "> " pattern and keep the rest of the file (6 Replies)
Discussion started by: lassimanji
6 Replies

8. Shell Programming and Scripting

Need help with Perl

Dear friends, I am trying to separate records from a file, search a pattern and print the record having the pattern. I was able to come up with the following code: #/bin/perl $a=" <L:RECORD>name=fai far,age=21, company=Company ABC,project=BT App </L:RECORD> <L:RECORD>name=abc... (9 Replies)
Discussion started by: faiz1985
9 Replies

9. Shell Programming and Scripting

Extract a pattern from file

In my file I have a pattern ri="234" value of ri can be any i want to find this pattern in file replace this value of ri with another value stored in some variable say newri Please tell how to do it? Thanks in Advance (10 Replies)
Discussion started by: pasricha.kunal
10 Replies

10. UNIX for Dummies Questions & Answers

pattern

Hi, How can I restrict to only get the output of lines in which the last pattern consist of 10 or less numbers. :confused: E.g. My pattern: 111111111111122222222 But if the pattern is: 111111122222222222222222 then I wouldn't want this line to appear since the 2nd half of the pattern has... (5 Replies)
Discussion started by: danieladna
5 Replies

11. UNIX for Dummies Questions & Answers

extracting pattern from every line

My scenario: 1. textfle 2. every line similar to: "...____ your sister?is1are0am0Grammar point1_______ the chairs in..." 3. need to extract only the numbers in each line, eg 001 in the case above. Tried different GREP/Sed combinations but...here I am An output like that would be... (9 Replies)
Discussion started by: eldeingles
9 Replies

12. Shell Programming and Scripting

Replacing part of a pattern in sed

Hi I have a piece of xml that has a pattern like this <int>159</int><int>30</int> I want to find this pattern but only substitute the second part of the pattern to {rid1}. Is that possible in sed ? Thanks. ---------- Post updated at 12:10 PM ---------- Previous update was at 12:01 PM... (11 Replies)
Discussion started by: vnn
11 Replies

13. Shell Programming and Scripting

Shell script

I have one script. #!/bin/ksh ] && echo "Usage: $0 pattern (pattern can be gsx name or trunkgroup or point code)" && exit 1 egrep -h "$1" /appl/voip/voipfiles/trunkgroups/tglastrun.mostrecent Which works like this. ./abc.sh <input> I have one requirement. 1. if input is Point code... (7 Replies)
Discussion started by: Raza Ali
7 Replies

14. UNIX for Beginners Questions & Answers

Using forward slash in search pattern in perl script

I have existing pattern in the perl script as: my $pattern = "^Line.*?:|^Errors*: |^SEVERE:.*?:|^Null pointer exception occurred"; and I wanted to include below keywords in my search pattern "I/O exception" and "FileNotFoundException"the problem is when I include my pattern like my... (5 Replies)
Discussion started by: ambarginni
5 Replies

15. Shell Programming and Scripting

sed for appending a line before a pattern and after another patter.

Hi All, I'm appending a line before a pattern and after another pattern(;) but omitting the first pattern - same as if comes duplicates before the second pattern. Also, I'm adding a word before the first pattern - Here is my file select blah blah hello select blah blah ; select... (6 Replies)
Discussion started by: Mannu2525
6 Replies