soblanc has asked for the wisdom of the Perl Monks concerning the following question:
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!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Sort a matrix by row
by haukex (Archbishop) on Aug 30, 2022 at 10:21 UTC | |
by soblanc (Acolyte) on Aug 30, 2022 at 16:57 UTC | |
by haukex (Archbishop) on Aug 30, 2022 at 17:21 UTC | |
by soblanc (Acolyte) on Aug 31, 2022 at 13:45 UTC | |
|
Re: Sort a matrix by row
by kcott (Archbishop) on Aug 30, 2022 at 11:09 UTC | |
by soblanc (Acolyte) on Aug 30, 2022 at 14:17 UTC | |
|
Re: Sort a matrix by row
by BillKSmith (Monsignor) on Aug 30, 2022 at 17:28 UTC | |
|
Re: Sort a matrix by row
by tybalt89 (Monsignor) on Aug 30, 2022 at 17:28 UTC |