Removed old code that did the old, incorrect analysis.
Added a list for the total peak areas.
Added calculation of total area.
Added calculation of thresholds.
Made variable names clearer.
Create copies of the peak_areas list so we're removing thresholds from copies instead of the original.
More detailed commenting explaining what the lists will actually be used for later on.
Added application of 1,000 threshold and the addition of it's number of remaining peaks to the list of Y axis values.
Add the total area for this profile to the list of X values.
Added comment block outlining what the script does in more detail.
Fixed tab alignment.
Added peak removal for the rest of the thresholds.
Moved threshold calculation above the threshold application.
Fixed math syntax error.
Added calculation of linear regression values.
Made linear regression results output on one line and added spaces so the actual numbers line up. This makes determining the lowest or highest regression value easier.
Added a newline so output of different profiles is clearer.