Skip to content
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

GH-986: Remove dsde-pipelines as WFL's dependency and fix what breaks. #195

Merged
merged 8 commits into from
Oct 28, 2020

Conversation

tbl3rd
Copy link
Contributor

@tbl3rd tbl3rd commented Oct 21, 2020

Purpose

Changes

  • No changes.

Review Instructions

  • No instructions.

@ehigham
Copy link
Member

ehigham commented Oct 22, 2020

Looking good so far! In case you weren't aware, be sure to remove the dependence on dsde-pipelines in api/module.mk!

@tbl3rd tbl3rd force-pushed the tbl/GH-986-goodbye-dsde-pipelines branch from e7b76b9 to 77440f0 Compare October 22, 2020 19:20
@tbl3rd
Copy link
Contributor Author

tbl3rd commented Oct 22, 2020

Thanks. Might have missed that.

@tbl3rd tbl3rd marked this pull request as ready for review October 27, 2020 01:25
Copy link
Contributor

@rexwangcc rexwangcc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I left some comments. There are a few lines in the Github Actions that are also referencing dsde-pipelines, this file (and some lines below) and this file(and some lines below) just fyi :octocat:

@@ -111,7 +95,7 @@
(io/make-parents out)
(io/copy file out)))]
(let [environments (clone "pipeline-config" "wfl/environments.clj")]
(stage resources (clone "dsde-pipelines" "tasks/CopyFilesFromCloudToCloud.wdl"))
(stage resources (clone "warp" "tasks/broad/CopyFilesFromCloudToCloud.wdl"))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, good catch! Mb

(let [hg38 "gs://gcp-public-data--broad-references/hg38/v0/"
cram_ref_fasta (str hg38 "Homo_sapiens_assembly38.fasta")]
{:cram_ref_fasta cram_ref_fasta
:cram_ref_fasta_index (str cram_ref_fasta ".fai")}))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 parts of me have been struggling on "explicit hard-coded consts" v.s. "dynamically generate data" in Clojure for a year, I preferred the former simply because it's more friendly for full text search, but I guess this (latter) is a de facto in clj?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer these were just literals too now, but the code isn't consistent.

Wanted to just factor the data, but discovered wgs.clj now has a synthetic
reference_fasta_prefix parameter that necessitates something like a
(defn reference_fasta [prefix] …) to support it. Tackling that in this PR
is a design change (and definitely a bridge too far).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That said, for things like foo and foo.index, I think we should do something to emphasize that the index is just the root with a suffix added.

Comment on lines 57 to 46
(let [hg38 (partial str "gs://gcp-public-data--broad-references/hg38/v0/")]
(let [hg38 "gs://gcp-public-data--broad-references/hg38/v0/"
hsa "Homo_sapiens_assembly38"
bait_set_name "whole_exome_illumina_coding_v1"
iv1 (str "HybSelOligos/" bait_set_name "/" "." hsa)]
Copy link
Member

@ehigham ehigham Oct 27, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really don't like this - I wrote it this way to be explicit. I can look at the design doc and automatically recognise the defaults without juggling temporaries.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know what you mean about juggling temporaries.
I agree with you about the scatter-settings.
They are back where they belong.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FWIW: Wanted to emphasize that inputs depend on the chosen bait set.

api/src/wfl/module/xx.clj Show resolved Hide resolved
@tbl3rd tbl3rd requested a review from rexwangcc October 27, 2020 13:04
@tbl3rd tbl3rd force-pushed the tbl/GH-986-goodbye-dsde-pipelines branch from 8158502 to e025041 Compare October 27, 2020 18:12
@@ -401,8 +388,7 @@ vault.client.http/http-client ; Keep :clint eastwo
(defn to-quoted-comma-separated-list
"Return the sequence `xs` composed into a comma-separated list string.
Example:
(to-quoted-comma-separated-list ['x 'y 'z])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI the extra line is what you get when evaluating in a repl

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't even realize I'd closed that. More interested in the simpler quoting.

@tbl3rd tbl3rd merged commit 9dcc0f6 into master Oct 28, 2020
@rexwangcc rexwangcc deleted the tbl/GH-986-goodbye-dsde-pipelines branch October 28, 2020 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants