marbl / parsnp

Parsnp was designed to align the core genome of hundreds to thousands of bacterial genomes within a few minutes to few hours. Input can be both draft assemblies and finished genomes, and output includes variant (SNP) calls, core genome phylogeny and multi-alignments. Parsnp leverages contextual information provided by multi-alignments surrounding SNP sites for filtration/cleaning, in addition to existing tools for recombination detection/filtration and phylogenetic reconstruction.
Other
126 stars 25 forks source link

AttributeError version 1.5.6 #97

Closed kristij249 closed 2 years ago

kristij249 commented 2 years ago

New to all of this, but I just installed parsnp version 1.5.6 and when running the code ./parsnp -r (insert my reference file with path) -d (insert my directory of genomes to align with the path), I get the following error message:

|--Parsnp 1.5.6--| For detailed documentation please see --> http://harvest.readthedocs.org/en/latest Traceback (most recent call last): File "./parsnp", line 604, in if shutil.which(exe) is None: AttributeError: 'module' object has no attribute 'which'

bkille commented 2 years ago

@kristij249,

Thanks for trying out Parsnp! It looks like you are using Python 2 which has been deprecated as of January 1, 2020, RIP :skull: You will need to be running Python 3.

I'd strongly suggest installing conda via miniconda. Once you install miniconda and update your channels, you can install parsnp via:

conda install parsnp

This is the preferred method of installation, and will also make it easier to keep up with new updates.

kristij249 commented 2 years ago

@bkille Thank you for your rapid response. It took a while but I did get that. I noticed though that the version of parsnp that is downloaded that way is still version 1.2 in the bin folder? is there a way to update this or am I in the wrong folder for execution?

bkille commented 2 years ago

Of course, happy to help. Have you installed via conda? Could you show me the output you're observing?

bkille commented 2 years ago

@kristij249 I'm closing this issue as a stale issue. It seems that you've installed parsnp via conda, but are seeing the old version of conda in the bin/ folder. This is because the version of parsnp that you obtained via conda is in ${CONDA_PREFIX}/bin.

Let me know if you still have questions!

-Bryce

kristij249 commented 2 years ago

Thanks Bryce, My apologies for not responding to this sooner, I got pulled onto another project. I appreciate your rapid responses and assistance. Have a good evening, Kristi

Kristi Jones, Ph. D. Biological Scientist Food Animal Reproductive Services Large Animal Clinical Sciences University of Florida Vet Med @.**@.> (352)294-4326

From: Bryce Kille @.> Sent: Thursday, November 18, 2021 5:13 PM To: marbl/parsnp @.> Cc: Jones,Kristi L @.>; Mention @.> Subject: Re: [marbl/parsnp] AttributeError version 1.5.6 (Issue #97)

[External Email]

@kristij249https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_kristij249&d=DwMCaQ&c=sJ6xIWYx-zLMB3EPkvcnVg&r=nCEbTyrGc19OzBBaSxxoNXdB3cuCmG6puk9Nuoc8998&m=LHDDv_XHSmpX4uFaDFBMqrZBUexlbk_kc7NpnrIuaJ3GP-DJ3pYItBAxpzrq9zWk&s=05MFBiPbKyeUINvyrK5QruM0TYrcJIXrA4Iks0Wru0s&e= I'm closing this issue as a stale issue. It seems that you've installed parsnp via conda, but are seeing the old version of conda in the bin/ folder. This is because the version of parsnp that you obtained via conda is in ${CONDA_PREFIX}/bin.

Let me know if you still have questions!

-Bryce

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_marbl_parsnp_issues_97-23issuecomment-2D973314944&d=DwMCaQ&c=sJ6xIWYx-zLMB3EPkvcnVg&r=nCEbTyrGc19OzBBaSxxoNXdB3cuCmG6puk9Nuoc8998&m=LHDDv_XHSmpX4uFaDFBMqrZBUexlbk_kc7NpnrIuaJ3GP-DJ3pYItBAxpzrq9zWk&s=LBWyCRDUHuM8lA1AmZKVKObZWayUE7cIjlQn1a8xv6E&e=, or unsubscribehttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AWKDLZKRFMMBS5YMMEG7K5DUMV265ANCNFSM5HGTKE4Q&d=DwMCaQ&c=sJ6xIWYx-zLMB3EPkvcnVg&r=nCEbTyrGc19OzBBaSxxoNXdB3cuCmG6puk9Nuoc8998&m=LHDDv_XHSmpX4uFaDFBMqrZBUexlbk_kc7NpnrIuaJ3GP-DJ3pYItBAxpzrq9zWk&s=k_jjK3VKGHkUnTQUCRQBU5safjUmXMzAy07QNQ3UgyU&e=. Triage notifications on the go with GitHub Mobile for iOShttps://urldefense.proofpoint.com/v2/url?u=https-3A__apps.apple.com_app_apple-2Dstore_id1477376905-3Fct-3Dnotification-2Demail-26mt-3D8-26pt-3D524675&d=DwMCaQ&c=sJ6xIWYx-zLMB3EPkvcnVg&r=nCEbTyrGc19OzBBaSxxoNXdB3cuCmG6puk9Nuoc8998&m=LHDDv_XHSmpX4uFaDFBMqrZBUexlbk_kc7NpnrIuaJ3GP-DJ3pYItBAxpzrq9zWk&s=RYnVgLDlEk2Ywd6uYOoQkNZDThxfoVYEAa4HFesk-hI&e= or Androidhttps://urldefense.proofpoint.com/v2/url?u=https-3A__play.google.com_store_apps_details-3Fid-3Dcom.github.android-26referrer-3Dutm-5Fcampaign-253Dnotification-2Demail-2526utm-5Fmedium-253Demail-2526utm-5Fsource-253Dgithub&d=DwMCaQ&c=sJ6xIWYx-zLMB3EPkvcnVg&r=nCEbTyrGc19OzBBaSxxoNXdB3cuCmG6puk9Nuoc8998&m=LHDDv_XHSmpX4uFaDFBMqrZBUexlbk_kc7NpnrIuaJ3GP-DJ3pYItBAxpzrq9zWk&s=pAc4KSWshp41CLYnmwXfX4Rg-IfSswvBu1S5VXZXSvo&e=.