Skip to content

Commit

Permalink
fix additional columns writeout
Browse files Browse the repository at this point in the history
  • Loading branch information
ammarcsj committed Nov 7, 2023
1 parent 85df903 commit dc5691b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion directlfq/lfq_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def get_outfile_basename(input_file, input_type_to_use, selected_proteins_file,
return outfile_basename

def save_protein_df(protein_df, outfile_basename):
protein_df.to_csv(f"{outfile_basename}.protein_intensities.tsv", sep = "\t")
protein_df.to_csv(f"{outfile_basename}.protein_intensities.tsv", sep = "\t", index = None)

def save_ion_df(ion_df, outfile_basename):
ion_df.to_csv(f"{outfile_basename}.ion_intensities.tsv", sep = "\t")
Expand Down
2 changes: 1 addition & 1 deletion directlfq/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ def add_columns_to_lfq_results_table(lfq_results_df, input_file, columns_to_add)
lfq_results_df_appended = pd.merge(lfq_results_df, input_df, left_on='protein', right_on=protein_column_input_table, how='left')
length_after = len(lfq_results_df_appended.index)

lfq_results_df_appended = lfq_results_df_appended.set_index('protein')
#lfq_results_df_appended = lfq_results_df_appended.set_index('protein')


assert length_before == length_after
Expand Down
Binary file modified test_data/.sync_journal.db-shm
Binary file not shown.

0 comments on commit dc5691b

Please sign in to comment.