Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

createGeneProteinAssociation can lead to duplicate gene labels #23

Open
willigott opened this issue Oct 31, 2019 · 1 comment
Open

createGeneProteinAssociation can lead to duplicate gene labels #23

willigott opened this issue Oct 31, 2019 · 1 comment
Assignees
Labels
Milestone

Comments

@willigott
Copy link
Contributor

When I do

import cbmpy as cbm

mod = cbm.CBRead.readSBML3FBC('e_coli_core.xml.gz')

mod.getGene('G_b4395').setLabel('b4301')

I receive - as expected - a warning that the gene label already exists and it is therefore not set.

However, when I then do:

mod.createReaction('dummy')
mod.createGeneProteinAssociation('dummy', 'b4395')

two genes will exist with identical label:

[g for g in mod.getGeneIds() if 'b4395' in g]   # ['G_b4395', 'b4395']
[g for g in mod.getGeneLabels() if 'b4395' in g]  # ['b4395', 'b4395']

Export and import of the model works fine, however, if one uses the online validator it will return the error:

Error Line 10826 Column 47: (SBML Validation Rule #fbc-21205) The attribute 'fbc:label' on a must be unique among the set of all elements defined in the . Reference: L3V1 Fbc V2 Section 3.5 A GeneProduct with the label 'b4395' has already been declared.

Could this be fixed?!

@bgoli bgoli self-assigned this Nov 20, 2019
@bgoli bgoli added the bug label Nov 20, 2019
@bgoli bgoli added this to the Release 0.8.0 milestone Nov 20, 2019
@bgoli
Copy link
Member

bgoli commented Nov 20, 2019

Good catch, I will look into this

@bgoli bgoli modified the milestones: Release 0.8.0, Release 0.8.1 Feb 2, 2021
@bgoli bgoli modified the milestones: Release 0.8.1, Release 0.8.2 Jul 21, 2021
@bgoli bgoli modified the milestones: Release 0.8.3, Release 0.8.5 Oct 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants