We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3a714e3 + b68ebf1 commit c669708Copy full SHA for c669708
quantmsio/operate/tools.py
@@ -280,6 +280,14 @@ def transform(row: pd.Series) -> tuple:
280
return map_dict["sample_accession"], map_dict["channel"], map_dict["intensity"]
281
282
df = df.explode("intensities")
283
+
284
+ # Check for NA in the "intensities" column
285
+ if df["intensities"].isna().any():
286
+ logging.warning(
287
+ "[transform_ibaq]: The 'intensities' column contains NaN values."
288
+ )
289
+ df.dropna(subset=["intensities"], inplace=True)
290
291
df.reset_index(drop=True, inplace=True)
292
df[["sample_accession", "channel", "intensity"]] = df[["intensities"]].apply(
293
transform, axis=1, result_type="expand"
0 commit comments