Commit ac092778 authored by fabrice's avatar fabrice

Bug fixe: error when using only one contactfilter

parent 34b074a5
......@@ -60,10 +60,10 @@ cb_upper_bound: 7.0
; ---------------------------- Filter parameters ----------------------------- #
; n_factor : Number of EC selected: n * n_factor (n: sequence length)
; contactfilter : all or combinaison of pos, cons, cys, ssclash, nd
; separated by "+" character [all]. If empty, use only position
; separated by "+" character [pos]. If empty, use only position
; filter (avoid short range restraints)
n_factor: 1.0
contactfilter: all
contactfilter: pos
conservation_treshold: 95
position_treshold: 5
nd_beta: 0.99
......
......@@ -611,7 +611,6 @@ class AriaEcXMLConverter(AriaXMLConverter):
}
xml_file = self.settings.infra["xml"] + "/" + "_".join((
self.outprefix, listname)) + ".xml"
print(restraint_dict)
self.write_dist_xml(restraint_dict, xml_file)
return xml_file, pair_list
......
No preview for this file type
......@@ -946,9 +946,12 @@ class MapFilter:
if mapfilters == "all":
mapfilters = self.filter_types
elif not mapfilters:
mapfilters = ("pos",)
mapfilters = ["pos", ]
else:
mapfilters = [elm for elm in mapfilters if elm in self.filter_types]
if type(mapfilters) == list:
mapfilters = [elm for elm in mapfilters if elm in self.filter_types]
else:
mapfilters = [mapfilters]
logger.info("Filtering %s contact map" % mtype)
for flt in mapfilters:
# /!\ cys unicity filter must be the last filter !
......
No preview for this file type
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment