Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move to a single report template #19

Merged
merged 100 commits into from
Apr 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
100 commits
Select commit Hold shift + click to select a range
c5fa1ea
Version bump
csoneson Oct 13, 2023
a8518e3
First iteration of DIA-NN output support
csoneson Oct 13, 2023
fc25ef3
Include more file types for DIA-NN import
csoneson Oct 13, 2023
9326a13
Add DIA-NN reference
csoneson Oct 13, 2023
113b986
Add DIA-NN pr_matrix and main report for testing purposes
csoneson Oct 13, 2023
8d5aa1b
Add Tobias as contributor
csoneson Oct 13, 2023
4b5f5be
Document DIA-NN-related functions, expand list of supported file types
csoneson Oct 15, 2023
0171375
Add function to read DIA-NN log
csoneson Oct 20, 2023
307ae08
Add DIA-NN info to report
csoneson Oct 20, 2023
38d4d1c
Fix paths, separate cmd from other settings
csoneson Oct 20, 2023
c7c93f1
Add tests for DIA-NN functionality
csoneson Oct 27, 2023
03f2aa6
Fix documentation
csoneson Oct 27, 2023
b33230a
Bump version
csoneson Oct 30, 2023
0b526e6
Create first version of unified template (copy MQ template)
csoneson Oct 30, 2023
f57bd2b
Generalize initial sentence
csoneson Oct 30, 2023
f6e0730
Consolidate run info table chunk
csoneson Oct 30, 2023
4fbe28a
Make iColPattern inclusion dependent on expType
csoneson Oct 30, 2023
81e1c2e
Consolidate text about input file
csoneson Oct 30, 2023
939759a
Consolidate data import chunk
csoneson Oct 30, 2023
22c32be
Simplify text about sample names
csoneson Oct 30, 2023
49cdc2c
Consolidate filtering chunk
csoneson Oct 30, 2023
89d3f95
Intermediate metadata list
csoneson Oct 30, 2023
5427c31
Additional adaptations to consolidate FragPipe template
csoneson Oct 30, 2023
014a69e
Additional adaptations to consolidate PD template
csoneson Oct 30, 2023
4514f2a
Update NEWS
csoneson Oct 30, 2023
c4dcca0
Update default templateRmd
csoneson Oct 30, 2023
ab49cfe
Add expType argument
csoneson Oct 30, 2023
b041e0c
Add tests
csoneson Oct 30, 2023
24c4e84
Remove specific templates
csoneson Oct 30, 2023
ef5adfa
Fix variable name
csoneson Nov 1, 2023
bdebd74
Fix DIANN example
csoneson Jan 27, 2024
85a5dbe
Adapt missing value plots to work with both percentages and proportions
csoneson Jan 27, 2024
3b503f6
Fix tidyselect warnings
csoneson Jan 27, 2024
b6a5826
Replace ggseqlogo (removed from CRAN) with motifStack
csoneson Jan 27, 2024
d9af706
Swap ggseqlogo (removed from CRAN) for motifStack; adapt missing valu…
csoneson Jan 27, 2024
60d7300
Edit NEWS
csoneson Jan 27, 2024
003bd8d
Fix sample name column for DIANN import
csoneson Jan 29, 2024
802e668
Fix sample column name in DIA-NN import
csoneson Jan 29, 2024
eade673
Fix DIANN log file reading to handle vectors of modifications.
csoneson Feb 2, 2024
8bb93d7
Adapt DIA-NN log import to handle vector output
csoneson Feb 2, 2024
c69d5a5
Fix reference to 'Show' buttons
csoneson Feb 13, 2024
25296e4
Remove samples with no detected features
csoneson Feb 13, 2024
e987a86
Rerender documentation
csoneson Feb 13, 2024
eda9d01
Make sure that the feature displayed by default in the heatmap has at…
csoneson Feb 13, 2024
07ce72f
Add argument addHeatmap to run functions
csoneson Feb 13, 2024
a11ecf0
Update NEWS
csoneson Feb 13, 2024
5361d6f
Make run*Analysis() functions inherit applicable parameters from runM…
csoneson Feb 13, 2024
9b32c06
Document missing arguments for text snippets
csoneson Feb 13, 2024
2cabb05
Add text snippets for Spectronaut
csoneson Feb 13, 2024
b5240ff
Add Spectronaut support in prepareFinalSCE
csoneson Feb 13, 2024
b42c9fe
Adapt template report to allow Spectronaut output
csoneson Feb 13, 2024
ae411d8
Add importSpectronaut function
csoneson Feb 13, 2024
0af9ead
Add checkArgumentsSpectronaut function
csoneson Feb 13, 2024
1b1d30c
Add runSpectronautAnalysis function
csoneson Feb 13, 2024
e68442b
Update NEWS
csoneson Feb 13, 2024
37152ef
Use correct assay
csoneson Feb 16, 2024
b92838e
Manually add selected Spectronaut annotation columns
csoneson Feb 20, 2024
5f24c16
Add function to filter decoys in Spectronaut data
csoneson Feb 21, 2024
f6fc38c
Fix handling of missing values in Spectronaut import
csoneson Feb 21, 2024
705c2e9
Add extraFeatureCols argument
csoneson Mar 3, 2024
2e4b730
Add support for displayName column in sample annotation table
csoneson Mar 5, 2024
c0f4296
Fix printing of feature names
csoneson Mar 5, 2024
7ef8d90
Read information about Top N ions for FragPipe
csoneson Mar 12, 2024
2d80878
Fix unit tests
csoneson Mar 12, 2024
c9605e7
Version bump
csoneson Mar 28, 2024
ae982ca
Add extracts from hu.MAP 2.0 and the Complex Portal
csoneson Mar 28, 2024
7487fec
Update script for generating complex db
csoneson Mar 28, 2024
a1e858f
Expand set of complexes included in database
csoneson Mar 28, 2024
6a659b4
Add expanded complex db
csoneson Mar 28, 2024
2a032f1
Update NEWS
csoneson Mar 28, 2024
c7cf80d
Hide box plot legends if there are too many groups
csoneson Mar 28, 2024
cfab236
Update default complex db
csoneson Mar 28, 2024
f1a4897
Add MinProbGlobal imputation method
csoneson Apr 1, 2024
2108946
Add some more tests
csoneson Apr 1, 2024
bfbd715
Fix argument check
csoneson Apr 1, 2024
aa10abc
Make readFragPipeInfo() more robust against possible repeated lines i…
csoneson Apr 6, 2024
27f623e
Add makeInteractiveVolcano argument to plotVolcano()
csoneson Apr 8, 2024
0fd0288
Version bump
csoneson Apr 22, 2024
0398226
Add details about DIA-NN command line to report
csoneson Apr 22, 2024
c1d4618
Fix typo
csoneson Apr 23, 2024
43bd52f
Propagate ... also to impSeqRob
csoneson Apr 23, 2024
ba09645
Add column with links to ComplexPortal query to link table
csoneson Apr 23, 2024
b9faaa2
Add note about DIA-NN and Spectronaut support
csoneson Apr 23, 2024
e8dd451
Move collapsing earlier in readFragPipeInfo
csoneson Apr 23, 2024
67f2679
Include pathways from MSigDB among supported feature collections
csoneson Apr 23, 2024
33dd8df
Fix Spectronaut processing of columns with all NAs
csoneson Apr 26, 2024
c6f4089
Make sure DIA-NN example data files uses the same scientific notation…
csoneson Apr 28, 2024
d25d84b
Expand documentation of DIA-NN example data, explaining the subsettin…
csoneson Apr 28, 2024
8c77609
Update NEWS
csoneson Apr 28, 2024
eb1930f
Normalize input data paths
csoneson Apr 28, 2024
4a901c5
Add example for DIA-NN on main report
csoneson Apr 28, 2024
2c4c7dd
Allow proteinIdCol to be NULL
csoneson Apr 28, 2024
f45a32b
Move path normalization
csoneson Apr 28, 2024
ee5c2da
Add support for Spectronaut PG columns in importExperiment
csoneson Apr 28, 2024
264a4a2
Add support for Spectronaut PG pivot files
csoneson Apr 28, 2024
e200711
Fix typo
csoneson Apr 28, 2024
5780bce
Reorder Spectronaut assays to have the one corresponding to aName first
csoneson Apr 28, 2024
c1dd85a
Add initial support for reading Spectronaut log files
csoneson Apr 28, 2024
a843e24
Manually clear cache on GHA, use newer Docker container
csoneson Apr 29, 2024
f88bb53
Increase tolerance in normalization test (for M1)
csoneson Apr 29, 2024
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
7 changes: 4 additions & 3 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
config:
- { os: macOS-latest, bioc: 'release', curlConfigPath: '/usr/bin/'}
- { os: windows-latest, bioc: 'release'}
- { os: ubuntu-latest, image: "bioconductor/bioconductor_docker:RELEASE_3_17", cran: "https://demo.rstudiopm.com/all/__linux__/xenial/latest"}
- { os: ubuntu-latest, image: "bioconductor/bioconductor_docker:RELEASE_3_18", cran: "https://demo.rstudiopm.com/all/__linux__/xenial/latest"}

