-
Notifications
You must be signed in to change notification settings - Fork 1
Refactor script rules to shell invocations #10
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
base: codex/add-fastqc-to-pipeline-for-read-pairs
Are you sure you want to change the base?
Refactor script rules to shell invocations #10
Conversation
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.
Codex Review: Here are some suggestions.
Reply with @codex fix comments to fix any unresolved comments.
About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you open a pull request for review, mark a draft as ready, or comment "@codex review". If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex fix this CI failure" or "@codex address that feedback".
workflow/rules/diffexp.smk
Outdated
| params: | ||
| samples=units["sample_name"].tolist(), | ||
| strand=get_strandedness(units), | ||
| samples=lambda wildcards: ",".join(units["sample_name"].tolist()), | ||
| strands=lambda wildcards: ",".join(get_strandedness(units)), |
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.
[P1] Handle NaN strandedness when building CLI argument string
The new shell invocation builds the --strands argument by joining get_strandedness(units) with commas. get_strandedness returns values straight from the units table, and when the strandedness column exists but contains blanks they come through as NaN floats. Joining a list that contains non‑strings raises TypeError: sequence item 0: expected str instance, float found before the rule even starts, whereas the previous script handled missing values via pd.isnull. This breaks the pipeline for the common case where the column is present but empty in config/units.tsv. Consider normalising to strings (e.g. defaulting NaNs to "none") before joining.
Useful? React with 👍 / 👎.
Summary
script:directives for the count matrix and gtf2bed rules with shell commands that invoke the standalone scripts.NODATAmarkerTesting
https://chatgpt.com/codex/tasks/task_e_68cc87ae7af08331aac7d2ade0a75275