Re: [R] caculate the frequencies of the Amino Acids

2010-01-03 Thread Dennis Murphy
I sent a private reply to the poster yesterday with the solution to his problem, bit evidently he hasn't seen it, so ... # Function to tabulate an amino acid sequence # using strsplit and table: AAtab2 - function(x) { # Creates a frequency table of the characters in a string AA -

Re: [R] caculate the frequencies of the Amino Acids

2010-01-02 Thread Jorge Ivan Velez
Hi fadialnaji, Take a look at the Biostring package in Bioconductor [1] It might be an alternative to do what you want. HTH, Jorge [1] http://www.bioconductor.org/packages/release/bioc/html/Biostrings.html On Fri, Jan 1, 2010 at 11:59 PM, che wrote: may some one please help me to sort

Re: [R] caculate the frequencies of the Amino Acids

2010-01-02 Thread che
Thanks very much the code is working perfectly, but I hope guys that you can help me to do the same thing but by using the loop structure, i want to know if i am doing right, i want to use the loop structure to scan each sequence from the file sequence.txt (the file is attached) to get the

Re: [R] caculate the frequencies of the Amino Acids

2010-01-02 Thread David Winsemius
On Jan 3, 2010, at 12:28 AM, che wrote: Thanks very much the code is working perfectly, but I hope guys that you can help me to do the same thing but by using the loop structure, i want to know if i am doing right, i want to use the loop structure to scan each sequence from the file

[R] caculate the frequencies of the Amino Acids

2010-01-01 Thread che
may some one please help me to sort this out, i am trying to writ a R code for calculating the frequencies of the amino acids in 9 different sequences, i want the code to read the sequence from external text file, i used the following code to do so: x-read.table(sequence.txt,header=FALSE) then i

Re: [R] caculate the frequencies of the Amino Acids

2010-01-01 Thread David Winsemius
On Jan 1, 2010, at 11:59 PM, che wrote: may some one please help me to sort this out, i am trying to writ a R code for calculating the frequencies of the amino acids in 9 different sequences, i want the code to read the sequence from external text file, i used the following code to do

Re: [R] caculate the frequencies of the Amino Acids

2010-01-01 Thread David Winsemius
On Jan 2, 2010, at 12:26 AM, David Winsemius wrote: On Jan 1, 2010, at 11:59 PM, che wrote: may some one please help me to sort this out, i am trying to writ a R code for calculating the frequencies of the amino acids in 9 different sequences, i want the code to read the sequence from

Re: [R] caculate the frequencies of the Amino Acids

2010-01-01 Thread che
i know it would be better to ask R to make the data, but i need to sequence this particular file, because it is data for some Amino Acids and i cant play with, so i need to ask R to go through the sequence one by one, and then give me the numbers of each letters of each sequence, i am quite

Re: [R] caculate the frequencies of the Amino Acids

2010-01-01 Thread David Winsemius
On Jan 2, 2010, at 12:55 AM, che wrote: i know it would be better to ask R to make the data, but i need to sequence this particular file, because it is data for some Amino Acids and i cant play with, so i need to ask R to go through the sequence one by one, and then give me the numbers