01-22-2009
How can I calculate the total of nucleotide in Unix?What command line I should type?
For example, if I have the file whose content are:
>HWI-EAS382_30FC7AAXX:7:1:927:1368
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
>HWI-EAS382_30FC7AAXX:7:1:924:1373
ACGAACTTTAAAGCACCTCTTGGCTCGTATGCCGTC
I want my output calculate the total of nucleotide. So my output should look like this:
>HWI-EAS382_30FC7AAXX:7:1:927:1368
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 36
>HWI-EAS382_30FC7AAXX:7:1:924:1373
ACGAACTTTAAAGCACCTCTTGGCTCGTATGCCGTC 36
3 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
The input is:
>HWI-EAS382_30FC7AAXX:4:1:1580:1465
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
>HWI-EAS382_30FC7AAXX:4:1:1062:1640
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
>HWI-EAS382_30FC7AAXX:4:1:272:629
AAAAAAAAGCTATAGTCTCGTCACACATACTCACAA
>HWI-EAS382_30FC7AAXX:4:1:1033:1135... (4 Replies)
Discussion started by: patrick chia
4 Replies
2. Shell Programming and Scripting
Good afternoon! Im new at scripting and Im trying to write a script to
calculate total space, total used space and total free space in filesystem names matching a keyword (in this one we will use keyword virginia). Please dont be mean or harsh, like I said Im new and trying my best. Scripting... (4 Replies)
Discussion started by: bigben1220
4 Replies
3. Shell Programming and Scripting
Hi All ,
I have the following script as below , I tried to modify to meet the requirement , could someone help ? very thanks
================================================================================================
while read STR NAME; do
Total=0
MyString="$STR"
GetData () {... (18 Replies)
Discussion started by: ust3
18 Replies
MBKPS(3) MBK UTILITY FUNCTIONS MBKPS(3)
NAME
mbkps - mbk process state
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
SYNOPSYS
#include "mut.h"
void mbkps()
DESCRIPTION
mbkps does some functions calls and gathers informations about time and memory spend during a program run. encouraged.
EXAMPLE
#include "mut.h"
#include "mlo.h"
lofig_list *check_flat(pt)
lofig_list *pt;
{
mbkps();
pt = rflattenlofig(pt, YES, NO);
mbkps();
return pt;
}
that would output something like :
mbk stats : 1 call
user time : 0 sec
system time : 0 sec
real size : 504 k
mbkalloc peak size : 68 k
mallinfo size : 96 k
mbk stats : 2 call
user time : 1 sec
system time : 0 sec
real size : 924 k
mbkalloc peak size : 2560 k
mallinfo size : 512 k
SEE ALSO
mbk(1), getrusage(3), mallinfo(3V).
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 MBKPS(3)