Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions directlfq/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ def set_log_processed_proteins(log_processed_proteins = True):
global LOG_PROCESSED_PROTEINS
LOG_PROCESSED_PROTEINS = log_processed_proteins

Copy link

Copilot AI Dec 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The separator comment uses inconsistent formatting compared to other separators in the file. The separator at line 23 uses the same format, but the separator at line 16 appears after the function definition instead of before the variable declaration like line 23. Consider moving this separator to line 15 to maintain consistency with the existing pattern where separators precede variable declarations.

Suggested change

Copilot uses AI. Check for mistakes.
##########################
LOG_INTERVAL = 100

def set_log_interval(log_interval = 100):
global LOG_INTERVAL
LOG_INTERVAL = log_interval

##########################
PROTEIN_ID = 'protein'
Expand Down
2 changes: 1 addition & 1 deletion directlfq/protein_intensity_estimation.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def calculate_peptide_and_protein_intensities(idx, peptide_intensity_df, num_sam
if len(peptide_intensity_df.index) > 1:
peptide_intensity_df = ProtvalCutter(peptide_intensity_df, maximum_df_length=100).get_dataframe()

if(idx%100 ==0) and config.LOG_PROCESSED_PROTEINS:
if(idx % config.LOG_INTERVAL == 0) and config.LOG_PROCESSED_PROTEINS:
LOGGER.info(f"lfq-object {idx}")
summed_pepint = np.nansum(2**peptide_intensity_df)

Expand Down
Loading