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

Error when only one bulk sample is present #1

Open
celinesin opened this issue Jan 21, 2019 · 0 comments
Open

Error when only one bulk sample is present #1

celinesin opened this issue Jan 21, 2019 · 0 comments

Comments

@celinesin
Copy link

Heyhey~

Just wanted to let you know about the error thrown when running URSM with only one sample of bulk data. The "problem" is that np.loadtxt loads the data as a single dimensional array, and then
SCexpr.shape[1] != BKexpr.shape[1]:
can not evaluate, because BKexpr.shape is one dimensional (no [1] element)

I fixed it by adding

if len(BKexpr.shape) == 1:
        BKexpr.resize(1,len(BKexpr[:]))

after line 177 in scUnif.py.

Thanks for your work!
Celine

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

1 participant