Skip to content

Commit

Permalink
Merge pull request #2 from somethington:V1.0.0-beta
Browse files Browse the repository at this point in the history
V1.0.0-beta
  • Loading branch information
somethington authored Aug 22, 2024
2 parents 0d90983 + 1f585a2 commit f2c4ba2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Publish Multi-Platform Docker Image
on:
push:
branches:
- main
- V1.0.0-beta

jobs:
build:
Expand All @@ -29,4 +29,4 @@ jobs:
context: .
push: true
platforms: linux/amd64,linux/arm64
tags: ghcr.io/${{ github.repository_owner }}/tpp_solver:latest
tags: ghcr.io/${{ github.repository_owner }}/tpp_solver:V1.0.0-beta
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jsonschema-specifications==2023.12.1
kiwisolver==1.4.5
markdown-it-py==3.0.0
MarkupSafe==2.1.5
matplotlib==3.9.1
matplotlib==3.9.2
mdurl==0.1.2
numpy==2.0.0
packaging==24.1
Expand Down
8 changes: 4 additions & 4 deletions tpp_solver_mt.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def average_samples(sample_groups, filtered_data):

for sample in sample_groups[treatment]:
for _, row in filtered_data.iterrows():
protein_id = row['Protein ID']
protein_id = row['Protein']

sample_vals = row[sample[1]]
average_val = np.mean(sample_vals)
Expand Down Expand Up @@ -194,7 +194,7 @@ def process_protein(args):
ax.text(popt[1], melt_pt, f'{popt[1]:.2f}', color='red', horizontalalignment=curpos, verticalalignment='bottom')

summary_data.append({
'protein_id': protein,
'protein': protein,
'treatment': treatment,
'melting point': popt[1],
'residuals': ','.join(map(str, (values - sigmoid(temperatures, *popt)))),
Expand Down Expand Up @@ -243,12 +243,12 @@ def fit_and_plot(data_dict):
if all_summary_data:
summary_table = pd.DataFrame(all_summary_data)
# Ensure correct data types
summary_table['protein_id'] = summary_table['protein_id'].astype(str)
summary_table['protein'] = summary_table['protein'].astype(str)
summary_table['treatment'] = summary_table['treatment'].astype(str)
summary_table['melting point'] = summary_table['melting point'].astype(float)
summary_table['residuals'] = summary_table['residuals'].astype(str)
else:
summary_table = pd.DataFrame(columns=['protein_id', 'treatment', 'melting point', 'residuals'])
summary_table = pd.DataFrame(columns=['protein', 'treatment', 'melting point', 'residuals'])

return figures, summary_table

Expand Down

0 comments on commit f2c4ba2

Please sign in to comment.