Multidimensional Arrays in Perl 5.0: A Boon to Bioperl (Part 1)

Bio-Perl users can now use Perl 5.0. Perl 5.0 now comes with the added benefit of being able to handle multi-dimensional arrays. Biologists and genomics systems have to handle huge files of data. Now they can easily record, research, change and update this information. Perl already comes with the utility of processing data “on-the-fly.” Add to this the multi-dimensional utility of handling tools and you end up with a written conversation that becomes the bioinformaticist’s best friend.

In a nut

One can use parentheses or backslashes to “convert” structures such as arrays and hashes to scalars and to access scalar data structures.

Example:

@array = [0,3,6,9,12,15];

$newarray = @array ; #(relate)

When does a biologist need multi-dimensional clothing?

When someone works with bioinformatics, the question is more like: when does someone not need multi-dimensional clothing?
Starting from a list of all the experiments with microarray data related to various types of diseases to analyze the information, it is necessary to provide various “tables”, “hashes clothes”, “frame clothes” (scary-cool. !! ) and so on.

Sample:

I would like to look at all the data from the experiments related to kidney cancer kidney before proceeding to work on it.
Here are some experiments I found in public databases.

PlatformA: Microarray data of men and women over fifty with kidney cancer in metros with a high incidence of carcinogenic dyes in food . Six replicates, two given control from healthy kidneys and two from each type; drug-treated grow
PlatformB: Microarray data from drug companyX of patients with kidney cancer, showing some fewer cancer cells in the kidneys of patients treated with drugs M, N, B (multiple files, 2 replicates and one control); drug treatment MNB
PlatformC: Microarray data from mice with carcinogen-induced kidney cancer. Two different mice were used to select the most defined genes upregulated in cancer. Genders: Four control sets, one treated with drugs, one with a diet in facilites before induction, male, female and others; treated with the carcinogen and drug GHI

Experiment A: treated with drug ADNA fifty kidney cancer; six files/datasets, three categories
Experiment B : MNB drug treatment; more than eight files/datasets, more than three types
ExperimentC: treated with the carcinogen and the drug GHI; ten files/datasets in more than four categories
Experiment D : FNB treatment, four files/datasets, two types.

This link was created from the above information.

Experiment A, platform 1
Experiment B, platform 2
Experiment C, platform 4
Experiment D, platform 3

The “function”/ solution:

The example above gives us an instance of “Hash”. This is the key ingredient.

We know that there is no scalar value in Perl. You don’t need to access the values ​​in the dress, about the dress or the dress hashes. We will use this
Reference”.

A relation is also a scalar value.
Another data structure we will use is arrays.
There are many ways to store and organize goods. Notes can be created in two ways.


1) BACKSLASH FOR MULTI-DIMENSIONAL ARRAYS
Now we have our array stored in the scale.
When you put “” before the line, you get it.

Original order :

@newdrugarray.

 

$newref = @newdrugarray

Leave a Reply

Your email address will not be published. Required fields are marked *