File tree Expand file tree Collapse file tree 2 files changed +17
-10
lines changed Expand file tree Collapse file tree 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:
156156 "docker://kosinskilab/fold:latest" ,
157157 conda :
158158 "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"
167161
168162def lookup_features (wildcards ):
169163 if config .get ("cluster_jobs" , False ):
Original file line number Diff line number Diff line change @@ -35,14 +35,14 @@ def parse_args():
3535 dest = "features_directory" ,
3636 type = str ,
3737 nargs = "+" ,
38- required = True ,
38+ required = False ,
3939 help = "Path to computed monomer features." ,
4040 )
4141 parser .add_argument (
4242 "--bin_size" ,
4343 dest = "bin_size" ,
4444 type = int ,
45- required = True ,
45+ required = False ,
4646 default = 150 ,
4747 help = "Bin size used for clustering sequences." ,
4848 )
@@ -55,6 +55,19 @@ def parse_args():
5555 help = "Path to comma separated output file." ,
5656 )
5757 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+
5871 return args
5972
6073
You can’t perform that action at this time.
0 commit comments