We don't need to see hundreds of data items (you've posted over 500 here); just post sufficient to support whatever issue you're describing.

You don't show your input data structure (presumably a hashref with the meaningless name $A).

You don't show the output you want.

You don't tell us what part of the code you're having difficulties with.

You show an @aminos array but don't use it in your code.

Your printf format suggests floating point data but all data shown are integers.

You've used the repetition operator (x) in two places that suggests you don't fully understand what this is for. It's explained in "perlop: Multiplicative Operators".

Overall, it's very difficult to ascertain what exactly you need help with.
Please read the guidelines in "How do I post a question effectively?" to find out how to compose a question that will help us to help you.

As indicated by the printf documentation,
you should look at sprintf for information on formats.

Here's a best guess at what you're trying to achieve.
If my guess is wrong (which is quite likely), it should at least provide some pointers for improving your code.

I think the biggest problem in your solution is that all values are printed in one line. Instead you should start each $key in a new line. That way it would look more like a matrix, and you could improve the rest of your output.