Skip to content

Releases

prozor 0.5.0

Choose a tag to compare

@wolski wolski released this 25 Nov 14:41

prozor 0.4.0 was not released to CRAN; this section lists all changes since CRAN 0.3.1.

Breaking changes

  • All exported functions and their arguments use snake_case. The old names are gone, without aliases:
Old New
annotateAHO(), annotatePeptides() annotate_aho(), annotate_peptides()
computeFDR(), computeFDRwithID(), predictScoreFDR(), plotFDR() TargetDecoyFDR$new(), $score_at(), $plot() (see below)
createDecoyDB(), reverseSeq() create_decoy_db(), reverse_seq()
readPeptideFasta(), writeFasta() read_fasta(), write_fasta()
loadContaminantsFasta2019(), loadContaminantsFasta2021(), loadContaminantsFGCZ2022(), load_universal_contaminants_2024(), load_special_prot_2024() load_contaminants("fgcz2019"), "fgcz2021", "fgcz2022", "universal2024", "special2024"
greedyRes2Matrix(res) greedy_to_table(groups)
removeSignalPeptide(), makeID(), makeIDUnip() remove_signal_peptide(), make_chain_id(), make_chain_id_uniprot()
readjustWindows() readjust_windows()
Cdsw methods asTable(), showCycle(), optimizeWindows() as_table(), plot_cycle(), optimize_windows()
Cdsw methods constant_breaks(), quantile_breaks(), sampling_breaks() Cdsw$new(method = "constant"), "quantile", "mixture"
Cdsw$error() elements score1, score2, counts, optimumN manhattan, euclidean, normalized_counts, equal_counts
arguments useContaminants, revLab, noHuman, databasedirectory, outputdir, resDB, qValue, idfun, ID contaminants, rev_lab, no_human, database_dir, output_dir, fasta, q_value, id_fun, id
arguments pepinfo of annotatePeptides(), pepseq of annotateAHO() peptides
arguments dbs, annot of createDecoyDB(), db of removeSignalPeptide() files, header, fasta
arguments wind, ms1data, maxbin of readjustWindows() and Cdsw$optimizeWindows() windows, masses, min_count
column counts of Cdsw$asTable(), Cdsw$optimizeWindows() and readjustWindows() n_precursors
Cdsw arguments and field nbins, maxwindow, minwindow n_bins, max_window, min_window
argument sp of makeID(), makeIDUnip() start
data set fdrSample, its column score2 fdr_sample, column neg_log10_score
column m of the data sets pepprot and protpepmetashort precursor_mz
  • Renamed since 0.4.0 (GitHub only), without aliases:

    • read_peptide_fasta() → read_fasta()
    • annotate_peptides(pepinfo), annotate_aho(pepseq) → annotate_peptides(peptides), annotate_aho(peptides)
    • create_decoy_db(dbs, annot) → create_decoy_db(files, header)
    • make_fasta_summary(db), remove_signal_peptide(db), element db of create_fgcz_fasta_db() → fasta
    • make_fasta_summary() element and summary label nr_sequences, nr sequences → n_sequences
    • readjust_windows(wind, ms1data), plot_windows(windows, ms1data) → readjust_windows(windows, masses), plot_windows(windows, masses)
    • maxbin of readjust_windows() and Cdsw$optimize_windows() → min_count
    • column counts of Cdsw$as_table(), Cdsw$optimize_windows() and readjust_windows() → n_precursors
    • Cdsw$new(nbins, maxwindow, minwindow), field nbins → n_bins, max_window, min_window, field n_bins
    • Cdsw$new(method = "sampling") → method = "mixture"
    • Cdsw$show_cycle() → Cdsw$plot_cycle()
    • Cdsw$error() elements score1, score2, counts, optimum_n → manhattan, euclidean, normalized_counts, equal_counts
    • greedy_to_table(res), column protein → greedy_to_table(groups), column protein_group
    • TargetDecoyFDR: simple_fdr → fdr_simple (method value, columns fdr_simple and q_value_fdr_simple)
    • make_chain_id(sp), make_chain_id_uniprot(sp) → start
    • column m of pepprot and protpepmetashort → precursor_mz
    • column score2 of fdr_sample → neg_log10_score
  • Result columns and list elements are snake_case too:

    • annotate_aho(), annotate_peptides(): protein_id, offset, protein_sequence, peptide_length, and peptide_seq for vector input (was proteinID, Offset, proteinSequence, lengthPeptide, peptideSeq)
    • greedy_to_table(): peptide, precursor_charge, protein_group (was Peptide, precursorCharge, Protein); precursor_charge is an integer instead of a character
    • make_fasta_summary(): n_sequences, length_summary, aa_freq; create_fgcz_fasta_db(): fasta, file_path, summary, call, db_name
  • The data sets fdr_sample, protpepmetashort and pepprot have snake_case columns (protein_id, peptide_seq, peptide_mod_seq, precursor_charge, precursor_mz, protein_length, peptide_length, neg_log10_score); bcd keeps COMET's column names.

  • Default column names follow the results: annotate_peptides(peptide = "peptide_seq"), and greedy_parsimony(peptide = "peptide_seq") reads the proteins from protein_id (was annotatePeptides(peptide = "peptideSeq") and prepareMatrix(proteinID = "proteinID", peptideID = "strippedSequence")).

  • The R6 class TargetDecoyFDR replaces computeFDR(), computeFDRwithID(), predictScoreFDR() and plotFDR(), without aliases (see ?TargetDecoyFDR):

    • computeFDR(score, decoy_hit) → fdr <- TargetDecoyFDR$new(score, decoy_hit); the data frame fdr$table holds the hits in score order with both FDR estimates and their q-values (was a list of vectors).
    • FPR, SimpleFDR, qValue_FPR, qValue_SimpleFDR → fdr_concatenated, fdr_simple, q_value_fdr_concatenated, q_value_fdr_simple; 2 * decoys / all hits estimates the FDR of a concatenated search, not a false positive rate.
    • predictScoreFDR(fdr, qValue = 1) → fdr$score_at(q_value = 0.01): q_value is a fraction, not a percentage. method = "SimpleFDR" (default) and "FPR" → "fdr_simple" and "fdr_concatenated".
    • plotFDR(fdr) → fdr$plot().
    • computeFDRwithID(score, ID) → TargetDecoyFDR$new(score, decoy_hit = grepl("^REV_", ID), id = ID); only IDs starting with REV_ count as decoys (decoy = "REV_" matched anywhere in the ID).
  • TargetDecoyFDR ranks decoys before targets within tied scores, so q-values no longer depend on the input order.

  • TargetDecoyFDR$score_at() stops when no score reaches the requested FDR; predictScoreFDR() returned Inf with a warning.

  • greedy_parsimony(annotation, peptide = "peptide_seq") replaces greedy() and prepareMatrix() (prepare_matrix() on GitHub), without aliases. It takes the peptide-protein matches as a data frame, e.g. from annotate_peptides(), instead of a peptide-by-protein matrix (see ?greedy_parsimony).

    • For precursors, add a column such as paste(peptide_seq, precursor_charge, sep = ".") and pass its name as peptide.
    • The weightings of prepareMatrix() are gone: they no longer change the result, since proteins are ranked by their number of peptides.
  • greedy_parsimony() returns a named character vector instead of a named list of single strings; drop unlist() on its result.

  • greedy_parsimony() ranks proteins by the number of peptides they explain, as documented. greedy() ranked them by the sum of their matrix entries, so with prepareMatrix(weighting = "inverse") a protein with fewer but less shared peptides could win the shared ones.

  • greedy_parsimony() no longer prints its run time.

  • annotate_aho() and annotate_peptides() return a data frame with 0 rows and the result columns when no peptide occurs in fasta, instead of NULL; annotate_peptides() still warns. residue_coverage() and sequence_coverage() return 0 rows for such a result.

  • annotate_aho() and annotate_peptides() stop for peptides with characters other than upper-case letters (AhoCorasickTrie 0.1.3 crashed R on them) and for duplicated protein names in fasta (they multiplied the result rows).

  • annotate_aho() stops for peptides with whitespace around them and shows the peptide escaped, e.g. "PEPTIDEK\r"; it used to remove the whitespace. annotate_peptides() still removes it.

  • annotate_peptides() stops, naming the columns, when peptides has a column named like a result column (protein_id, offset, protein_sequence, matched, peptide_length).

    • Such columns, e.g. of search engine output, gave protein_id.x and protein_id.y instead of protein_id, or were overwritten.
  • annotate_peptides() sets matched for each occurrence of a peptide in a protein; a second, non-tryptic occurrence was flagged as tryptic.

  • make_fasta_summary(fasta) always returns the list; the arguments as_string and old are gone. The summary of create_fgcz_fasta_db(make_summary = TRUE) lists the sequence lengths and amino-acid counts one per line.

  • create_fgcz_fasta_db(database_dir, output_dir, ...) requires output_dir, now its second argument; it used to write next to database_dir by default. inst/script/fgcz_create_fasta.R still does when -o is not given.

  • create_decoy_db() and create_fgcz_fasta_db() add the contaminant sets "special2024" and "universal2024" by default, like inst/script/fgcz_create_fasta.R (was "fgcz2021" in CRAN 0.3.1, "fgcz2022" in 0.4.0).

  • write_fasta(fasta, file) takes one list of sequences, data first, and returns file invisibly (was writeFasta(file, ...)); combine several lists with c().

  • Cdsw is an R6 class whose window breaks are computed once, by Cdsw$new() (see ?Cdsw). It was a reference class whose *_breaks() methods overwrote the breaks, so the results of the other methods depended on which of them ran last.

    • constant_breaks(), quantile_breaks(), sampling_breaks() → Cdsw$new(masses, method = "constant"), "quantile", "mixture" (the default); create one object per method. Cdsw(masses) started with "constant".
    • copy() →...
