Description Usage Arguments Details Value Original code in Darwin Author(s) See Also Examples
ComputeGC3syn
Computes the G+C content 3rd position of synonymous codons
1 | ComputeGC3syn(tD)
|
tD |
Nucleotide character string |
Should compute the same CP as in Darwin. By definition, GC3s values are the proportion of GC nucleotides at the variable third coding position of synonymous codons. This can be used to evaluate the degree of base composition bias.
o/n
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ComputeGC3syn:= proc(td:string)
if member(td[-3..-1], AToCodon('$')) then d:=td[1..-4] else d:=td fi; # remove stop codon
o := CreateArray(1..4);
n:=0;
for i to length(d) by 3 do
c:=d[i..i+2];
if length(IntToCInt(CodonToInt(c)))>1 then
n:=n+1;
oi:=BToInt(c[3]);
o[oi] := o[oi]+1
fi;
od;
o:=o/n;
return(o[2]+o[3]);
end:
|
Roth, A.; Friberg, M.; Siegrist, F. and Cannarozzi, G. M. gina@cannarozzi.com
1 | ComputeGC3syn('ATGTGGTACTCCGACTACGGAGGATAA')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.