Urgent Help Required regarding biological perl script

Dear Sir / Madam

Greetings

My name is Bharat yadav and I am a researcher in Punjab Agricultural University - Ludhiana.
I am facing a problem regarding perl.
I know this will consume your time... but your favor and expertize helps me a lot

I need a perl script which let us know the location of the coordinates of 384 well array.
We do have 2 types of plates one is 384 well plate and second 96 well.
The dimensions of 384 well plate having 24 columns (1,2,3...24) and 16 rows (A,B,C...P)
Where as 96 well plate has 12 columns (1,2,3..12) and 8 rows (A,B,C..H)

these 384 well plates contains 4 different types of samples which were transferred into four 96 well plate.

The big problem is the four samples in 384 well plates which are alternatively arranged in the plate
Suppose we have four samples like B1, B2, B3 and B4
so
B1_XX01 is placed in A1
B1_XX02 is placed in C1
and so on upto O1..
the remaining samples of B1 is now filled in next to next column i.e.
B1_XX09 is placed in A3
B1_XX10 is placed in C3
and so on up to 96 samples were filled

Similarly Sample B2_SS01 is placed in A2
B2_SS02 is placed in C2
and so on upto O2..
the remaining samples of B2 is now filled in next to next column i.e.
B2_SS09 is placed in A5
B2_SS10 is placed in C5
and so on up to 96 samples were filled

B3_AA01 is placed in B1
B3_AA02 is placed in D1
and so on upto O1..
the remaining samples of B3 is now filled in next to next column i.e.
B3_AA09 is placed in B3
B3_AA10 is placed in D3
and so on up to 96 samples were filled

Similarly Sample B4_ZZ01 is placed in B2
B4_ZZ02 is placed in D2
and so on upto O2..
the remaining samples of B4 is now filled in next to next column i.e.
B4_ZZ09 is placed in B5
B4_ZZ10 is placed in D5
and so on up to 96 samples were filled

Now each plate has a single type of sample in 96 well plate and plates were named as Plate-1, Plate-2, Plate-3 and Plate-4

The query been asked from any of these four plates and need to check form which well of this query has been come form 384 well plate. we need its coordinates location

The main input for this program is a tab delimited text file which has 16X24 names like B*_**01, etc.

I just want a program which reads all entries form input file and split in the distributed fashion as mentioned above.
and the program stores all the entries of four samples in four plates, ie plate-1 has all 12X8 B1 Samples, plate-2 has all 12X8 B2 Samples
plate-3 has all 12X8 B3 Samples ,plate-4 has all 12X8 B4 Samples.

program should be run like

perl well_identifier.pl plate-3 10 C BAC_384_data_input_file

here well_identifier.pl is name of our program
10 is the column and C is the row of Plate-3 of sample entries of B3 Samples of 96 well plate

and "BAC_384_data_input_file" is our input file containing 384 entries of all four samples

So with this query I want to figure the location of the entry containing in 10 C of Plate-3 in the 384 well plate.
the answer of this query printed on the terminal as 19 E of 384 well plate

Please Help me regarding this. Its a trouble for me and requesting you to Please figure out a solution for this problem.
Hope that you are now able to understand problem... If dont then please ask me the confusion...

I have attach some files for better understanding including the input file

Please help me regarding this matter.

Thanks in anticipation
Warm regards from
Bharat yadav

About Bharat

user-pic I need help in perl programing