Skip to content

Commit

Permalink
Merge pull request #65 from friendsofstrandseq/weber8thomas/clean-con…
Browse files Browse the repository at this point in the history
…da-envs

fix: clean conda envs
  • Loading branch information
weber8thomas authored Jul 11, 2024
2 parents e528bbf + d156be2 commit 9ff2502
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions workflow/rules/common.smk
Original file line number Diff line number Diff line change
Expand Up @@ -1004,3 +1004,23 @@ def get_all_plots(wildcards):

# pprint(l_outputs)
return l_outputs


def publishdir_fct_mc(wildcards):
"""
Function to generate a list of files and directories for backup.
"""

list_files_to_copy = [
e for e in get_all_plots(wildcards) if "publishdir_outputs_mc.ok" not in e
]

# Expand the paths for files
expanded_files = [
expand(file_path, folder=config["data_location"], sample=wildcards.sample)
for file_path in list_files_to_copy
]
final_list = [sub_e for e in expanded_files for sub_e in e]
# print(final_list)

return final_list

0 comments on commit 9ff2502

Please sign in to comment.