## Use a real coding sequence:
rcds <- read.fasta("virus.fasta")
uco( rcds, index = "freq")
uco( rcds, index = "eff")
uco( rcds, index = "rscu")
uco( rcds, as.data.frame = TRUE)
Guys, anyone to help me. I used those functions as directed in uco(seqinr) package for relative synonymous codon usage (rscu) computaion the results were as shown below. The fasta file has multiple fasta sequences. What is wrong?
aaa aac aag aat aca acc acg act aga agc agg agt
0 0 0 0 0 0 0 0 0 0 0 0
ata atc atg att caa cac cag cat cca ccc ccg cct
0 0 0 0 0 0 0 0 0 0 0 0
cga cgc cgg cgt cta ctc ctg ctt gaa gac gag gat
0 0 0 0 0 0 0 0 0 0 0 0
gca gcc gcg gct gga ggc ggg ggt gta gtc gtg gtt
0 0 0 0 0 0 0 0 0 0 0 0
taa tac tag tat tca tcc tcg tct tga tgc tgg tgt
0 0 0 0 0 0 0 0 0 0 0 0
tta ttc ttg ttt
0 0 0 0
> uco( rcds, index = "eff")
aaa aac aag aat aca acc acg act aga agc agg agt
0 0 0 0 0 0 0 0 0 0 0 0
ata atc atg att caa cac cag cat cca ccc ccg cct
0 0 0 0 0 0 0 0 0 0 0 0
cga cgc cgg cgt cta ctc ctg ctt gaa gac gag gat
0 0 0 0 0 0 0 0 0 0 0 0
gca gcc gcg gct gga ggc ggg ggt gta gtc gtg gtt
0 0 0 0 0 0 0 0 0 0 0 0
taa tac tag tat tca tcc tcg tct tga tgc tgg tgt
0 0 0 0 0 0 0 0 0 0 0 0
tta ttc ttg ttt
0 0 0 0
> uco( rcds, index = "rscu")
aaa aac aag aat aca acc acg act aga agc agg agt
NA NA NA NA NA NA NA NA NA NA NA NA
ata atc atg att caa cac cag cat cca ccc ccg cct
NA NA NA NA NA NA NA NA NA NA NA NA
cga cgc cgg cgt cta ctc ctg ctt gaa gac gag gat
NA NA NA NA NA NA NA NA NA NA NA NA
gca gcc gcg gct gga ggc ggg ggt gta gtc gtg gtt
NA NA NA NA NA NA NA NA NA NA NA NA
taa tac tag tat tca tcc tcg tct tga tgc tgg tgt
NA NA NA NA NA NA NA NA NA NA NA NA
tta ttc ttg ttt
NA NA NA NA
> uco( rcds, as.data.frame = TRUE)
AA codon eff freq RSCU
aaa Lys aaa 0 0 NA
aac Asn aac 0 0 NA
aag Lys aag 0 0 NA
aat Asn aat 0 0 NA
aca Thr aca 0 0 NA
acc Thr acc 0 0 NA
acg Thr acg 0 0 NA
act Thr act 0 0 NA
aga Arg aga 0 0 NA
agc Ser agc 0 0 NA
agg Arg agg 0 0 NA
agt Ser agt 0 0 NA
ata Ile ata 0 0 NA
atc Ile atc 0 0 NA
atg Met atg 0 0 NA
att Ile att 0 0 NA
caa Gln caa 0 0 NA
cac His cac 0 0 NA
cag Gln cag 0 0 NA
cat His cat 0 0 NA
cca Pro cca 0 0 NA
ccc Pro ccc 0 0 NA
ccg Pro ccg 0 0 NA
cct Pro cct 0 0 NA
cga Arg cga 0 0 NA
cgc Arg cgc 0 0 NA
cgg Arg cgg 0 0 NA
cgt Arg cgt 0 0 NA
cta Leu cta 0 0 NA
ctc Leu ctc 0 0 NA
ctg Leu ctg 0 0 NA
ctt Leu ctt 0 0 NA
gaa Glu gaa 0 0 NA
gac Asp gac 0 0 NA
gag Glu gag 0 0 NA
gat Asp gat 0 0 NA
gca Ala gca 0 0 NA
gcc Ala gcc 0 0 NA
gcg Ala gcg 0 0 NA
gct Ala gct 0 0 NA
gga Gly gga 0 0 NA
ggc Gly ggc 0 0 NA
ggg Gly ggg 0 0 NA
ggt Gly ggt 0 0 NA
gta Val gta 0 0 NA
gtc Val gtc 0 0 NA
gtg Val gtg 0 0 NA
gtt Val gtt 0 0 NA
taa Stp taa 0 0 NA
tac Tyr tac 0 0 NA
tag Stp tag 0 0 NA
tat Tyr tat 0 0 NA
tca Ser tca 0 0 NA
tcc Ser tcc 0 0 NA
tcg Ser tcg 0 0 NA
tct Ser tct 0 0 NA
tga Stp tga 0 0 NA
tgc Cys tgc 0 0 NA
tgg Trp tgg 0 0 NA
tgt Cys tgt 0 0 NA
tta Leu tta 0 0 NA
ttc Phe ttc 0 0 NA
ttg Leu ttg 0 0 NA
ttt Phe ttt 0 0 NA
>
Tip: use the code
formatting when posting examples, it will make it your question easier to read. For this time I've reformatted it for you.