Skip to content

Commit

Permalink
Update filterFragSpectra.R - revert - not required
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomnl authored Sep 13, 2024
1 parent 982f347 commit 40c7720
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/msPurity/filterFragSpectra.R
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ if (length(pa) > 0) {
# select and reorder columns
df_fragments <- df_fragments[, c("grpid", "pid", "precursorScanNum", "acquisitionNum", "fileid", "mz", "i", "snr", "ra", "purity_pass_flag", "intensity_pass_flag", "ra_pass_flag", "snr_pass_flag", "pass_flag")]

pa@grped_df$filename <- sapply(as.character(pa@grped_df$fileid), function(x) names(pa@fileList)[as.integer(x)])
pa@grped_df$filename <- sapply(pa@grped_df$fileid, function(x) names(pa@fileList)[as.integer(x)])

print(head(pa@grped_df))
write.table(pa@grped_df, opt$out_peaklist_prec, row.names = FALSE, sep = "\t")
Expand Down

0 comments on commit 40c7720

Please sign in to comment.