Mercurial > repos > bimib > cobraxy
diff COBRAxy/flux_to_map.py @ 244:ccb4ae0e01b3 draft
Uploaded
author | francesco_lapi |
---|---|
date | Wed, 15 Jan 2025 10:52:04 +0000 |
parents | 5aaf15260ca6 |
children | 58037c24c716 |
line wrap: on
line diff
--- a/COBRAxy/flux_to_map.py Wed Jan 15 10:41:57 2025 +0000 +++ b/COBRAxy/flux_to_map.py Wed Jan 15 10:52:04 2025 +0000 @@ -700,8 +700,8 @@ # Calculate means and standard deviations mean1 = np.nanmean(dataset1Data) mean2 = np.nanmean(dataset2Data) - std1 = np.std(dataset1Data, ddof=1) - std2 = np.std(dataset2Data, ddof=1) + std1 = np.nanstd(dataset1Data, ddof=1) + std2 = np.nanstd(dataset2Data, ddof=1) n1 = len(dataset1Data) n2 = len(dataset2Data) @@ -879,6 +879,7 @@ # Riassegna i vettori aggiornati lact_glc, lact_gln, lact_o2, glu_gln = vectors['lact_glc'], vectors['lact_gln'], vectors['lact_o2'], vectors['glu_gln'] + print(vectors) # Create a DataFrame for the new rows new_rows = pd.DataFrame({ dataset.index.name: ['LactGlc', 'LactGln','LactO2', 'GluGln'],