You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The script design is unnecessarily complex, since we are only using a single function call; therefore it should be encapsulated into a single main() function to reduce complexity instead of two.
Example:
importcytotabledeffunction1(param1, param2, param3):
# enter code here cytotable.convert(param1, param2, param3)
return0defmain ():
p1=snakemake.param[0]
p2=snakemake.param[1]
p3=snakemake.param[2]
function1(p1, p2, p3)
if__main__=="__name__"main()
turns out that sectioning parameters is not ideal for instances where there are two functions used from the same parameter. Therefore the best approach is the load in the whole configuration instead of sectioning it.
First we the scripts have to be designed in order for it to be simple enough to allow whole config integration.
Mentioned in #37 in this comment
The script design is unnecessarily complex, since we are only using a single function call; therefore it should be encapsulated into a single
main()
function to reduce complexity instead of two.Example:
can be reduced to:
Todo list
cytosnake
helper functions causes repetitive code within workflow scripts #18The text was updated successfully, but these errors were encountered: