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

UserInput object has no attribute genelabels #3

Open
tirohia opened this issue Sep 14, 2023 · 1 comment
Open

UserInput object has no attribute genelabels #3

tirohia opened this issue Sep 14, 2023 · 1 comment
Assignees

Comments

@tirohia
Copy link

tirohia commented Sep 14, 2023

When calling run_predictions(), the code is getting hung up on the UserInput object not having an attribute genelabels.

As best I can see, the creation of the UserInput object should add a genelabels attribute of id by default. I can't see why it's not doing so.

Commenting out the following block gets around the error, but (I assume) means that it loses the ability to check whether it needs to translate the gene labels or not.

if ui.genelabels == 'symbol':
        ensembl_relabel = convert_symbols_to_ensembl(ui.samples.columns)
        ui.samples = ui.samples.drop(ensembl_relabel['unconfirmed'], axis=1)
        ui.samples.columns = [ensembl_relabel['confirmed'][i] for i in ui.samples.columns]
``
@AllenZPGu
Copy link
Collaborator

AllenZPGu commented Sep 19, 2023

Hi, thanks so much for picking this up.
I can't seem to reproduce the error, and as you say, the UserInput object should catch if the genelabels flag is missing.
Are you able to share some details of what led to this error?

@AllenZPGu AllenZPGu self-assigned this Sep 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants