02-20-2013
The third and the sixth columns have a three letter code for the aminoacids. I have more than 1000 lines of these pairs, and I am trying to calculate how many times these pairs are seen in the file.
In my example, the first and the third line are the same so the result is:
res1 = TYR res2 = ASN : 2 times I hope I helped you
---------- Post updated at 03:06 PM ---------- Previous update was at 03:02 PM ----------
I must learn to use awk!!! Thank you user8 and pamu
user8 thank you so much, it works
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a large file with fields delimited by '|', and I want to run some analysis on it. What I want to do is count how many times each field is populated, or list the frequency of population for each field.
I am in a Sun OS environment.
Thanks,
- CB (3 Replies)
Discussion started by: ChicagoBlues
3 Replies
2. Shell Programming and Scripting
Hi. I'm working with two BASH shells in order to perform two tasks. For simplicity, suppose that at Shell #1 I'm executing this program:
sleep 100
whose PID is 263. Meanwhile Shell #2 is waiting for its termination to follow with a second one.
I tried with:
wait 263
# Script for second... (4 Replies)
Discussion started by: hresquivelo
4 Replies
3. Shell Programming and Scripting
I have a data file that has 6 columns and I have sorted the 3rd column so that all rows are sorted according to the 3rd column (from lowest to highest number). An example is shown below:
7563 273 1 -15.81100000 25.37250000 -19.27320000
8149 294 1 -17.90540000 ... (3 Replies)
Discussion started by: ananyob
3 Replies
4. Shell Programming and Scripting
reference data
GHTAS
QER
CC
N
input data
NNWQERPROEGHTASTTTGHTASNCC
Desired output
GHTAS 2
QER 1
CC 1
N 3 (2 Replies)
Discussion started by: perl_beginner
2 Replies
5. Shell Programming and Scripting
Hi guys,
Those who work with Background Oriented Schlieren (BOS) might wonder how to create image pairs suitable for a PIV image processing software.
Here is the code :
#!/bin/bash
# This is a program to read *.jpg files and save them in pairs for postprocessing
nfiles=`ls -1 bild*... (0 Replies)
Discussion started by: chirag.joshi
0 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I have a very wide dataset with pairs of columns starting from column 7 onwards (see example below).
0 123456 -1 0 0 -9 0 0 1 2 2 2 1 1 1 1 2 2...
0 123457 -1 0 0 -9 1 2 1 1 2 2 0 0 0 0 2 2...
0 123458 -1 0 0 -9 0 0 1 2 2 2 1 1 2 2 1 2...
0 123459 -1 0 0 -9 1 2 0 0 2 2 1 1 1 2 1 1...... (2 Replies)
Discussion started by: kasan0
2 Replies
7. Shell Programming and Scripting
I need to write a shell script "cmn" that, given an integer k, print the k most common words in descending order of frequency.
Example Usage:
user@ubuntu:/$ cmn 4 < example.txt :b: (3 Replies)
Discussion started by: mohit_iitk
3 Replies
8. Shell Programming and Scripting
Hello everyone,
please consider the following lines of a matrix
59 32
59 32
59 32
59 32
59 32
59 32
59 32
60 32
60 33
60 33
60 33
60 33
60 33
60 33
60 33
60 33
60 33 (7 Replies)
Discussion started by: xshang
7 Replies
9. Shell Programming and Scripting
Hi, I have tab-deliminated data similar to the following:
dot is-big 2
dot is-round 3
dot is-gray 4
cat is-big 3
hot in-summer 5
I want to count the frequency of each individual "unique" value in the 1st column. Thus, the desired output would be as follows:
dot 3
cat 1
hot 1
is... (5 Replies)
Discussion started by: owwow14
5 Replies
10. Shell Programming and Scripting
Dear all,
I have an AWK script which provides frequency of words. However I am interested in getting the frequency of chunked data. This means that I have already produced valid chunks of running text, with each chunk on a line. What I need is a script to count the frequencies of each string. A... (4 Replies)
Discussion started by: gimley
4 Replies
LEARN ABOUT DEBIAN
simplifdconebdd
SIMPLIFDCONEBDD(3) BDD functions SIMPLIFDCONEBDD(3)
ORIGIN
This software belongs to the ALLIANCE CAD SYSTEM developed by the ASIM team at LIP6 laboratory of Universite Pierre et Marie CURIE, in
Paris, France.
Web : http://asim.lip6.fr/recherche/alliance/
E-mail : alliance-users@asim.lip6.fr
NAME
simplifDcOneBdd - simplifies a BDD with don't cares on its on-set part
SYNOPSYS
#include "logmmm.h"
pNode simplifDcOneBdd(pBdd1,pBdd2)
pNode pBdd1;
pNode pBdd2;
PARAMETERS
pBdd1 BDD to simplify
pBdd2 "don't care" function
DESCRIPTION
simplifDcOneBdd() simplifies pBdd1 with pBdd2. pBdd2 must be included imperatively in the on-set part of pBdd1. This function returns a BDD
that depends to the order of the BDD.
EXAMPLE
#include "mutnnn.h" /* mbk utilities */
#include "logmmm.h"
pNode nodeA,nodeB;
pNode res,res1,res2;
initializeBdd(SMALL_BDD);
nodeA = createNodeTermBdd(3);
nodeB = createNodeTermBdd(3);
res1 = applyBinBdd(XOR,nodeA,nodeB); /* res1 = (XOR a b) */
res2 = applyBinBdd(AND,notBdd(nodeA),nodeB); /* res2 = (AND (not a) b) */
res = simplifDcOneBdd(res1,res2); /* res1 and res2 = res2 */
/* res = (AND a (not b)) */
destroyBdd(1);
SEE ALSO
log(1), bdd(1), simplifDcZeroBdd(3), constraintBdd(3), composeBdd(3), upVarBdd(3).
BUG REPORT
This tool is under development at the ASIM department of the LIP6 laboratory.
We need your feedback to improve documentation and tools.
ASIM
/LIP6 October 1, 1997 SIMPLIFDCONEBDD(3)