![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Carreer:Networking Programming in Unix (C programming Language) | vibhory2j | UNIX for Dummies Questions & Answers | 5 | 09-05-2008 08:57 PM |
| sed command to get the total lines | Sharmila_P | Shell Programming and Scripting | 5 | 07-31-2008 09:21 AM |
| total count of inodes in a mount | pharos467 | UNIX for Advanced & Expert Users | 5 | 07-18-2008 05:42 PM |
| Count total unique destination for source | new_buddy | Shell Programming and Scripting | 5 | 07-10-2008 07:50 AM |
| total in ls -l command | shriashishpatil | UNIX for Advanced & Expert Users | 11 | 04-05-2007 03:13 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
How to use the programming in UNIX to count the total G+C and the GC%?What command li
Seems like can use awk and perl command. But I don't have the idea to write the command line. Thanks for all of your advise.
For example, if I have the file whose content are: Sample 1. ATAGCAGAGGGAGTGAAGAGGTGGTGGGAGGGAGCT Sample 2. ACTTTTATTTGAATGTAATATTTGGGACAATTATTC Sample 3. AAATCATGGTGGGTTTATTGATGGTTAGAAAGTTCC All the sample above, got 36 nucleotide. I want my output to count the G + C and GC %. So my output should look like this: Sample 1: G+C = 21 GC%= 58.33% Sample 2: G+C = 8 GC%=22.22% Sample 3: G+C = 13 GC%=36.11% Thanks and appreciate of your answer. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|