04-27-2006
Hi Jim,
Sure, this will work, Infact my stop gap approach is this. However we are looking to acheive this in shell scripting, as we gonna apply this to disparate databases.
thx
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi all,
It is a very stupid problem but I am not able to find a solution to it.
I am using awk to get a column from a file and I want to get the output field in between single quotes. For example,
Input.txt
123 abc
321 ddff
433 dfg
........
I want output file to be as
... (6 Replies)
Discussion started by: gauravgoel
6 Replies
2. Shell Programming and Scripting
i want to print ' symbol using awk i tried:
awk '{print " ' "}'
awk '{print "\' "}'
both not work please help me. (2 Replies)
Discussion started by: RahulJoshi
2 Replies
3. Shell Programming and Scripting
Hi,
I've been trying to write a regex to use in egrep (in a shell script) that'll fetch the names of all the files that match a particular pattern. I expect to match the following line in a file:
Name = "abc"
The regex I'm using to match the same is:
egrep -l '(^) *= *" ** *"$' /PATH_TO_SEARCH... (6 Replies)
Discussion started by: NanJ
6 Replies
4. Shell Programming and Scripting
Actually I got a list of file end with *.txt
I want to use the same command apply to all the *.txt
Thus I try to find out the fastest way to write those same command in a script and then want to let them run automatics.
For example:
I got the file below:
file1.txt
file2.txt
file3.txt... (4 Replies)
Discussion started by: patrick87
4 Replies
5. Shell Programming and Scripting
cat a | awk -F";" '{print "update db set column=' "$2" ' where column1=\""$1"\";"}' > ip-add.sql
Hi! I'm a new user!
i need to use single quote in the double quotes print string
The apex between che "$2" should not be interpreted, but....how?!
I'm trying to use \ but don't work correctly!
... (4 Replies)
Discussion started by: Re DeL SiLeNziO
4 Replies
6. Shell Programming and Scripting
How do you print out a single quote character in AWK? Using the escape character does not seem to work.
{printf "%1$s %2$s%3$s%2$s\n" , "INCLUDE", " \' ", "THIS" }
does not work. Any suggestions? (6 Replies)
Discussion started by: cold_Que
6 Replies
7. Shell Programming and Scripting
Hi I want to replace single quote with two single quotes in a perl string.
If the string is <It's Simpson's book> It should become <It''s Simpson''s book> (3 Replies)
Discussion started by: DushyantG
3 Replies
8. Shell Programming and Scripting
Hi Guys,
Please someone help me to insert these numbers (enclosed with single quotes) to a statement using awk command. I'm having hard time of putting single quotes on these numbers.
input file:
10214
68441
07205
80731
92234
55432
DESIRED OUTPUT:
My ID Number='10214';... (1 Reply)
Discussion started by: pinpe
1 Replies
9. Shell Programming and Scripting
From:
1,2,3,4,5,This is a test
6,7,8,9,0,"This, is a test"
1,9,2,8,3,"This is a ""test"""
4,7,3,1,8,""""
To:
1,2,3,4,5,This is a test
6,7,8,9,0,"This; is a test"
1,9,2,8,3,"This is a ''test''"
4,7,3,1,8,"''"Is there an easy syntax I'm overlooking? There will always be an odd number... (5 Replies)
Discussion started by: Michael Stora
5 Replies
10. Shell Programming and Scripting
Hello,
I'd like to print line if column 5th doesn't match with exm. But to reach there I have to make sure I match single quote.
I'm struggling to match that.
I've input file like:
Warning: Variants 'exm480340' and '5:137534453:G:C' have the same position.
Warning: Variants 'exm480345'... (9 Replies)
Discussion started by: genome
9 Replies
LEARN ABOUT DEBIAN
formatrpsdb
FORMATRPSDB(1) NCBI Tools User's Manual FORMATRPSDB(1)
NAME
formatrpsdb - Build databases for RPS Blast
SYNOPSIS
formatrpsdb [-] [-E N] [-G N] [-S X] [-U str] [-b] [-f X] -i filename [-l filename] [-n str] [-o] [-t str] [-v N]
DESCRIPTION
Formatrpsdb is a utility that converts a collection of input sequences into a database suitable for use with Reverse Position Specific
(RPS) Blast. Each input sequence, together with its position-specific scoring matrix (PSSM), is ASN.1 encoded into a PssmWithParameters
(or `scoremat') object and resides in a separate file. Scoremat objects can be created using blastpgp. Formatrpsdb is given a list of
these files and produces the corresponding database.
Formatrpsdb is designed to perform the work of formatdb, makemat and copymat simultaneously, without generating the large number of inter-
mediate files these utilities would need to create an RPS Blast database. Further, scoremat objects are in more general use than the
binary format makemat requires. It is hoped that direct manipulation of scoremat objects will encourage conversion of more diverse
sequence collections into RPS Blast databases.
Databases generated by formatrpsdb are binary compatible with databases generated by formatdb/makemat/copymat, although the database files
will in general not be byte- for-byte identical.
OPTIONS
A summary of options is included below.
- Print usage message
-E N The gap extension penalty (if not specified in the scoremat; default = 1)
-G N The gap opening penalty (if not specified in the scoremat; default = 11)
-S X For scoremats that contain only residue frequencies, the scaling factor to apply when creating PSSMs (default = 100)
-U str Underlying score matrix (if not specified in the scoremat; default = BLOSUM62)
-b Scoremat files are binary (vs. text) ASN1.
-f X Threshold for extending hits for RPS database (default = 11)
-i filename
Input file containing list of ASN.1 Scoremat filenames
-l filename
Log file name (default = formatrpsdb.log)
-n str Base name of output database (same as input file if not specified)
-o Create index files for database
-t str Title for database file
-v N Database volume size in millions of letters (default = 0, which really means no limit)
AUTHOR
The National Center for Biotechnology Information.
SEE ALSO
blast(1), copymat(1), formatdb(1), makemat(1), /usr/share/doc/blast2/formatrpsdb.html
NCBI
2004-10-20 FORMATRPSDB(1)