the help to generate a basic allele score using your independently associated SNPs.

You assume that we have myprofile.raw.

Can you provide a reproducible example? Perhaps even rewrite your post so that it is more readable so that people might want to help you.