Skip to content

Commit

Permalink
updated with scflow v0.7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
nfancy committed Apr 13, 2023
1 parent eddcddd commit 6461311
Show file tree
Hide file tree
Showing 70 changed files with 39 additions and 22 deletions.
Empty file modified .editorconfig
100644 → 100755
Empty file.
Empty file modified .gitattributes
100644 → 100755
Empty file.
Empty file modified .github/.dockstore.yml
100644 → 100755
Empty file.
Empty file modified .github/CONTRIBUTING.md
100644 → 100755
Empty file.
Empty file modified .github/ISSUE_TEMPLATE/bug_report.md
100644 → 100755
Empty file.
Empty file modified .github/ISSUE_TEMPLATE/config.yml
100644 → 100755
Empty file.
Empty file modified .github/ISSUE_TEMPLATE/feature_request.md
100644 → 100755
Empty file.
Empty file modified .github/PULL_REQUEST_TEMPLATE.md
100644 → 100755
Empty file.
Empty file modified .github/workflows/awsfulltest.yml
100644 → 100755
Empty file.
Empty file modified .github/workflows/awstest.yml
100644 → 100755
Empty file.
Empty file modified .github/workflows/branch.yml
100644 → 100755
Empty file.
Empty file modified .github/workflows/ci.yml
100644 → 100755
Empty file.
Empty file modified .github/workflows/linting.yml
100644 → 100755
Empty file.
Empty file modified .github/workflows/linting_comment.yml
100644 → 100755
Empty file.
Empty file modified .gitignore
100644 → 100755
Empty file.
Empty file modified .markdownlint.yml
100644 → 100755
Empty file.
Empty file modified .nf-core.yml
100644 → 100755
Empty file.
Empty file modified CHANGELOG.md
100644 → 100755
Empty file.
Empty file modified CITATIONS.md
100644 → 100755
Empty file.
Empty file modified CODE_OF_CONDUCT.md
100644 → 100755
Empty file.
Empty file modified LICENSE
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
Empty file modified assets/NO_FILE.tsv
100644 → 100755
Empty file.
Empty file modified assets/email_template.html
100644 → 100755
Empty file.
Empty file modified assets/email_template.txt
100644 → 100755
Empty file.
Empty file modified assets/nf-core-scflow_logo.png
100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified assets/schema_input.json
100644 → 100755
Empty file.
Empty file modified assets/sendmail_template.txt
100644 → 100755
Empty file.
14 changes: 6 additions & 8 deletions bin/scflow_dge.r
Original file line number Diff line number Diff line change
Expand Up @@ -131,15 +131,15 @@ required$add_argument(
)

required$add_argument(
"--fc_threshold",
"--logFC_threshold",
type = "double",
default = 1.1,
metavar = "number",
help = "Absolute fold-change cutoff for DE [default %(default)s]"
)

