rotary-genomics / spokewrench

Toolkit for manipulating circular DNA sequence elements
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Update code of StitchDirectories to use Python properties. #13

Closed LeeBergstrand closed 7 months ago

LeeBergstrand commented 7 months ago

Properties are functions that can be called as attributes.

Change StitchDirectories to use properties to dynamically generate linking_outdir and log_dir based on the status of length_threshold

For example, When length_outdir is called, its underlying function is called, which performs a check to see if the length_threshold has been set and returns the appropriate result (None if there is no length threshold).

LeeBergstrand commented 7 months ago

@jmtsuji These updates should work. It might require some minor tweaks.