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

AttributeError: 'NoneType' object has no attribute 'shape' #5

Open
sxh1136 opened this issue Sep 25, 2020 · 0 comments
Open

AttributeError: 'NoneType' object has no attribute 'shape' #5

sxh1136 opened this issue Sep 25, 2020 · 0 comments

Comments

@sxh1136
Copy link

sxh1136 commented Sep 25, 2020

Hi there, I'm trying to run Phamers but i keep getting this error. Any idea how to fix this?

./phamer.py -in /home/ubuntu/aqua_amr/software/PhaMers/phage -data data --debug --equalize_reference  ✔
[2020-09-25 18:09:27,312][INFO][] - Loading data into scoring object...
[2020-09-25 18:09:27,312][INFO][load_data] - Calculating features of: Phage_frag_refseq_post2018.fasta
[2020-09-25 18:10:34,150][INFO][load_data] - Saving features to /home/ubuntu/aqua_amr/software/PhaMers/phage/Phage_frag_refseq_post2018_features.csv...
[2020-09-25 18:10:36,124][DEBUG][screen_by_length] - 8407 of 8411 contigs > 5.00 kbp
Traceback (most recent call last):
File "./phamer.py", line 573, in
scorer.equalize_reference_data()
File "./phamer.py", line 164, in equalize_reference_data
num_positive = self.positive_data.shape[0]
AttributeError: 'NoneType' object has no attribute 'shape'

@sxh1136 sxh1136 closed this as completed Sep 28, 2020
@sxh1136 sxh1136 reopened this Feb 9, 2021
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