env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
Expand All @@ -30,6 +30,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
CURL_CONFIG: ${{ matrix.config.curlConfigPath }}curl-config
cache-version: v1

steps:
- name: Check out repo
Expand Down Expand Up @@ -60,8 +61,8 @@ jobs:
uses: actions/cache@v1
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ runner.os }}-bioc-${{ matrix.config.bioc }}-${{ hashFiles('depends.Rds') }}
restore-keys: ${{ runner.os }}-bioc-${{ matrix.config.bioc }}-
key: ${{ env.cache-version }}-${{ runner.os }}-bioc-${{ matrix.config.bioc }}-${{ hashFiles('depends.Rds') }}
restore-keys: ${{ env.cache-version }}-${{ runner.os }}-bioc-${{ matrix.config.bioc }}-

- name: Install system dependencies (Linux)
if: runner.os == 'Linux'
Expand Down
8 changes: 5 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
Package: einprot
Type: Package
Title: A collection of proteomics analysis utilities and workflows
Version: 0.7.7
Version: 0.9.4
Authors@R: c(
person("Charlotte", "Soneson", email = "charlotte.soneson@fmi.ch",
role = c("aut", "cre"), comment = c(ORCID = "0000-0003-3833-2169")),
person("Jan", "Seebacher", role = "aut"),
person("Michael", "Stadler", email = "michael.stadler@fmi.ch",
role = "aut", comment = c(ORCID = "0000-0002-2269-4934")),
person("Tobias", "Kockmann", role = "ctb"),
person("Friedrich Miescher Institute for Biomedical Research",
role = c("cph")))
Description: The einprot package contains utilities for performing analysis
Expand Down Expand Up @@ -75,8 +76,9 @@ Imports:
writexl,
tools,
grid,
ggseqlogo
RoxygenNote: 7.2.3
Biostrings,
motifStack
RoxygenNote: 7.3.1
Suggests:
BiocManager,
testthat (>= 3.0.0),
Expand Down
21 changes: 19 additions & 2 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ export(defineAssayNames)
export(doImputation)
export(doNormalization)
export(doPCA)
export(emptySampleText)
export(expDesignText)
export(filterFragPipe)
export(filterMaxQuant)
export(filterPDTMT)
export(filterSpectronaut)
export(fixFeatureIds)
export(formatTableColumns)
export(getCalibrationFrompdAnalysis)
Expand All @@ -33,7 +35,11 @@ export(getSupportedSpecies)
export(getTemplateNamesFrompdAnalysis)
export(getUniProtToIDMapping)
export(getValidationInfoFrompdAnalysis)
export(importDIANN)
export(importExperiment)
export(importSpectronaut)
export(inputText)
export(introText)
export(listComplexDBs)
export(makeAbundanceExport)
export(makeAbundanceHeatmap)
Expand All @@ -53,20 +59,26 @@ export(plotMissingValuesHeatmap)
export(plotVolcano)
export(prepareFeatureCollections)
export(prepareFinalSCE)
export(readDIANNInfo)
export(readFragPipeInfo)
export(readMaxQuantXML)
export(readProteomeDiscovererInfo)
export(readSpectronautSetup)
export(runDIANNAnalysis)
export(runFragPipeAnalysis)
export(runMaxQuantAnalysis)
export(runPDTMTAnalysis)
export(runPDTMTptmAnalysis)
export(runPTMTest)
export(runSpectronautAnalysis)
export(runTest)
export(saText)
export(seqLogoApp)
export(testText)
import(STRINGdb)
importFrom(BiocSingular,ExactParam)
importFrom(Biostrings,AAStringSet)
importFrom(Biostrings,consensusMatrix)
importFrom(ComplexHeatmap,Heatmap)
importFrom(ComplexHeatmap,columnAnnotation)
importFrom(ComplexHeatmap,draw)
Expand Down Expand Up @@ -174,8 +186,6 @@ importFrom(ggplot2,theme)
importFrom(ggplot2,theme_bw)
importFrom(ggplot2,theme_minimal)
importFrom(ggrepel,geom_text_repel)
importFrom(ggseqlogo,ggseqlogo)
importFrom(ggseqlogo,theme_logo)
importFrom(grDevices,dev.off)
importFrom(grDevices,hcl)
importFrom(grDevices,pdf)
Expand All @@ -202,6 +212,8 @@ importFrom(limma,treat)
importFrom(mclust,adjustedRandIndex)
importFrom(methods,as)
importFrom(methods,is)
importFrom(motifStack,colorset)
importFrom(motifStack,pcm2pfm)
importFrom(msigdbr,msigdbr)
importFrom(plotly,ggplotly)
importFrom(proDA,proDA)
Expand Down Expand Up @@ -234,6 +246,8 @@ importFrom(stats,median)
importFrom(stats,model.matrix)
importFrom(stats,p.adjust)
importFrom(stats,pt)
importFrom(stats,quantile)
importFrom(stats,rnorm)
importFrom(stats,sd)
importFrom(stats,setNames)
importFrom(stringdist,amatch)
Expand All @@ -242,7 +256,10 @@ importFrom(tibble,rownames_to_column)
importFrom(tidyr,gather)
importFrom(tidyr,pivot_longer)
importFrom(tidyr,pivot_wider)
importFrom(tidyr,separate)
importFrom(tidyr,separate_rows)
importFrom(tidyr,separate_wider_delim)
importFrom(tidyr,unite)
importFrom(tidyr,unnest)
importFrom(tidyselect,any_of)
importFrom(tools,file_ext)
Expand Down
41 changes: 41 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,44 @@
# einprot 0.9.4

