-
Notifications
You must be signed in to change notification settings - Fork 6
Add validation for fasta input and tests #20
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 26 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
4aca65a
Add validation for fasta files
JoseEspinosa be8b290
Fix format
JoseEspinosa 0536976
Add test_fasta profile
JoseEspinosa fe1ca80
Avoid error if dict key not set
JoseEspinosa 38bd3ee
Get rid of parameter from module
JoseEspinosa a47e239
Merge remote-tracking branch 'upstream/dev' into updates
JoseEspinosa 7c48293
Make lint happy
JoseEspinosa cf6688b
Merge branch 'dev' into updates
JoseEspinosa ca19068
Update bin/fetch_oma_by_sequence.py
JoseEspinosa 2f2eaf0
Update bin/fetch_oma_by_sequence.py
JoseEspinosa 0f1ef99
Merge remote-tracking branch 'upstream/dev' into updates
JoseEspinosa 36d3769
Merge branch 'updates' of https://github.com/JoseEspinosa/reportho in…
JoseEspinosa 15aa8f6
Branch depending on whether uniprot_id or fasta provided
JoseEspinosa bb04c56
Update tests
JoseEspinosa a376ae3
Get rid of leftovers of the uniprot_query parameter
JoseEspinosa f1f25bd
Update docs
JoseEspinosa b899246
Do not use set for ch_versions
JoseEspinosa 3f472ad
Add test_fasta to CI
JoseEspinosa 72f80aa
Make nf-core lint happy
JoseEspinosa 3490c4c
Make prettier happy
JoseEspinosa 8fe4f82
Make nf-core lint happy (bug in tools until fixed)
JoseEspinosa b13725c
Revert changes in .nf-core.yml
JoseEspinosa 320ec61
Merge remote-tracking branch 'upstream/dev' into updates
JoseEspinosa 6d270ea
Assign ch_versions
JoseEspinosa b849f92
Fix tyop
JoseEspinosa 195ab8d
Add samplesheet_fasta in assets
JoseEspinosa f276a8e
Rename samplesheet_fasta example
JoseEspinosa cc50269
Update docs/usage.md
itrujnara 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
id,fasta | ||
ste2,https://raw.githubusercontent.com/nf-core/test-datasets/reportho/testdata/sequences/ste2.fa | ||
ste3,https://raw.githubusercontent.com/nf-core/test-datasets/reportho/testdata/sequences/ste3.fa |
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
Nextflow config file for running minimal tests | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
Defines input files and everything required to run a fast and simple pipeline test. | ||
|
||
Use as follows: | ||
nextflow run nf-core/reportho -profile test,<docker/singularity> --outdir <OUTDIR> | ||
|
||
---------------------------------------------------------------------------------------- | ||
*/ | ||
|
||
params { | ||
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/reportho/testdata/samplesheet/samplesheet_fasta.csv' | ||
|
||
// Other parameters | ||
skip_eggnog = true | ||
min_score = 3 | ||
skip_iqtree = true | ||
fastme_bootstrap = 0 | ||
} | ||
|
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
Empty file.
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 |
---|---|---|
|
@@ -10,7 +10,6 @@ | |
params { | ||
// Input options | ||
input = null | ||
uniprot_query = false | ||
|
||
// MultiQC options | ||
multiqc_config = null | ||
|
@@ -200,8 +199,9 @@ profiles { | |
executor.cpus = 4 | ||
executor.memory = 8.GB | ||
} | ||
test { includeConfig 'conf/test.config' } | ||
test_full { includeConfig 'conf/test_full.config' } | ||
test { includeConfig 'conf/test.config' } | ||
test_fasta { includeConfig 'conf/test_fasta.config' } | ||
test_full { includeConfig 'conf/test_full.config' } | ||
} | ||
|
||
// Set default registry for Apptainer, Docker, Podman and Singularity independent of -profile | ||
|
@@ -214,7 +214,7 @@ singularity.registry = 'quay.io' | |
|
||
// Nextflow plugins | ||
plugins { | ||
id 'nf-[email protected]' // Validation of pipeline parameters and creation of an input channel from a sample sheet | ||
id 'nf-[email protected]' // Validation of pipeline parameters and creation of an input channel from a sample sheet | ||
} | ||
|
||
// Export these variables to prevent local Python/R libraries from conflicting with those in the container | ||
|
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
Oops, something went wrong.
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.
Do we want an example for FASTA samplesheet as well?
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.
It is changed in line 33, or are you referring to something else?
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.
Line 43 mentions a separate samplesheet file, I wonder if we need a similar one for FASTA. Just a question to consider, not necessarily demanding it.
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.
Done in 195ab8d