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

castyping.py having an issue with positional arguments. #40

Open
jamesrgurney opened this issue May 18, 2023 · 2 comments
Open

castyping.py having an issue with positional arguments. #40

jamesrgurney opened this issue May 18, 2023 · 2 comments

Comments

@jamesrgurney
Copy link

I've had cctyper working before on another machine. Not sure if you have seen this error before.

(cctyper)user assembly % cctype CIA1\ copy.fna CIA1_cctyper
zsh: command not found: cctype
(cctyper)user assembly % cctyper CIA1\ copy.fna CIA1_cctyper
/Users/user/miniconda3/envs/cctyper/lib/python3.9/site-packages/Bio/pairwise2.py:278: BiopythonDeprecationWarning: Bio.pairwise2 has been deprecated, and we intend to remove it in a future release of Biopython. As an alternative, please consider using Bio.Align.PairwiseAligner as a replacement, and contact the Biopython developers if you still need the Bio.pairwise2 module.
warnings.warn(
[2023-05-18 10:59:17] INFO: Running CRISPRCasTyper version 1.3.0
[2023-05-18 10:59:18] INFO: Predicting ORFs with prodigal
[2023-05-18 10:59:28] INFO: Running HMMER against Cas profiles
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 691/691 [01:11<00:00, 9.65it/s]
[2023-05-18 11:01:14] INFO: Parsing HMMER output
[2023-05-18 11:01:14] INFO: Subtyping putative operons
Traceback (most recent call last):
File "/Users/user/miniconda3/envs/cctyper/bin/cctyper", line 80, in
castyper.typing()
File "/Users/user/miniconda3/envs/cctyper/lib/python3.9/site-packages/cctyper/castyping.py", line 294, in typing
single_effector_hmms = self.scores[self.scores['Hmm'].isin(list(specifics))].drop('Hmm', 1)
TypeError: drop() takes from 1 to 2 positional arguments but 3 were given

@jamesrgurney
Copy link
Author

Fixed it by changing
single_effector_hmms = self.scores[self.scores['Hmm'].isin(list(specifics))].drop('Hmm', 1)
to
single_effector_hmms = self.scores[self.scores['Hmm'].isin(list(specifics))].drop('Hmm', axis=1)

@Russel88
Copy link
Owner

Thank you for reporting this. Looks like I have to be more restrictive on the pandas and biopython versions

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