RSCU: Relative Synonymous Codon Usage

Description Usage Arguments Details Value Original code in Darwin Author(s) See Also Examples

Description

RSCU Returns Relative Synonymous Codon Usage Similar tp SeqinR

Usage

1
RSCU(cds)

Arguments

cds

Coding sequence in reading frame

Details

Should compute the same RSCU as seqinr.

Value

Named (codons) numerical vector with relative synonymous codon usage for the 64 codons

Original code in Darwin

Relative synonymous codon usage. AR (2007)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
RSCU := proc(;d:string)
  if nargs>0 then
    cc:=CodonCount(d);
  else
    cc := CodonCount();
  fi;
  rscu := CreateArray(1..64);
  for i to 64 do
    s:=0;
    syn:=IntToCInt(CIntToInt(i));
    l:=length(syn);
    for j in syn do
      s:=s+cc[j];
    od;
    if s=0 then next fi;
    rscu[i]:=cc[i]/(s/l);
  od;
  rscu;
end: 

Author(s)

Roth, A.; Siegrist, F. and Cannarozzi, G. M. gina@cannarozzi.com

See Also

seqinr statanacoseq readstats

Examples

1
2
RSCU('ATGTGGTACTCCGACTACGGAGGATAA')
RSCU(c2s(mylist(whatout=1)[[1]]))

fredysiegrist/statanacoseq documentation built on May 16, 2019, 2:44 p.m.