-
Notifications
You must be signed in to change notification settings - Fork 113
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
Added ability to auto-create samplesheet for nf-core/phageannotator #543
Draft
CarsonJM
wants to merge
22
commits into
nf-core:dev
Choose a base branch
from
CarsonJM:dev
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
65034b5
Added ability to auto-create samplesheet for phageannotator
CarsonJM 43491d8
Created tests for samplesheet creation
CarsonJM e39111e
Added nf-core-pipeline parameter to schema
CarsonJM 69c684e
Changed input to samplesheet creation
CarsonJM bd06532
Conditional running of samplesheet creation
CarsonJM a564425
Updated docs and added pipeline to output file name
CarsonJM 647a197
Modified names and used collectFile()
CarsonJM 6028f5a
Remove unused local modules
CarsonJM 8d39df0
Merge branch 'nf-core:dev' into dev
CarsonJM 332b7c7
[automated] Fix linting with Prettier
nf-core-bot 7509201
Merge branch 'nf-core:dev' into dev
CarsonJM 93642d5
Merge branch 'nf-core:dev' into dev
CarsonJM 622938a
Fix linting
jfy133 7c0d30d
Update subworkflows/local/create_phageannotator_samplesheet.nf
CarsonJM 1bc6f31
Made recommended updates
CarsonJM dbb8dc3
Fixed profile name
CarsonJM 15c3f19
Part 2
CarsonJM be0fb02
Merge branch 'nf-core:dev' into dev
CarsonJM 52e7737
Merge branch 'dev' into dev
jfy133 6cda442
Apply suggestions from code review
CarsonJM 1e7abe5
Copy fastq and fasta files to outdir for samplesheet generation
CarsonJM 5b37df5
Merge branch 'nf-core:dev' into dev
CarsonJM 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 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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Asking for some advise about this, this is indeed very clean, but given it's outside a process/publishdir I'm a bit unsure. E.g. some people use symlinks from work to results dir rather than copy, so this would violate this.
Secondly this woudl potentially result in two copies of the same read files if one of the
--save_*
parameters are given.It maybe we have to come up with some complicated logic that instead picks the right 'final' directory for the proceessing reads, and it's that that you append to the beginning, and then add.
I think this would come with two steps:
Make sure one of
--save_clipped_reads
,--save_hostremoved_reads
,--save_phixremoved_reads
,--save_bbnorm_reads
are selected ifparams.generate_samplesheet
is trueSo some input validation code like:
Then have to have some complicated logic to select which directory gets appended to the beginning of the file name (probably best in a case when but w/e), e.g.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Totally see what you're saying and was curious what thoughts would be about doing this outside a process. I am more than happy change it to what you're suggesting!
The reason I was giving this approach a try was I was hoping to find a generalizable approach that would work across pipelines/updates even if the save input logic you're talking about gets modified (also, I selfishly wanted to find a quicker approach haha) Also, I was hoping to force a copy because in the past I've symlinked to publishDir thinking I copied and had my reads disappear because my workDir is in a scratch directory 😅.
Still, I definitely have though about what you're saying and will make that change if you think it's best!