soblanc has asked for the wisdom of the Perl Monks concerning the following question:
Hello,
I can't manage to remove particular columns of my multidimentional dataframe (matrix). It's not strictly duplicates.
Let's consider the matrix below :
my @matrix = ( [t1 t1 t2 t2 t2], <- transcripts [a1 a2 a1 a1 a2], <- alleles [intron intron UTR_CG UTR UTR], <- locations );
In fact, I would like to delete colums where I have "UTR" alone for a given transcript and allele, but ONLY when I already have a column with "UTR_CG" for the same given transcript and allele. For instance, the resulting table would be :
my @matrix = ( [t1 t1 t2 t2], [a1 a2 a1 a2], [intron intron UTR_CG UTR], );
Thank you so much in advance!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Remove particular columns of a matrix
by tybalt89 (Monsignor) on Sep 08, 2022 at 20:34 UTC | |
|
Re: Remove particular columns of a matrix
by kcott (Archbishop) on Sep 08, 2022 at 17:29 UTC | |
|
Re: Remove particular columns of a matrix
by Marshall (Canon) on Sep 09, 2022 at 03:07 UTC | |
|
Re: Remove particular columns of a matrix
by LanX (Saint) on Sep 08, 2022 at 18:41 UTC |