Read more

Februrary 2021

Februrary 2021 Pre-release
Pre-release

Choose a tag to compare

@wolski wolski released this 26 Feb 06:25

Updated vigenttes. Protinf course

Mai 2020

Choose a tag to compare

@wolski wolski released this 19 May 19:07

Release before removing deprecated funcitons and adding cdsw functionality

Version.0.2.3 published on Cran

Choose a tag to compare

@wolski wolski released this 20 Apr 14:33
cpanse@fgcz-r-028:~ > /scratch/cpanse/R/R-devel/bin/R CMD check __checkouts/prozor_0.2.3.tar.gz  --as-cran
* using log directory ‘/home/cpanse/prozor.Rcheck’
* using R Under development (unstable) (2017-04-19 r72556)
* using platform: x86_64-pc-linux-gnu (64-bit)
* using session charset: UTF-8
* using option ‘--as-cran’
* checking for file ‘prozor/DESCRIPTION’ ... OK
* checking extension type ... Package
* this is package ‘prozor’ version ‘0.2.3’
* checking CRAN incoming feasibility ... Note_to_CRAN_maintainers
Maintainer: ‘Witold Wolski <wewolski@gmail.com>’
* checking package namespace information ... OK
* checking package dependencies ... OK
* checking if this is a source package ... OK
* checking if there is a namespace ... OK
* checking for executable files ... OK
* checking for hidden files and directories ... OK
* checking for portable file names ... OK
* checking for sufficient/correct file permissions ... OK
* checking whether package ‘prozor’ can be installed ... OK
* checking installed package size ... OK
* checking package directory ... OK
* checking DESCRIPTION meta-information ... OK
* checking top-level files ... OK
* checking for left-over files ... OK
* checking index information ... OK
* checking package subdirectories ... OK
* checking R files for non-ASCII characters ... OK
* checking R files for syntax errors ... OK
* checking whether the package can be loaded ... OK
* checking whether the package can be loaded with stated dependencies ... OK
* checking whether the package can be unloaded cleanly ... OK
* checking whether the namespace can be loaded with stated dependencies ... OK
* checking whether the namespace can be unloaded cleanly ... OK
* checking loading without being on the library search path ... OK
* checking use of S3 registration ... OK
* checking dependencies in R code ... OK
* checking S3 generic/method consistency ... OK
* checking replacement functions ... OK
* checking foreign function calls ... OK
* checking R code for possible problems ... OK
* checking Rd files ... OK
* checking Rd metadata ... OK
* checking Rd line widths ... OK
* checking Rd cross-references ... OK
* checking for missing documentation entries ... OK
* checking for code/documentation mismatches ... OK
* checking Rd \usage sections ... OK
* checking Rd contents ... OK
* checking for unstated dependencies in examples ... OK
* checking contents of ‘data’ directory ... OK
* checking data for non-ASCII characters ... OK
* checking data for ASCII and uncompressed saves ... OK
* checking examples ... OK
* checking PDF version of manual ... OK
* DONE

Status: OK