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

Accessing track-dependent attributes of archives without any tracks results in a fatal error #26

Open
EricR86 opened this issue Sep 22, 2016 · 1 comment
Labels
bug Something isn't working minor

Comments

@EricR86
Copy link
Member

EricR86 commented Sep 22, 2016

Original report (archived issue) by Coby Viner (Bitbucket: cviner2, GitHub: cviner).

The original report had attachments: genome_attrs.log


While Genomedata archives can be created without any tracks (1e0bf78), attempting to access any track-related attributes for such archives fails with a somewhat cryptic error, instead of (ideally) returning empty attributes or a clear error message.

Attempting to access track attributes, via either the command-line interface or Python API, fails, eventually resulting in an error in the __getattr__ method of tables/attributeset.py:

    "'%s'" % (name, self._v__nodepath))
AttributeError: Attribute 'tracknames' does not exist in node: '/'

This error can be easily reproduced by invoking genomedata-info tracknames <archive>, while genomedata-info sizes <archive> results in the expected output. This also occurs with other track-dependent attributes, such as num_tracks_continuous or vars, accessible from the Python API.

This appears to occur due to Genomedata archives without tracks not having any track-dependent attributes, like num_tracks_continuous. Refer to the enclosed file, containing Python output, listing all attributes of a loaded Genomedata archive without any tracks (the result of
pprint(genome.__dict__), in which genome = Genome(<archive>).

Ideally, such archives should still contain all track-related attributes, initialized to their standard empty values, such as num_tracks_continuous = 0 and vars = np.array([]).

@EricR86
Copy link
Member Author

EricR86 commented Jul 6, 2019

Original comment by Coby Viner (Bitbucket: cviner2, GitHub: cviner).


  • changed state from "new" to "open"

@EricR86 EricR86 added minor bug Something isn't working labels Apr 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working minor
Projects
None yet
Development

No branches or pull requests

1 participant