Hello Monks. I have a number of arrays containing 9 character elements (peptides). Here are a few of those arrays
@array1 =(TTVVRRRDR KFRQLLWFH RSQSPRRRR CSPHHTALR WIRTPPAYR VVRRRDRGR +HISCLTFGR RTPSPRRRR NTNMGLKFR LVSFGVWIR); @array2 = (AILCWGELM TVLEYLVSF GLKFRQLLW LSFLPSDFF LLSFLPSDF LLWFHISCL + MQLFHLCLI QLFHLCLII ATVELLSFL ALRQAILCW); @array3 = (TTVVRRRDR CSPHHTALR WIRTPPAYR NVNMGLKIR LVSFGVWIR HISCLTFGR +); @array4 = (CSPHHTALR YVNTNMGLK WIRTPPAYR TLPETTVVR HISCLTFGR NTNMGLKIR + WGMDIDPYK LVSFGVWIR);
I would like to sort the elements of these arrays according to the frequency that each peptides occurs. I am storing that frequency in a hash, which when I print part of it, looks like this
MQLFHLCLI = 36 FLPSDFFPS = 32 YLVSFGVWI = 32 LLWFHISCL = 31 QLFHLCLII = 28 IISCSCPTV = 23 ELMNLATWV = 18 HISCLTFGR = 16 ATVELLSFL = 15
E.g. if the peptide 'MQLFHLCLI' appears in an array, it should be shown as the first element
I would be very grateful if any the brethren have a solution to this. Many thanks in advance.
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |