forked from adamjtaylor/htan-artist
-
Notifications
You must be signed in to change notification settings - Fork 1
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 #9 from Sage-Bionetworks-Workflows/cleanup
Cleanup codebase
- Loading branch information
Showing
27 changed files
with
177 additions
and
675 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
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 |
---|---|---|
|
@@ -3,4 +3,5 @@ work/ | |
.nextflow.log* | ||
test-outputs/ | ||
flowchart* | ||
outputs/* | ||
outputs/* | ||
.DS_Store |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# nf-artist | ||
nf-artist is a Nextflow pipeline to generate interactive multiplexed image explorations and thumbnails. | ||
|
||
- Add CI testing in Github action using included test data in `data/` and samplesheet `data/test_samplesheet.csv` | ||
- Move logic on if minerva story or miniature thumbnail are run out of samplesheet and into `params` | ||
|
||
## Minerva | ||
- ✅ ~~Ensure H&E images are rendered with a fixed legend~~ | ||
- Allow for custom descriptions to be provided in the samplesheet and added into the Minerva story | ||
- Update to new version of Minerva with channel selection | ||
|
||
## Miniature | ||
|
||
- Split `make_miniature` into two processes, one to run the miniature script for multiplexed images and one (that can have lower resource requirements) that makes the brightfield thumbnail for H&E images with TiffSlide |
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,21 @@ | ||
{ | ||
"sample_info": { | ||
"name": "", | ||
"rotation": 0, | ||
"text": "", | ||
"pixels_per_micron": null | ||
}, | ||
"defaults": [], | ||
"groups": [ | ||
{ | ||
"label": "H&E", | ||
"channels": [ | ||
{ "color": "ffffff", "id": 0, "label": "H&E", "min": 0, "max": 1 } | ||
], | ||
"render": [ | ||
{ "color": "ffffff", "id": 0, "label": "H&E", "min": 0, "max": 1 } | ||
] | ||
} | ||
], | ||
"waypoints": [] | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,3 @@ | ||
image,convert,he,minerva,miniature,id | ||
datas/exemplar-001_small.tif,true,false,true,true,cycif | ||
data/CMU-1-Small-Region.svs,true,true,true,true,h_and_e |
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 |
---|---|---|
|
@@ -31,4 +31,4 @@ dependencies: | |
- imagemagick | ||
- tiffslide=2.1.2 | ||
- libvips | ||
- estimagic | ||
- estimagic |
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,23 +1,19 @@ | ||
process autominerva_story { | ||
tag {"$meta.id"} | ||
label "process_low" | ||
input: | ||
tuple val(meta), file(image) | ||
output: | ||
tuple val(meta), file(image), file('story.json') | ||
publishDir "$params.outdir/$workflow.runName", | ||
pattern: 'story.json', | ||
saveAs: {filename -> "${meta.id}/$workflow.runName/story.json"} | ||
pattern: 'story.json', | ||
saveAs: {filename -> "${meta.id}/$workflow.runName/story.json"} | ||
stub: | ||
""" | ||
touch story.json | ||
""" | ||
script: | ||
if (meta.he) { | ||
""" | ||
wget -O story.json $params.heStory | ||
""" | ||
} else { | ||
""" | ||
python3 /auto-minerva/story.py $image > 'story.json' | ||
""" | ||
} | ||
""" | ||
python3 /auto-minerva/story.py $image > 'story.json' | ||
""" | ||
} |
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,4 +1,5 @@ | ||
process bioformats2ometiff { | ||
tag {"$meta.id"} | ||
label "process_medium" | ||
input: | ||
tuple val(meta), file(image) | ||
|
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.