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
Pipeline #129399 failed
...@@ -304,7 +304,11 @@ def system_operon_structure( ...@@ -304,7 +304,11 @@ def system_operon_structure(
with open(def_path["path"]) as file: with open(def_path["path"]) as file:
for event, elem in ET.iterparse(file, events=("start", "end")): for event, elem in ET.iterparse(file, events=("start", "end")):
if event == "start": 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 = { current_gene = {
"system": system, "system": system,
"subsystem": subsystem, "subsystem": subsystem,
......
[tool.poetry] [tool.poetry]
name = "df-wiki-cli" name = "df-wiki-cli"
version = "0.2.0" version = "0.2.1"
description = "" description = ""
authors = ["Remi PLANEL <rplanel@pasteur.fr>"] authors = ["Remi PLANEL <rplanel@pasteur.fr>"]
readme = "README.md" 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