File tree 2 files changed +17
-10
lines changed 2 files changed +17
-10
lines changed Original file line number Diff line number Diff line change @@ -156,14 +156,8 @@ checkpoint cluster_sequence_length:
156
156
"docker://kosinskilab/fold:latest" ,
157
157
conda :
158
158
"envs/alphapulldown.yaml" ,
159
- shell :"""
160
- python3 workflow/scripts/cluster_sequence_length.py \
161
- --folds {params.folds} \
162
- --output_file {output} \
163
- --protein_delimiter {params.protein_delimiter} \
164
- --bin_size {params.cluster_bin_size} \
165
- --features_directory {params.feature_directory}
166
- """
159
+ script :
160
+ "scripts/cluster_sequence_length.py"
167
161
168
162
def lookup_features (wildcards ):
169
163
if config .get ("cluster_jobs" , False ):
Original file line number Diff line number Diff line change @@ -35,14 +35,14 @@ def parse_args():
35
35
dest = "features_directory" ,
36
36
type = str ,
37
37
nargs = "+" ,
38
- required = True ,
38
+ required = False ,
39
39
help = "Path to computed monomer features." ,
40
40
)
41
41
parser .add_argument (
42
42
"--bin_size" ,
43
43
dest = "bin_size" ,
44
44
type = int ,
45
- required = True ,
45
+ required = False ,
46
46
default = 150 ,
47
47
help = "Bin size used for clustering sequences." ,
48
48
)
@@ -55,6 +55,19 @@ def parse_args():
55
55
help = "Path to comma separated output file." ,
56
56
)
57
57
args = parser .parse_args ()
58
+
59
+ try :
60
+ args .folds = snakemake .params .folds
61
+ args .output_file = snakemake .output [0 ]
62
+ args .protein_delimiter = snakemake .params .protein_delimiter
63
+ args .bin_size = snakemake .params .cluster_bin_size
64
+ args .features_directory = [snakemake .params .feature_directory , ]
65
+ except Exception :
66
+ pass
67
+
68
+ if args .folds is None :
69
+ raise ValueError ("--folds needs to be specified." )
70
+
58
71
return args
59
72
60
73
You can’t perform that action at this time.
0 commit comments