Repository navigation
Releases
prozor 0.5.0
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), elementdbofcreate_fgcz_fasta_db()→fastamake_fasta_summary()element and summary labelnr_sequences,nr sequences→n_sequencesreadjust_windows(wind, ms1data),plot_windows(windows, ms1data)→readjust_windows(windows, masses),plot_windows(windows, masses)maxbinofreadjust_windows()andCdsw$optimize_windows()→min_count- column
countsofCdsw$as_table(),Cdsw$optimize_windows()andreadjust_windows()→n_precursors Cdsw$new(nbins, maxwindow, minwindow), fieldnbins→n_bins,max_window,min_window, fieldn_binsCdsw$new(method = "sampling")→method = "mixture"Cdsw$show_cycle()→Cdsw$plot_cycle()Cdsw$error()elementsscore1,score2,counts,optimum_n→manhattan,euclidean,normalized_counts,equal_countsgreedy_to_table(res), columnprotein→greedy_to_table(groups), columnprotein_groupTargetDecoyFDR:simple_fdr→fdr_simple(method value, columnsfdr_simpleandq_value_fdr_simple)make_chain_id(sp),make_chain_id_uniprot(sp)→start- column
mofpepprotandprotpepmetashort→precursor_mz - column
score2offdr_sample→neg_log10_score
-
Result columns and list elements are snake_case too:
annotate_aho(),annotate_peptides():protein_id,offset,protein_sequence,peptide_length, andpeptide_seqfor vector input (wasproteinID,Offset,proteinSequence,lengthPeptide,peptideSeq)greedy_to_table():peptide,precursor_charge,protein_group(wasPeptide,precursorCharge,Protein);precursor_chargeis an integer instead of a charactermake_fasta_summary():n_sequences,length_summary,aa_freq;create_fgcz_fasta_db():fasta,file_path,summary,call,db_name
-
The data sets
fdr_sample,protpepmetashortandpepprothave snake_case columns (protein_id,peptide_seq,peptide_mod_seq,precursor_charge,precursor_mz,protein_length,peptide_length,neg_log10_score);bcdkeeps COMET's column names. -
Default column names follow the results:
annotate_peptides(peptide = "peptide_seq"), andgreedy_parsimony(peptide = "peptide_seq")reads the proteins fromprotein_id(wasannotatePeptides(peptide = "peptideSeq")andprepareMatrix(proteinID = "proteinID", peptideID = "strippedSequence")). -
The R6 class
TargetDecoyFDRreplacescomputeFDR(),computeFDRwithID(),predictScoreFDR()andplotFDR(), without aliases (see?TargetDecoyFDR):computeFDR(score, decoy_hit)→fdr <- TargetDecoyFDR$new(score, decoy_hit); the data framefdr$tableholds 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_valueis 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 withREV_count as decoys (decoy = "REV_"matched anywhere in the ID).
-
TargetDecoyFDRranks 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()returnedInfwith a warning. -
greedy_parsimony(annotation, peptide = "peptide_seq")replacesgreedy()andprepareMatrix()(prepare_matrix()on GitHub), without aliases. It takes the peptide-protein matches as a data frame, e.g. fromannotate_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 aspeptide. - The weightings of
prepareMatrix()are gone: they no longer change the result, since proteins are ranked by their number of peptides.
- For precursors, add a column such as
-
greedy_parsimony()returns a named character vector instead of a named list of single strings; dropunlist()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 withprepareMatrix(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()andannotate_peptides()return a data frame with 0 rows and the result columns when no peptide occurs infasta, instead ofNULL;annotate_peptides()still warns.residue_coverage()andsequence_coverage()return 0 rows for such a result. -
annotate_aho()andannotate_peptides()stop for peptides with characters other than upper-case letters (AhoCorasickTrie 0.1.3 crashed R on them) and for duplicated protein names infasta(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, whenpeptideshas 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.xandprotein_id.yinstead ofprotein_id, or were overwritten.
- Such columns, e.g. of search engine output, gave
-
annotate_peptides()setsmatchedfor 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 argumentsas_stringandoldare gone. The summary ofcreate_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, ...)requiresoutput_dir, now its second argument; it used to write next todatabase_dirby default.inst/script/fgcz_create_fasta.Rstill does when-ois not given. -
create_decoy_db()andcreate_fgcz_fasta_db()add the contaminant sets"special2024"and"universal2024"by default, likeinst/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 returnsfileinvisibly (waswriteFasta(file, ...)); combine several lists withc(). -
Cdswis an R6 class whose window breaks are computed once, byCdsw$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()→...
Februrary 2021
Updated vigenttes. Protinf course
Mai 2020
Version.0.2.3 published on Cran
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