Hey Everyone
I have data matrix of miRNAs mature sequences and I want to calculate the percentage of each nucleotide from the sequence. For example for below sequence
%A %C %G %U Sequence
13.63636 0 40.90909 45.45455 UGAGGUAGUAGGUUGUGUGGUU
I would really appreciate your help.. :)
No I don't have these sequences in fasta format, I identified differentially expressed miRNAs and now what I am trying to do is to present them in xlsx format with detail like
Like this
Dear NicoBxl
I found what is problem in your code. Your code works perfectly fine for the the sequences in which 4 nucleotides are present as you mentioned in the above example...
Now try this in which the frequency of one nucleotide is 0 for example
and you will get this error if you will take percentage :)
And I really don't know how to get rid of this problem :)
This is the benefit to using Biostrings.
Hey NicoBxl
Can you give any suggestion how to get rid of this problem?
Indeed there's a problem with this approach. I'll think about it. As Devon suggests, maybe use Biostrings instead ;)