rna_tools/tools/triplexibility/triplexibility.py 1 location
|
@@ 312-321 (lines=10) @@
|
309 |
|
return rms |
310 |
|
|
311 |
|
|
312 |
|
def get_rna_models_from_dir(directory): |
313 |
|
models = [] |
314 |
|
if not os.path.exists(directory): |
315 |
|
raise Exception('Dir does not exist! ', directory) |
316 |
|
files = glob.glob(directory + "/*.pdb") |
317 |
|
files_sorted = sort_nicely(files) |
318 |
|
for f in files_sorted: |
319 |
|
#print f |
320 |
|
models.append(RNAmodel(f)) |
321 |
|
return models |
322 |
|
|
323 |
|
def sort_nicely( l ): |
324 |
|
""" Sort the given list in the way that humans expect. |
rna_tools/tools/triplexibility/triplexibility2.py 1 location
|
@@ 253-262 (lines=10) @@
|
250 |
|
return rms |
251 |
|
|
252 |
|
|
253 |
|
def get_rna_models_from_dir(directory): |
254 |
|
models = [] |
255 |
|
if not os.path.exists(directory): |
256 |
|
raise Exception('Dir does not exist! ', directory) |
257 |
|
files = glob.glob(directory + "/*.pdb") |
258 |
|
files_sorted = sort_nicely(files) |
259 |
|
for f in files_sorted: |
260 |
|
#print f |
261 |
|
models.append(RNAmodel(f)) |
262 |
|
return models |
263 |
|
|
264 |
|
def sort_nicely( l ): |
265 |
|
""" Sort the given list in the way that humans expect. |
rna_tools/tools/rna_calc_rmsd/rna_calc_rmsd_biopython.py 1 location
|
@@ 218-227 (lines=10) @@
|
215 |
|
return rms |
216 |
|
|
217 |
|
|
218 |
|
def get_rna_models_from_dir(directory): |
219 |
|
models = [] |
220 |
|
if not os.path.exists(directory): |
221 |
|
raise Exception('Dir does not exist! ', directory) |
222 |
|
files = glob.glob(directory + "/*.pdb") |
223 |
|
files_sorted = sort_nicely(files) |
224 |
|
for f in files_sorted: |
225 |
|
#print f |
226 |
|
models.append(RNAmodel(f)) |
227 |
|
return models |
228 |
|
|
229 |
|
def sort_nicely( l ): |
230 |
|
""" Sort the given list in the way that humans expect. |