* Add details about DIA-NN command line to report
* Add column with links to ComplexPortal query to link table
* Include pathways from MSigDB among supported feature collections
* Update DIA-NN example data
* Expand input data paths in run*Analysis() functions
* Add support for importing Spectronaut PG pivot files
* Add initial support for reading Spectronaut setup.txt files

# einprot 0.9.3

* Significantly expand the built-in complex database by adding complexes from the Complex Portal and hu.MAP 2.0
* Hide box plot legends if there are too many groups
* Add MinProbGlobal imputation method
* Add makeInteractiveVolcano argument to plotVolcano

# einprot 0.9.2

* Fix sample column name in DIA-NN import
* Adapt DIA-NN log import to handle vector output
* Add argument addHeatmaps to run functions, to allow suppression of heatmaps for large data sets
* Remove samples with no detected features
* Add support for Spectronaut protein group output
* Add support for displayName column in sample annotation table
* Add extraFeatureCols argument for specification of user-defined feature annotation columns
* Extract information about Top N ions for FragPipe

# einprot 0.9.1

* Replace ggseqlogo dependency with motifStack
* Adapt missing value plots to work with both proportions and percentages

# einprot 0.9.0

* Consolidate tool-specific templates into a single template

# einprot 0.8.0

* Add support for DIA-NN protein group data

# einprot 0.7.7

* Change default value of singleFit to TRUE everywhere, for consistency
Expand Down
10 changes: 10 additions & 0 deletions R/addSampleAnnots.R
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,15 @@ addSampleAnnots <- function(sce, sampleAnnot) {
sampleAnnot[[cn]][match(sce$sample, sampleAnnot$sample)]
}

if ("displayName" %in% colnames(sampleAnnot)) {
if (any(duplicated(sampleAnnot$displayName))) {
stop("'displayName' column contains duplicated values")
}
colnames(sce) <- rownames(SummarizedExperiment::colData(sce)) <-
sce$displayName
sce$originalSample <- sce$sample
sce$sample <- sce$displayName
}

sce
}
Loading
Loading