Skip to content
Snippets Groups Projects
Commit 031015b9 authored by Remi  PLANEL's avatar Remi PLANEL
Browse files

remove forbidden df model genes

parent 11ef04ab
No related branches found
No related tags found
No related merge requests found
......@@ -304,7 +304,11 @@ def system_operon_structure(
with open(def_path["path"]) as file:
for event, elem in ET.iterparse(file, events=("start", "end")):
if event == "start":
if elem.tag == "gene" and not in_exchangeables:
if (
elem.tag == "gene"
and not in_exchangeables
and elem.attrib["presence"] != "forbidden"
):
current_gene = {
"system": system,
"subsystem": subsystem,
......
[tool.poetry]
name = "df-wiki-cli"
version = "0.2.0"
version = "0.2.1"
description = ""
authors = ["Remi PLANEL <rplanel@pasteur.fr>"]
readme = "README.md"
......
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