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

Diff bind reorg #49

Merged
merged 53 commits into from
Oct 28, 2024
Merged

Diff bind reorg #49

merged 53 commits into from
Oct 28, 2024

Conversation

rroutsong
Copy link
Collaborator

@rroutsong rroutsong commented Oct 24, 2024

Reorganization of diffbind + uropa rule sets

Minor bugs and issues addressed along the way

rroutsong and others added 30 commits August 15, 2024 18:14
Removing up.bed and down.bed
@rroutsong rroutsong self-assigned this Oct 24, 2024
Copy link
Collaborator

@tovahmarkowitz tovahmarkowitz left a comment

Choose a reason for hiding this comment

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

Hi Ryan,

This looks great! Just two things I really want fixed for this pull request, which are associated with prep_diffbind.py and the cluster.json.

Tovah

bin/prep_diffbind.py Show resolved Hide resolved
config/cluster.json Show resolved Hide resolved
workflow/rules/qc.smk Show resolved Hide resolved
workflow/rules/dba.smk Show resolved Hide resolved
config/cluster.json Show resolved Hide resolved
Copy link
Collaborator

@tovahmarkowitz tovahmarkowitz left a comment

Choose a reason for hiding this comment

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

Thank you!

Copy link
Contributor

@skchronicles skchronicles left a comment

Choose a reason for hiding this comment

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

Everything looks good! The only suggestion I have which can be added later is to unset the R_LIBS_USER variable in the shell command of any rules relying on module load versions of R. If it's needed, we can add this with the next PR though.

# Using SINGULARITY_CONTAINALL or APPTAINER_CONTAINALL
# causes downstream using where $SLURM_JOBID is
# NOT exported within a container.
if 'R_LIBS_SITE' in my_env:
Copy link
Contributor

Choose a reason for hiding this comment

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

Are we still relying on any module load R for any rules? If so, one thing that we should also do is unset R_LIBS_USER in any rule's shell commands that are using a module load verison of R.

Copy link
Contributor

Choose a reason for hiding this comment

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

image

Copy link
Contributor

Choose a reason for hiding this comment

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

When R is module loaded, this environment variable is set, so even if you are unsetting this variable right before submission of the master job, if the rule module loads R, it will be reset. To handle this, we will need to unset that variable at the rule-level in the shell command right before we run anything R related.

workflow/rules/dba.smk Show resolved Hide resolved
@skchronicles skchronicles merged commit 8d9ffbb into main Oct 28, 2024
1 check passed
tovahmarkowitz added a commit to tovahmarkowitz/chrom-seek that referenced this pull request Oct 28, 2024
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