-
Notifications
You must be signed in to change notification settings - Fork 54
Restruct DIA-NN step 3,4,5 #179
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
Merged
Merged
Changes from 9 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
12a7ada
Merge pull request #8 from bigbio/diann
daichengxin bbc5fba
assemble empirical library
daichengxin 30e5f7c
update DIA-NN and add step 4
daichengxin 06cbaf1
restruct DIA-NN step 3,4,5
daichengxin c9a2137
lint
daichengxin 39a53b8
fixed
daichengxin b4c35e4
update diann and msstats
daichengxin 038e90e
lint
daichengxin b2477e3
add dynamic name
daichengxin 831f2b9
Update bin/msstats_plfq.R
daichengxin 0abac0b
Update bin/msstats_tmt.R
daichengxin 8340bca
remove redundant parameters
daichengxin 04c8f09
update
daichengxin 643e458
lint
daichengxin 457b695
lint
daichengxin 1a8a739
lint?
daichengxin 83cf67d
lint
daichengxin 07dc0ad
add versions
daichengxin 7aaa308
remove mzml
daichengxin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,17 +1,17 @@ | ||
| process DIANN_PRELIMINARY_ANALYSIS { | ||
| tag "$meta.id" | ||
| label 'process_high' | ||
|
|
||
| container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ? | ||
| 'https://containers.biocontainers.pro/s3/SingImgsRepo/diann/v1.8.1_cv1/diann_v1.8.1_cv1.img' : | ||
| 'biocontainers/diann:v1.8.1_cv1' }" | ||
|
|
||
| input: | ||
| tuple file(mzML), file(predict_tsv), file(diann_config) | ||
| tuple val(meta), file(mzML), file(predict_tsv), file(diann_config) | ||
|
|
||
| output: | ||
| path "*.quant", emit: diann_quant | ||
| path "${mzML.baseName}_lib.tsv", emit: lib | ||
| path "*.log.txt", emit: log | ||
| tuple val(meta), path("*_diann.log"), emit: log | ||
| path "versions.yml", emit: version | ||
|
|
||
| when: | ||
|
|
@@ -24,11 +24,12 @@ process DIANN_PRELIMINARY_ANALYSIS { | |
| min_fr_mz = params.min_fr_mz ? "--min-fr-mz $params.min_fr_mz" : "" | ||
| max_fr_mz = params.max_fr_mz ? "--max-fr-mz $params.max_fr_mz" : "" | ||
|
|
||
| quick_mass_acc = params.quick_mass_acc ? "--quick-mass-acc" : "" | ||
| mass_acc = params.mass_acc_automatic ? "--quick-mass-acc --individual-mass-acc" : "--mass-acc $params.mass_acc_ms2 --mass-acc-ms1 $params.mass_acc_ms1" | ||
| scan_window = params.scan_window_automatic ? "--individual-windows" : "--window $params.scan_window" | ||
| time_corr_only = params.time_corr_only ? "--time-corr-only" : "" | ||
|
|
||
| """ | ||
| diann `cat diann_config.cfg` \\ | ||
| diann "echo \$(cat ${diann_config})" \\ | ||
| --lib ${predict_tsv} \\ | ||
| --f ${mzML} \\ | ||
| ${min_pr_mz} \\ | ||
|
|
@@ -43,16 +44,14 @@ process DIANN_PRELIMINARY_ANALYSIS { | |
| --max-pr-charge $params.max_precursor_charge \\ | ||
| --var-mods $params.max_mods \\ | ||
| --verbose $params.diann_debug \\ | ||
| --window $params.scan_window \\ | ||
| --gen-spec-lib \\ | ||
| --out-lib ${mzML.baseName}_lib.tsv \\ | ||
| ${scan_window} \\ | ||
| --temp ./ \\ | ||
| --min-corr $params.min_corr \\ | ||
| --corr-diff $params.corr_diff \\ | ||
| ${quick_mass_acc} \\ | ||
| ${mass_acc} \\ | ||
| ${time_corr_only} \\ | ||
| $args \\ | ||
| |& tee diann.log | ||
| |& tee ${mzML.baseName}_diann.log | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I feel like --gen-spec-lib should not be here but let's wait for input |
||
|
|
||
|
|
||
| cat <<-END_VERSIONS > versions.yml | ||
|
|
||
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.