-
Notifications
You must be signed in to change notification settings - Fork 5
[Do not merge!] Pseudo PR for first release #8
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
Closed
Changes from all commits
Commits
Show all changes
81 commits
Select commit
Hold shift + click to select a range
4c9da5b
Added all workflow files and logic
Felix-Kummer bd1195c
Finalized output structure and documentation
Felix-Kummer eae59d4
Made local modules emit versions
Felix-Kummer e2756fe
Fixed mosaic output.
Felix-Kummer d0e747c
Fixed nf-core lint warnings
Felix-Kummer 30d36cb
Moved to a more stable version of FORCE
Felix-Kummer 9beb427
Fixed publishDir for visualization processes
Felix-Kummer 9dc069b
Added version number to nf-validation plugin
Felix-Kummer 841399d
Removed unnecessary resource requests in modules.conf in favor of nf-…
Felix-Kummer 8c1c9d9
fixed docker test failures in certain situations
Felix-Kummer 6fb5757
Ensured that remaining tests run after a single test failure
Felix-Kummer edf0b33
Merge branch 'dev' into nf-core-template-merge-2.14.1
Felix-Kummer 9b17ae7
Fixed indents in merge scripts
Felix-Kummer 4ff325a
Merge pull request #6 from nf-core/nf-core-template-merge-2.14.1
Felix-Kummer 665e862
Added appropriate raster comparisons for trend tif's to test.R
Felix-Kummer b4e8152
Increased robustness of test profile against FORCE-related flakiness
Felix-Kummer f292928
Removed only_tile parameter
Felix-Kummer 52c93c9
Added new options for higher level processing and visualization.
Felix-Kummer a4d297f
Added test_full profile
Felix-Kummer b896dda
bumped version to 1.0.0
Felix-Kummer 443ba0a
Implemented minor reviewer requests
Felix-Kummer 3dca391
Added parameters to control publishing behavior for intermediate proc…
Felix-Kummer a5df347
Added descriptions to custom scripts.
Felix-Kummer 2e208fc
Applied more minor changes requested by the reviewers
Felix-Kummer e5d4425
Reworked merge scripts
Felix-Kummer fd29a4b
Added authors and licenses to scripts
Felix-Kummer e042a1c
Removed unused sensors_level1 parameter
Felix-Kummer 69fd493
Applied one-sentence-per-line-scheme in .md files
Felix-Kummer 17db3ba
Removed unnecessarily ignored parameters in test profile
Felix-Kummer 4a7518b
Improved parameter references in docs
Felix-Kummer 4949334
Replaced retry strategies with error_retry label
Felix-Kummer d7ba83b
Adopted nf-core pseudo-standard directory structure for local modules
Felix-Kummer 64c909a
Updated nf-core untar module
Felix-Kummer 5e006c0
Enriched schema with patterns for parameters
Felix-Kummer 980347f
Improved output documentation for tss files
Felix-Kummer e036cb3
Added date format to date parameters
Felix-Kummer 7564dd6
Removed deprecated docker parameter
Felix-Kummer cd5fb92
Added tags to all modules
Felix-Kummer f12f0c9
Removed restrictions on FORCE thread numbers and corresponding parameter
Felix-Kummer 7f7805b
Replaced usage of params in modules and subworkflows with channels
Felix-Kummer fd09671
Added more output channels to the top level workflow
Felix-Kummer a4d2e7f
Added automatic tarball extraction for input parameters
Felix-Kummer 99ff909
Changed UNTAR container to its default container image
Felix-Kummer 605f154
Changed force-pyramid to process a single file instead of groups of f…
Felix-Kummer e8731e1
Added missing description in the manifest scope.
Felix-Kummer ac70e35
Merge branch 'nf-core:dev' into dev
Felix-Kummer 7d32cb3
Merge branch 'dev' into nf-core-template-merge-3.0.2
Felix-Kummer 7e34131
Merge branch 'dev' into nf-core-template-merge-3.0.2
Felix-Kummer 6fe422b
Merge pull request #10 from nf-core/nf-core-template-merge-3.0.2
Felix-Kummer b6c2e63
Merge remote-tracking branch 'origin/dev' into dev
Felix-Kummer 22166e9
Updated input mimetype in schema
Felix-Kummer c822ba7
Added missing fields to schema
Felix-Kummer 15e4c1e
Updated changelog
Felix-Kummer 415edb4
Fixed some linter warnings
Felix-Kummer 0585e5e
Replaced for-loops with GNU parallel
Felix-Kummer bd82d81
Migrated check result modules to nf-test
Felix-Kummer a8da0e3
Added parameter to disable all output publishing
Felix-Kummer e67107d
Fixed log output for preprocessing
Felix-Kummer 88ea70f
Added pipeline-level nf-test tests
Felix-Kummer 72996b1
Aligned run command in usage docs with other pipelines
Felix-Kummer ba1d17f
Updated nf-core workflows and modules
Felix-Kummer d8be4ef
Fix nf-test entry in .gitignore
Felix-Kummer 3d64227
Fixed wrong pipeline version in usage.md
Felix-Kummer a651b55
Added concrete boolean values for parameters in usage.md
Felix-Kummer caee766
Merge pull request #9 from CRC-FONDA/dev
Felix-Kummer b877f51
Aligned Nextflow files with new language-server formatter
Felix-Kummer 7b6d06b
Added diagram
Felix-Kummer 3a5211c
Fixed minor issues in README.md
Felix-Kummer 8f17143
Fixed minor issues in schema
Felix-Kummer 4875e12
Removed some empty lines
Felix-Kummer e0377eb
Merge branch 'dev' of https://github.com/CRC-FONDA/nf-core-rangeland …
Felix-Kummer e90a0d1
Merge pull request #12 from CRC-FONDA/dev
Felix-Kummer a7d7c4c
Improved infrastructure-independence
Felix-Kummer ee02655
Merge branch 'nf-core:dev' into dev
Felix-Kummer c534f93
Disabled publishing of version.yml in visualization processes
Felix-Kummer 7c9e49d
Merge pull request #13 from CRC-FONDA/dev
Felix-Kummer ba66df2
Merge branch 'TEMPLATE' of https://github.com/nf-core/rangeland into dev
Felix-Kummer 7fd48d3
Merge branch 'nf-core:dev' into dev
Felix-Kummer bfabfee
Merge pull request #15 from CRC-FONDA/dev
Felix-Kummer b8cb370
Addressed final reviewer suggestion for version 1.0.0
Felix-Kummer f802267
Merge pull request #16 from CRC-FONDA/dev
Felix-Kummer 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,3 +7,4 @@ testing/ | |
| testing* | ||
| *.pyc | ||
| null/ | ||
| .nf-test* | ||
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 |
|---|---|---|
|
|
@@ -15,4 +15,5 @@ template: | |
| outdir: . | ||
| skip_features: | ||
| - igenomes | ||
| - fastqc | ||
| version: 1.0.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
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,46 @@ | ||
| #!/usr/bin/env Rscript | ||
jfy133 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
jfy133 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ## Originally written by Felix Kummer and released under the MIT license. | ||
| ## See git repository (https://github.com/nf-core/rangeland) for full license text. | ||
|
|
||
| # Script for merging bottom of atmosphere (boa) .tif raster files. | ||
| # This can improve the performance of downstream tasks. | ||
|
|
||
| require(terra) | ||
|
|
||
| args <- commandArgs(trailingOnly = TRUE) | ||
|
|
||
|
|
||
| if (length(args) < 3) { | ||
| stop("\nError: this program needs at least 3 inputs\n1: output filename\n2-*: input files", call.=FALSE) | ||
| } | ||
|
|
||
| fout <- args[1] | ||
| finp <- args[2:length(args)] | ||
|
|
||
| # Load input rasters | ||
| rasters <- lapply(finp, rast) | ||
|
|
||
| # Calculate the sum of non-NA values across all rasters | ||
| sum_rasters <- Reduce("+", lapply(rasters, function(x) { | ||
| x[is.na(x)] <- 0 | ||
| return(x) | ||
| })) | ||
|
|
||
| # Calculate the number of values non-NA values for each cell | ||
| count_rasters <- Reduce("+", lapply(rasters, function(x) { | ||
| return(!is.na(x)) | ||
| })) | ||
|
|
||
| # Calculate the mean raster | ||
| mean_raster <- sum_rasters / count_rasters | ||
|
|
||
| # Write the mean raster | ||
| writeRaster(mean_raster, | ||
| filename = fout, | ||
| datatype = "INT2S", | ||
| filetype = "GTiff", | ||
| gdal = c("COMPRESS=LZW", "PREDICTOR=2", | ||
| "NUM_THREADS=ALL_CPUS", "BIGTIFF=YES", | ||
| sprintf("BLOCKXSIZE=%s", ncol(mean_raster)), | ||
| sprintf("BLOCKYSIZE=%s", nrow(mean_raster)))) | ||
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,41 @@ | ||
| #!/usr/bin/env Rscript | ||
|
|
||
| ## Originally written by Felix Kummer and released under the MIT license. | ||
| ## See git repository (https://github.com/nf-core/rangeland) for full license text. | ||
|
|
||
| # Script for merging quality information (qai) .tif raster files. | ||
| # This can improve the performance of downstream tasks. | ||
|
|
||
| require(terra) | ||
|
|
||
| args <- commandArgs(trailingOnly = TRUE) | ||
|
|
||
|
|
||
| if (length(args) < 3) { | ||
| stop("\nError: this program needs at least 3 inputs\n1: output filename\n2-*: input files", call.=FALSE) | ||
| } | ||
|
|
||
| fout <- args[1] | ||
| finp <- args[2:length(args)] | ||
|
|
||
| # load raster files into single SpatRaster | ||
| rasters <- rast(finp) | ||
|
|
||
| # Merge rasters by maintaining the last non-NA value | ||
| merged_raster <- app(rasters, function(x) { | ||
| non_na_values <- na.omit(x) | ||
| if (length(non_na_values) == 0) { | ||
| return(1) | ||
| } | ||
| return(tail(non_na_values, 1)[1]) | ||
| }) | ||
|
|
||
| # Write merged raster | ||
| writeRaster(merged_raster, | ||
| filename = fout, | ||
| filetype = "GTiff", | ||
| datatype = "INT2S", | ||
| gdal = c("INTERLEAVE=BAND", "COMPRESS=LZW", "PREDICTOR=2", | ||
| "NUM_THREADS=ALL_CPUS", "BIGTIFF=YES", | ||
| sprintf("BLOCKXSIZE=%s", ncol(merged_raster)), | ||
| sprintf("BLOCKYSIZE=%s", nrow(merged_raster)))) |
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.
something for the future, I guess you can also skip fastqc?