Commit 9d6b5728 authored by fabrice's avatar fabrice

Bug Fixe: error when writing boolean values aria project file (yes/no only accepted)

parent 8dc289ac
......@@ -102,9 +102,9 @@ def format_str(string):
:param string:
:return:
"""
if re.search(r"^\s*(true|yes)\s*$", string, re.I):
if re.search(r"^\s*(true)\s*$", string, re.I):
return True
elif re.search(r"^\s*(false|no)\s*$", string, re.I):
elif re.search(r"^\s*(false)\s*$", string, re.I):
return False
elif re.search(r"^\s*\d+\s*$", string):
return int(string)
......
No preview for this file type
......@@ -8,7 +8,7 @@ ariaproject_template:
[contactdef]
; Contact definition section used to define contactmap from pdb file
default_cutoff: 7.0
; Add contact cutoff below folowwing the syntax atm1_atm2
; Add contact cutoff folowwing the syntax atm1_atm2
;ca_ca: 7.0
;cb_cb: 7.0
;sc_sc: 5.0
......
No preview for this file type
......@@ -18,6 +18,7 @@ import pandas as pd
import seaborn as sns
import numpy as np
import datetime
from .ndconv import net_deconv
from matplotlib import pyplot as plt
import aria.ConversionTable as ConversionTable
import aria.legacy.AminoAcid as AminoAcid
......@@ -803,6 +804,7 @@ class MapFilter:
self.settings["nd_alpha"],
self.settings["nd_control"]))
logger.warning("Not fully implemented !!")
logger.info(net_deconv(mapdict["contactmap"].as_matrix()))
# (if refmap given !!!!)
# To apply ND on regulatory networks, follow steps explained in
# Supplementary notes 1.4.1 and 2.1 and 2.3 of the paper.
......
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