required$add_argument(
"--pval_cutoff",
"--padj_cutoff",
type = "double",
default = 0.05,
metavar = "number",
Expand Down Expand Up @@ -254,8 +254,6 @@ de_results <- perform_de(
ref_class = args$ref_class,
confounding_vars = args$confounding_vars,
random_effects_var = args$random_effects_var,
fc_threshold = args$fc_threshold,
pval_cutoff = args$pval_cutoff,
mast_method = args$mast_method,
force_run = args$force_run,
ensembl_mapping_file = args$ensembl_mappings,
Expand All @@ -278,8 +276,8 @@ for (result in names(de_results)) {
)

report_de(de_results[[result]],
fc_threshold = args$fc_threshold,
pval_cutoff = args$pval_cutoff,
logFC_threshold = args$logFC_threshold,
padj_cutoff = args$padj_cutoff,
n_label = args$n_label,
report_folder_path = file.path(getwd()),
report_file = paste0(file_name, result, "_scflow_de_report")
Expand All @@ -289,8 +287,8 @@ for (result in names(de_results)) {

p <- scFlow::volcano_plot(
dt = de_results[[result]],
fc_threshold = args$fc_threshold,
pval_cutoff = args$pval_cutoff,
logFC_threshold = args$logFC_threshold,
padj_cutoff = args$padj_cutoff,
n_label = args$n_label
)

Expand Down
8 changes: 4 additions & 4 deletions bin/scflow_ipa.r
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ required$add_argument(
)

required$add_argument(
"--fc_threshold",
"--logFC_threshold",
type = "double",
default = 1.1,
metavar = "number",
help = "Absolute fold-change cutoff for DE [default %(default)s]"
)

required$add_argument(
"--pval_cutoff",
"--padj_cutoff",
type = "double",
default = 0.05,
metavar = "number",
Expand Down Expand Up @@ -121,8 +121,8 @@ for (gene_file in args$gene_file) {

dt <- dt %>%
dplyr::filter(
padj <= args$pval_cutoff,
abs(logFC) >= log2(args$fc_threshold)
padj <= args$padj_cutoff,
abs(logFC) >= log2(args$logFC_threshold)
)

if (nrow(dt) < 5) {
Expand Down
10 changes: 10 additions & 0 deletions bin/scflow_map_celltypes.r
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,15 @@ required$add_argument(
required = TRUE
)

required$add_argument(
"--annotation_level",
default = 1,
type = "integer",
help = "the annotation level of the reference ctd",
required = TRUE,
metavar = "N"
)

required$add_argument(
"--species",
help = "the biological species (e.g. mouse, human)",
Expand Down Expand Up @@ -101,6 +110,7 @@ sce <- map_celltypes_sce(
ctd_folder = args$ctd_folder,
clusters_colname = args$clusters_colname,
cells_to_sample = args$cells_to_sample,
annotation_level = as.numeric(args$annotation_level),
species = args$species
)

Expand Down
1 change: 1 addition & 0 deletions bin/scflow_reduce_dims.r
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ args <- purrr::map(args, function(x) {

sce <- read_sce(args$sce_path, read_metadata = TRUE)

set.seed(42)
sce <- reduce_dims_sce(
sce,
input_reduced_dim = args$input_reduced_dim,
Expand Down
Empty file modified conf/base.config
100644 → 100755
Empty file.
Empty file modified conf/gcp.config
100644 → 100755
Empty file.
Empty file modified conf/igenomes.config
100644 → 100755
Empty file.
Empty file modified conf/modules.config
100644 → 100755
Empty file.
5 changes: 3 additions & 2 deletions conf/scflow_analysis.config
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ params {
// Options: Celltype Annotation
cta_clusters_colname = 'clusters'
cta_cells_to_sample = 10000
cta_annotation_level = 2

// Options: Celltype Metrics Report
cta_unique_id_var = 'manifest'
Expand All @@ -137,8 +138,8 @@ params {
dge_ref_class = 'Control'
dge_confounding_vars = 'cngeneson' // *
dge_random_effects_var = 'null'
dge_fc_threshold = 1.1
dge_pval_cutoff = 0.05
dge_logFC_threshold = 0.25
dge_padj_cutoff = 0.05
dge_n_label = 5
dge_force_run = 'false'
dge_max_cores = 'null'
Expand Down
Empty file modified conf/test.config
100644 → 100755
Empty file.
Empty file modified conf/test_full.config
100644 → 100755
Empty file.
Empty file modified docs/README.md
100644 → 100755
Empty file.
Empty file modified docs/images/nf-core-scflow_logo.png
100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified docs/images/scflow_workflow.png
100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified docs/output.md
100644 → 100755
Empty file.
Empty file modified docs/usage.md
100644 → 100755
Empty file.
Empty file modified lib/nfcore_external_java_deps.jar
100644 → 100755
Empty file.
Empty file modified main.nf
100644 → 100755
Empty file.
Empty file modified modules.json
100644 → 100755
Empty file.
Empty file modified modules/local/functions.nf
100644 → 100755
Empty file.
Empty file modified modules/local/get_software_versions.nf
100644 → 100755
Empty file.
Empty file modified modules/local/process/functions.nf
100644 → 100755
Empty file.
Empty file modified modules/local/process/scflow/checkinputs.nf
100644 → 100755
Empty file.
Empty file modified modules/local/process/scflow/cluster.nf
100644 → 100755
Empty file.
Empty file modified modules/local/process/scflow/dge.nf
100644 → 100755
Empty file.
Empty file modified modules/local/process/scflow/dirichlet.nf
100644 → 100755
Empty file.
Empty file modified modules/local/process/scflow/finalize.nf
100644 → 100755
Empty file.
Empty file modified modules/local/process/scflow/functions.nf
100644 → 100755
Empty file.
Empty file modified modules/local/process/scflow/integrate.nf
100644 → 100755
Empty file.
Empty file modified modules/local/process/scflow/ipa.nf
100644 → 100755
Empty file.
Empty file modified modules/local/process/scflow/mapcelltypes.nf
100644 → 100755
Empty file.
Empty file modified modules/local/process/scflow/merge.nf
100644 → 100755
Empty file.
Empty file modified modules/local/process/scflow/mergeqctables.nf
100644 → 100755
Empty file.
Empty file modified modules/local/process/scflow/plotreddimgenes.nf
100644 → 100755
Empty file.
Empty file modified modules/local/process/scflow/qc.nf
100644 → 100755
Empty file.
Empty file modified modules/local/process/scflow/reducedims.nf
100644 → 100755
Empty file.
Empty file modified modules/local/process/scflow/reportintegrated.nf
100644 → 100755
Empty file.
Empty file modified modules/local/samplesheet_check.nf
100644 → 100755
Empty file.
Empty file modified nextflow.config
100644 → 100755
Empty file.
14 changes: 10 additions & 4 deletions nextflow_schema.json
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -826,6 +826,11 @@
"default": 10000,
"description": "Max cells to sample."
},
"cta_annotation_level": {
"type": "integer",
"default": 1,
"description": "Annotation level of the reference ctd"
},
"cta_unique_id_var": {
"type": "string",
"default": "individual",
Expand Down Expand Up @@ -856,6 +861,7 @@
"required": [
"cta_clusters_colname",
"cta_cells_to_sample",
"cta_annotation_level",
"cta_unique_id_var",
"cta_celltype_var",
"cta_facet_vars",
Expand Down Expand Up @@ -947,13 +953,13 @@
"description": "Random effect confounding variable.",
"help_text": "If specified, the term `+ (1 | x ) +`is added to the model, where x is the specified random effects variable."
},
"dge_fc_threshold": {
"dge_logFC_threshold": {
"type": "number",
"default": 1.1,
"description": "Fold-change threshold for plotting.",
"help_text": "This absolute fold-change cut-off value is used in plots (e.g. volcano) and the DGE report."
},
"dge_pval_cutoff": {
"dge_padj_cutoff": {
"type": "number",
"default": 0.05,
"description": "Adjusted p-value cutoff.",
Expand Down Expand Up @@ -993,8 +999,8 @@
"dge_ref_class",
"dge_confounding_vars",
"dge_random_effects_var",
"dge_fc_threshold",
"dge_pval_cutoff",
"dge_logFC_threshold",
"dge_padj_cutoff",
"dge_n_label",
"dge_force_run",
"dge_max_cores"
Expand Down
Empty file modified subworkflows/local/input_check.nf
100644 → 100755
Empty file.
9 changes: 5 additions & 4 deletions workflows/scflow.nf
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ def scflow_mapcelltypes_options = modules['scflow_mapcelltypes']
scflow_mapcelltypes_options.args =
"--clusters_colname ${params.cta_clusters_colname} \
--cells_to_sample ${params.cta_cells_to_sample} \
--annotation_level ${params.cta_annotation_level} \
--species ${params.species} \
--reddimplot_pointsize ${params.reddimplot_pointsize} \
--reddimplot_alpha ${params.reddimplot_alpha}"
Expand Down Expand Up @@ -198,8 +199,8 @@ scflow_dge_options.args =
--ref_class ${params.dge_ref_class} \
--confounding_vars ${params.dge_confounding_vars} \
--random_effects_var ${params.dge_random_effects_var} \
--pval_cutoff ${params.dge_pval_cutoff} \
--fc_threshold ${params.dge_fc_threshold} \
--padj_cutoff ${params.dge_padj_cutoff} \
--logFC_threshold ${params.dge_logFC_threshold} \
--species ${params.species} \
--max_cores ${params.dge_max_cores}"

Expand All @@ -214,8 +215,8 @@ scflow_ipa_options.args =
"--enrichment_tool ${params.ipa_enrichment_tool} \
--enrichment_method ${params.ipa_enrichment_method} \
--enrichment_database ${params.ipa_enrichment_database} \
--pval_cutoff ${params.dge_pval_cutoff} \
--fc_threshold ${params.dge_fc_threshold} \
--padj_cutoff ${params.dge_padj_cutoff} \
--logFC_threshold ${params.dge_logFC_threshold} \
--species ${params.species}"

def scflow_dirichlet_options = modules['scflow_dirichlet']
Expand Down

0 comments on commit 6461311

Please sign in to comment.