Hello everyone, I have created a matrix as follows : my @matrix = ( [@transcripts], [@alleles], [@effects] ); Let's imagine a case where we have 2 transcripts and 3 alleles for each transcript. So my matrix looks likes this:
t1 t1 t2 t2 t1 t2 a1 a2 a1 a2 a3 a3 mis mis mis mis del del
I would like to :
The goal is in the end to retrieve a vector of effects which will be in the correct order (in my exemple : mis mis del mis mis del). How shoud I proceed? Thank you very much!
In reply to Sort a matrix by row by soblanc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |