-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 🎨 Use script Signed-off-by: zethson <[email protected]> * ✨ Simplify language Signed-off-by: zethson <[email protected]> * 🎨 Refactor Signed-off-by: zethson <[email protected]> * 🎨 Wording Signed-off-by: zethson <[email protected]> * 🎨 Simplify Signed-off-by: zethson <[email protected]> --------- Signed-off-by: zethson <[email protected]>
- Loading branch information
Showing
2 changed files
with
27 additions
and
52 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
from subprocess import getoutput | ||
|
||
import lamindb as ln | ||
|
||
transform = ln.Transform( | ||
name="mcmicro", | ||
version="1.0.0", | ||
type="pipeline", | ||
reference="https://github.com/labsyspharm/mcmicro", | ||
) | ||
ln.track(transform=transform) | ||
run = ln.dev.run_context.run | ||
|
||
mcmicro_input = ln.Artifact.filter(key__startswith="exemplar-001") | ||
input_paths = [input_fastq.stage() for input_fastq in mcmicro_input] | ||
|
||
output = ln.Artifact( | ||
"exemplar-001/registration/exemplar-001.ome.tif", description="mcmicro" | ||
) | ||
output.save() | ||
|
||
nextflow_id = getoutput(f"nextflow log | awk '/{run.id}/{{print $8}}'") | ||
run.reference = nextflow_id | ||
run.reference_type = "nextflow_id" | ||
run.save() |