Description Usage Arguments Details Value Original code in Darwin Author(s) See Also Examples
ComputeNEC
is a method for measuring synonymous codon usage bias in a gene by estimation of the “effective number of codons” Nc
1 | ComputeNEC(cds)
|
cds |
Coding sequence in reading frame |
Based on early codon usage mesures proposed by Wright 1990 and Fuglsang 2004. Original implementation from Alexander Roth 2005-2007, second of several indices for codon usage. Nc is the total number of different codons used in a sequence. The values for Nc range from 20 to 61. Where in the first case only one codon is used per amino acid, and in the latter all posible ones are used. Highly expressed genes should use fewer codons due to selection away from equal use. The here computed overall number of effective codons for a gene is a sum of average homozygosities for different redundency classes.
Numerical value for effective number of codons Nc (by the original definition)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | ComputeNEC := proc(d:string)
cod:=CreateArray(1..64);
aa:=CreateArray(1..20);
aviod:={op(AToCodon('$'))};
count:=0;
for i to length(d) by 3 do
c := d[i..i+2];
if not member(c,aviod) then
ai:=CodonToInt(c);
ci:=CodonToCInt(c);
cod[ci]:=cod[ci]+1;
aa[ai]:=aa[ai]+1;
count:=count+1;
fi;
od;
Nc:=0;
for i to 20 do
Acods := IntToCInt(i);
k := length(Acods);
if k<2 then Nc := Nc + 1; next; fi;
n := sum([seq(cod[Acods[x]], x=1..k)]);
S := sum([seq((cod[Acods[x]]/n)^2, x=1..k)]);
F := (n*S-1) / (n-1);
Nc := Nc + 1/F;
od;
Nc;
end:
|
Roth, A.; Siegrist, F. and Cannarozzi, G. M. gina@cannarozzi.com
seqinr
CUB
statanacoseq
http://gtrnadb.ucsc.edu/GtRNAdb2/ readstats
1 2 | ComputeNEC('ATGTGGTACTCCGACTACGGAGGATAA')
ComputeNEC(c2s(mylist(whatout=1)[[1]]))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.