25
25
26
26
## Variables for elm module
27
27
ELM_FILES = os .path .join (PACKAGE_PATH , "elm_files" )
28
- ELM_INSTANCES_FASTA = f" { ELM_FILES } / elm_instances.fasta"
29
- ELM_CLASSES_TSV = f" { ELM_FILES } / elms_classes.tsv"
30
- ELM_INSTANCES_TSV = f" { ELM_FILES } / elm_instances.tsv"
31
- ELM_INTDOMAINS_TSV = f" { ELM_FILES } / elm_interaction_domains.tsv"
28
+ ELM_INSTANCES_FASTA = os . path . join ( ELM_FILES , " elm_instances.fasta")
29
+ ELM_CLASSES_TSV = os . path . join ( ELM_FILES , " elms_classes.tsv")
30
+ ELM_INSTANCES_TSV = os . path . join ( ELM_FILES , " elm_instances.tsv")
31
+ ELM_INTDOMAINS_TSV = os . path . join ( ELM_FILES , " elm_interaction_domains.tsv")
32
32
33
33
## Variables for alphafold module
34
34
ALPHAFOLD_GIT_REPO = "https://github.com/deepmind/alphafold"
@@ -132,10 +132,10 @@ def setup(module, verbose=True, out=None):
132
132
133
133
if out is not None :
134
134
elm_files_out = os .path .abspath (out )
135
- elm_instances_fasta = f" { elm_files_out } / elm_instances.fasta"
136
- elm_classes_tsv = f" { elm_files_out } / elms_classes.tsv"
137
- elm_instances_tsv = f" { elm_files_out } / elm_instances.tsv"
138
- elm_intdomains_tsv = f" { elm_files_out } / elm_interaction_domains.tsv"
135
+ elm_instances_fasta = os . path . join ( elm_files_out , " elm_instances.fasta")
136
+ elm_classes_tsv = os . path . join ( elm_files_out , " elms_classes.tsv")
137
+ elm_instances_tsv = os . path . join ( elm_files_out , " elm_instances.tsv")
138
+ elm_intdomains_tsv = os . path . join ( elm_files_out , " elm_interaction_domains.tsv")
139
139
140
140
# Create folder for ELM files (if it does not exist)
141
141
if not os .path .exists (elm_files_out ):
@@ -151,14 +151,17 @@ def setup(module, verbose=True, out=None):
151
151
if not os .path .exists (ELM_FILES ):
152
152
os .makedirs (ELM_FILES )
153
153
154
+ print (platform .system ())
154
155
if platform .system () == "Windows" :
155
156
# The double-quotation marks allow white spaces in the path, but this does not work for Windows
156
157
command = f"""
157
- curl -o { elm_instances_fasta } { ELM_INSTANCES_FASTA_DOWNLOAD } \
158
- && curl -o { elm_classes_tsv } { ELM_CLASSES_TSV_DOWNLOAD } \
159
- && curl -o { elm_instances_tsv } { ELM_INSTANCES_TSV_DOWNLOAD } \
160
- && curl -o { elm_intdomains_tsv } { ELM_INTDOMAINS_TSV_DOWNLOAD }
158
+ curl -o { elm_instances_fasta } \" { ELM_INSTANCES_FASTA_DOWNLOAD } \" \
159
+ && curl -o { elm_classes_tsv } \" { ELM_CLASSES_TSV_DOWNLOAD } \" \
160
+ && curl -o { elm_instances_tsv } \" { ELM_INSTANCES_TSV_DOWNLOAD } \" \
161
+ && curl -o { elm_intdomains_tsv } \" { ELM_INTDOMAINS_TSV_DOWNLOAD } \"
161
162
"""
163
+ print (command )
164
+
162
165
else :
163
166
command = f"""
164
167
curl -o '{ elm_instances_fasta } ' { ELM_INSTANCES_FASTA_DOWNLOAD } \
0 commit comments