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

Propr propr #4817

Merged
merged 24 commits into from
Feb 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
1041838
modified affy/justrma to allow the user get the unlog data when --kee…
suzannejin Jan 8, 2024
20f35ce
Merge branch 'nf-core:master' into master
suzannejin Jan 17, 2024
37da550
Merge branch 'nf-core:master' into master
suzannejin Jan 17, 2024
18720ce
Merge branch 'nf-core:master' into master
suzannejin Jan 22, 2024
b19ee67
Merge branch 'nf-core:master' into master
suzannejin Jan 24, 2024
f94f7ec
after prettier
suzannejin Jan 30, 2024
136bb7f
Merge branch 'nf-core:master' into master
suzannejin Jan 31, 2024
c7f25e4
solved conflict
suzannejin Jan 31, 2024
2608f54
trailing whitespace
suzannejin Jan 31, 2024
0205d8b
added final newline
suzannejin Jan 31, 2024
34b49a1
fix issue
suzannejin Jan 31, 2024
64e8071
updated snapshot
suzannejin Jan 31, 2024
747567a
corrected md5sum issues with inconsistent decimals
suzannejin Jan 31, 2024
0675ba2
Merge branch 'nf-core:master' into master
suzannejin Feb 1, 2024
0c29f7c
solved conflict
suzannejin Feb 1, 2024
505a70a
corrected round matrix method
suzannejin Feb 2, 2024
3bf8bb0
Merge branch 'nf-core:master' into master
suzannejin Feb 2, 2024
a9201e4
solve conflict
suzannejin Feb 2, 2024
acfc4cf
.
suzannejin Feb 2, 2024
7c028a2
copied pytest_modules.yml
suzannejin Feb 5, 2024
7767f11
.
suzannejin Feb 5, 2024
0f657aa
updated container version and added reproducible test for fdr
suzannejin Feb 8, 2024
85662b3
Merge branch 'master' into propr_propr
suzannejin Feb 9, 2024
aabd68f
Merge branch 'master' into propr_propr
suzannejin Feb 9, 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: 7 additions & 0 deletions modules/nf-core/propr/propr/environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: propr_propr
channels:
- conda-forge
- bioconda
- defaults
dependencies:
- conda-forge::r-propr=5.0.3
25 changes: 25 additions & 0 deletions modules/nf-core/propr/propr/main.nf
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
process PROPR_PROPR {
tag "$meta.id"
label 'process_medium'

conda "${moduleDir}/environment.yml"
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
'https://depot.galaxyproject.org/singularity/r-propr:5.0.3':
'biocontainers/r-propr:5.0.3' }"

input:
tuple val(meta), path(count)

output:
tuple val(meta), path("*.propr.rds"), emit: propr
tuple val(meta), path("*.propr.tsv"), emit: matrix
tuple val(meta), path("*.fdr.tsv"), emit: fdr , optional:true
path "*.R_sessionInfo.log", emit: session_info
path "versions.yml", emit: versions

when:
task.ext.when == null || task.ext.when

script:
template 'propr.R'
}
72 changes: 72 additions & 0 deletions modules/nf-core/propr/propr/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: "propr_propr"
description: |
Perform logratio-based correlation analysis -> get proportionality & basis shrinkage partial correlation coefficients.
One can also compute standard correlation coefficients, if required.
keywords:
- coexpression
- correlation
- proportionality
- logratio
- propr
- corpcor

tools:
- "propr":
description: "Logratio methods for omics data"
homepage: "https://github.com/tpq/propr"
documentation: "https://rdrr.io/cran/propr/man/propr.html"
tool_dev_url: "https://github.com/tpq/propr"
doi: "10.1038/s41598-017-16520-0"
licence: ["GPL-2"]
- "corpcor":
description: "Efficient Estimation of Covariance and (Partial) Correlation"
homepage: "https://cran.r-project.org/web/packages/corpcor/index.html"
documentation: "https://cran.r-project.org/web/packages/corpcor/corpcor.pdf"
doi: "10.2202/1544-6115.1175"
licence: ["GPL >=3"]

input:
- meta:
type: map
description: |
Groovy Map containing sample information.
This can be used at the workflow level to pass optional parameters to the module.
[id: 'test', ...]
- count:
type: file
description: |
Count matrix, where rows = variables or genes, columns = samples or cells.
This matrix should not contain zeros. Otherwise, they will be replaced by the minimun number.
It is recommended to handle the zeros beforehand with the method of preference.
pattern: "*.{csv,tsv}"

output:
- meta:
type: map
description: |
Groovy Map containing sample information.
This can be used at the workflow level to pass optional parameters to the module.
[id: 'test', ...]
- propr:
type: file
description: R propr object
pattern: "*.propr.rds"
- matrix:
type: file
description: Coefficient matrix
pattern: "*.propr.tsv"
- fdr:
type: file
description: (optional) propr fdr table
pattern: "*.fdr.tsv"
- session_info:
type: file
description: dump of R SessionInfo
pattern: "*.R_sessionInfo.log"
- versions:
type: file
description: File containing software versions
pattern: "versions.yml"

authors:
- "@suzannejin"
Loading
Loading