-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #285 from bjlang/dev-ratio
Dev ratio
- Loading branch information
Showing
9 changed files
with
120 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
pathway_name,diff_method,args_diff,enr_diff_method,args_enr_diff,cor_method,args_cor,enr_cor_method,args_enr_cor,sel_method,args_sel | ||
diff_prop,propd,--group_col fase --adjacency true --cutoff_min 0.05 --cutoff_max 0.95 --cutoff_interval 0.05 --permutation 100 --fixseed true, , ,,, , ,, | ||
diff_prop_noperm,propd,--group_col fase --adjacency true --cutoff_min 0.05 --cutoff_max 0.95 --cutoff_interval 0.05 --permutation 0 --fixseed true, , ,,, , ,, | ||
filtered_pcor,propd,--group_col fase --adjacency true --cutoff_min 0.05 --cutoff_max 0.95 --cutoff_interval 0.05 --permutation 100 --fixseed true, , ,propr, --permutation 10 --adjacency true --cutoff_min 0.005 --cutoff_max 0.5 --cutoff_interval 0.01 --metric pcor.bshrink, , , filtervar, | ||
prop,, , , ,propr, --cutoff_min 0.05 --cutoff_max 0.95 --cutoff_interval 0.05 --fixseed true --metric rho --permutation 100 --adjacency true, , , , | ||
diff_grea,propd,--group_col fase --adjacency true --cutoff_min 0.05 --cutoff_max 0.95 --cutoff_interval 0.05 --permutation 10 --fixseed true,grea, --permutation 10, , , , ,, | ||
deseq2,deseq2,,gsea,,,,,,, | ||
diff_prop,propd,--adjacency true --cutoff_min 0.05 --cutoff_max 0.95 --cutoff_interval 0.05 --permutation 100 --fixseed true,,,,,,,, | ||
diff_prop_noperm,propd,--cutoff_min 0.05 --cutoff_max 0.95 --cutoff_interval 0.05 --permutation 0 --fixseed true,,,,,,,, | ||
filtered_pcor,propd,--adjacency true --cutoff_min 0.05 --cutoff_max 0.95 --cutoff_interval 0.05 --permutation 100 --fixseed true,,,propr,--permutation 10 --adjacency true --cutoff_min 0.005 --cutoff_max 0.5 --cutoff_interval 0.01 --metric pcor.bshrink,,,filtervar, | ||
prop,,,,,propr,--cutoff_min 0.05 --cutoff_max 0.95 --cutoff_interval 0.05 --fixseed true --metric rho --permutation 100 --adjacency true,,,, | ||
diff_grea,propd,--adjacency true --cutoff_min 0.05 --cutoff_max 0.95 --cutoff_interval 0.05 --permutation 10 --fixseed true,grea,--permutation 10,,,,,, |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/* | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
Nextflow config file for running minimal tests without a GTF | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
Defines input files and everything required to run a fast and simple | ||
pipeline test of the CoDA experimental mode. | ||
Use as follows: | ||
nextflow run nf-core/differentialabundance -profile test_nogtf,<docker/singularity> --outdir <OUTDIR> | ||
---------------------------------------------------------------------------------------- | ||
*/ | ||
|
||
params { | ||
study_name = 'SRP254919' | ||
study_type = 'experimental' | ||
config_profile_name = 'Test profile' | ||
config_profile_description = 'Minimal test dataset to check pipeline function' | ||
|
||
// Limit resources so that this can run on GitHub Actions | ||
max_cpus = 2 | ||
max_memory = '6.GB' | ||
max_time = '6.h' | ||
|
||
// Input data | ||
|
||
input = 'https://raw.githubusercontent.com/nf-core/test-datasets/modules/data/genomics/mus_musculus/rnaseq_expression/SRP254919.samplesheet.csv' | ||
matrix = 'https://raw.githubusercontent.com/nf-core/test-datasets/modules/data/genomics/mus_musculus/rnaseq_expression/SRP254919.salmon.merged.gene_counts.top1000cov.tsv' | ||
contrasts = 'https://raw.githubusercontent.com/nf-core/test-datasets/modules/data/genomics/mus_musculus/rnaseq_expression/SRP254919.contrasts.csv' | ||
tools = "$projectDir/assets/tools_samplesheet.csv" | ||
pathway = "diff_prop,diff_prop_noperm,filtered_pcor,prop" | ||
|
||
//Features | ||
features_metadata_cols = 'gene_id,gene_name' | ||
|
||
// Observations | ||
observations_id_col = 'sample' | ||
observations_name_col = 'sample' | ||
|
||
// Apply a higher filter to check that the filtering works | ||
filtering_min_abundance=10 | ||
|
||
// Exploratory | ||
exploratory_main_variable = 'contrasts' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,59 @@ | ||
// | ||
// Perform differential analysis | ||
// | ||
include {PROPR_PROPD as PROPD} from "../../../modules/nf-core/propr/propd/main.nf" | ||
include { PROPR_PROPD as PROPD } from "../../../modules/nf-core/propr/propd/main.nf" | ||
include { DESEQ2_DIFFERENTIAL } from '../../../modules/nf-core/deseq2/differential/main' | ||
|
||
|
||
workflow DIFFERENTIAL { | ||
take: | ||
ch_contrasts // [meta, contrast_variable, reference, target] | ||
ch_samplesheet | ||
ch_counts | ||
ch_tools | ||
ch_samplesheet | ||
|
||
main: | ||
ch_counts | ||
.join(ch_samplesheet) | ||
.first() | ||
.combine(ch_tools) | ||
.combine(ch_contrasts) | ||
.map { | ||
metacounts, counts, meta -> | ||
[ metacounts+meta, counts ] | ||
meta_counts, counts, samplesheet, tools, meta_contrast, contrast_variable, reference, target -> | ||
def meta = meta_counts.clone() + tools.clone() | ||
meta.args_diff = (meta.args_diff ?: "") + " --group_col $contrast_variable" | ||
[ meta, samplesheet, counts ] | ||
} | ||
.unique() | ||
.branch { | ||
propd: it[0]["diff_method"] == "propd" | ||
return [it[0], it[2]] | ||
deseq2: it[0]["diff_method"] == "deseq2" | ||
} | ||
.set { ch_counts_tools } | ||
|
||
PROPD(ch_counts_tools.propd, ch_samplesheet) | ||
ch_results = PROPD.out.results | ||
PROPD( | ||
ch_counts_tools.propd, | ||
ch_samplesheet.first() | ||
) | ||
ch_results = PROPD.out.results | ||
ch_adjacency = PROPD.out.adj | ||
|
||
// ToDo: In order to use deseq2 the downstream processes need to be updated to process the output correctly | ||
// if (params.transcript_length_matrix) { ch_transcript_lengths = Channel.of([ exp_meta, file(params.transcript_length_matrix, checkIfExists: true)]).first() } else { ch_transcript_lengths = [[],[]] } | ||
// if (params.control_features) { ch_control_features = Channel.of([ exp_meta, file(params.control_features, checkIfExists: true)]).first() } else { ch_control_features = [[],[]] } | ||
|
||
// DESEQ2_DIFFERENTIAL ( | ||
// ch_contrasts, | ||
// ch_counts_tools.deseq2, | ||
// ch_control_features, | ||
// ch_transcript_lengths | ||
// ) | ||
// ch_results = ch_results | ||
// .mix(DESEQ2_DIFFERENTIAL.out.results) | ||
|
||
emit: | ||
results = ch_results | ||
results = ch_results | ||
adjacency = ch_adjacency | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters