Skip to content

Commit

Permalink
Debug missing replicate from tracer plot
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Chao authored and alexchao32 committed May 23, 2024
1 parent cffd487 commit 657f142
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions app/ms1/WebApp_plotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,10 @@ def make_seq_scatter(
# check if there is a sequence csv file
if seq_csv is None:
# Sort dataframe columns alphabetically prior to parsing headers
df_in = df_in.reindex(sorted(df_in.columns), axis=1)
df_in = df_in.reindex(sorted(df_in.columns), axis=1) # Remove sorting to
df_in = df_in[
["Mass"] + [col for col in df_in.columns if col != "Mass"]
] # Move mass column to front of dataframe; if a sample replicate is the first column when parsing headers it loses that replicate from the group

# Debug_list
debug_list.append("After sorting: df_in columns")
Expand Down Expand Up @@ -571,12 +574,6 @@ def make_seq_scatter(
)
]

# Debug_list
debug_list.append(
"Abundance after removing specific prefix-matching columns"
)
debug_list.append(abundance)

df_loc_seq = pd.DataFrame()
df_loc_seq["Sample Sequence"] = abundance
order_samples = False
Expand Down Expand Up @@ -678,14 +675,6 @@ def make_seq_scatter(

df = df_in[abundance].copy()

# Debug_list
# debug_list.append("Second abundance")
# debug_list.append(abundance)

# Debug_list
# debug_list.append("Clean the data df columns")
# debug_list.append(df.columns.values)

# our list of final chemical names with appropriate capitalization
chemical_names = df_in["Chemical_Name"]

Expand Down

0 comments on commit 657f142

Please sign in to comment.