Skip to content
Snippets Groups Projects
Unverified Commit adf57699 authored by St. Elmo's avatar St. Elmo Committed by Miroslav Kratochvil
Browse files

updated funcs

parent 0ba2caf6
No related branches found
No related tags found
No related merge requests found
......@@ -13,12 +13,7 @@ function check_duplicate_annotations(
for (k, gene) in gs
if k != check_gene.id
for anno in inspect_annotations
if !isempty(
intersect(
get(gene.annotations, anno, ["c1"]),
get(check_gene.annotations, anno, "c2"),
),
)
if any(in.(get(gene.annotations, anno, ["c1"]), Ref(get(check_gene.annotations, anno, ["c2"]))))
return k
end
end
......
......@@ -13,12 +13,7 @@ function check_duplicate_annotations(
for (k, met) in mets
if met.compartment == cmet.compartment && k != cmet.id
for anno in inspect_annotations
if !isempty(
intersect(
get(met.annotations, anno, ["c1"]),
get(cmet.annotations, anno, ["c2"]),
),
)
if any(in.(get(met.annotations, anno, ["c1"]), Ref(get(cmet.annotations, anno, ["c2"]))))
return k
end
end
......
......@@ -54,10 +54,10 @@ function check_duplicate_annotations(
for (k, rxn) in rxns
if k != crxn.id
for anno in inspect_annotations
if !isempty(
intersect(
if any(
in.(
get(crxn.annotations, anno, ["c1"]),
get(rxn.annotations, anno, ["c2"]),
Ref(get(rxn.annotations, anno, ["c2"])),
),
)
return k
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment