Move main PDb analysis into a function to start refactor of sct_pdb_analysis.py prior to SASSIE incorporation.