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

new installation of miniconda I run into this error #36

Open
Hasanzahid10 opened this issue May 1, 2024 · 7 comments
Open

new installation of miniconda I run into this error #36

Hasanzahid10 opened this issue May 1, 2024 · 7 comments

Comments

@Hasanzahid10
Copy link

ImportError Traceback (most recent call last)
Cell In[23], line 4
2 path='show'
3 test_path=("data1/densiflorus (plastid)- MT740250.1 retained.fasta")
----> 4 BCAWT_auto_test.auto_test(path,test_path)
5 BCAWT_auto_test.auto_check_file(path)

File ~/miniconda3/lib/python3.11/site-packages/BCAWT/BCAWT_auto_test.py:24, in auto_test(path, test_file)
21 from BCAWT import BCAWT
22 file = open(test_file, "r")
---> 24 BCAWT.BCAW(main_fasta_file = [file] , save_path= path, Auto=True)

File ~/miniconda3/lib/python3.11/site-packages/BCAWT/BCAWT.py:34, in BCAW(main_fasta_file, save_path, ref_fasta_file, genetic_code_, Auto)
32 #from Bio.Alphabet import IUPAC
33 from Bio.Seq import Seq
---> 34 from Bio.SeqUtils import GC
35 from Bio.Data import CodonTable
36 #from Bio.Alphabet import generic_dna

ImportError: cannot import name 'GC' from 'Bio.SeqUtils' (/home/u1/miniconda3/lib/python3.11/site-packages/Bio/SeqUtils/init.py)

@Hasanzahid10
Copy link
Author

Hello sir,
'I am run Staphylococcus_aureus.fasta in your codonU tools but there is show different result. why and how to solve it's,
I am new users. I am share two ss you.one ss your GitHub output. one is mine

![Screenshot from 2024-05-13 17-27-14] (https://github.com/linxingchen/cobra/assets/143874164/522dc511-3ecd-4a52-9bf5-bb0dae1d524b)
![Screenshot from 2024-05-13 17-27-30] (https://github.com/linxingchen/cobra/assets/143874164/1090c5c3-a98e-4846-8897-3d8a24c64aa9)

@linxingchen
Copy link
Owner

ImportError Traceback (most recent call last) Cell In[23], line 4 2 path='show' 3 test_path=("data1/densiflorus (plastid)- MT740250.1 retained.fasta") ----> 4 BCAWT_auto_test.auto_test(path,test_path) 5 BCAWT_auto_test.auto_check_file(path)

File ~/miniconda3/lib/python3.11/site-packages/BCAWT/BCAWT_auto_test.py:24, in auto_test(path, test_file) 21 from BCAWT import BCAWT 22 file = open(test_file, "r") ---> 24 BCAWT.BCAW(main_fasta_file = [file] , save_path= path, Auto=True)

File ~/miniconda3/lib/python3.11/site-packages/BCAWT/BCAWT.py:34, in BCAW(main_fasta_file, save_path, ref_fasta_file, genetic_code_, Auto) 32 #from Bio.Alphabet import IUPAC 33 from Bio.Seq import Seq ---> 34 from Bio.SeqUtils import GC 35 from Bio.Data import CodonTable 36 #from Bio.Alphabet import generic_dna

ImportError: cannot import name 'GC' from 'Bio.SeqUtils' (/home/u1/miniconda3/lib/python3.11/site-packages/Bio/SeqUtils/init.py)

Hi,
Sorry for my delayed reply. I think the issue is due to an older version of Bio. Could you please update it to the newest one and try it again?

Best,
LINXING

@linxingchen
Copy link
Owner

Hello sir, 'I am run Staphylococcus_aureus.fasta in your codonU tools but there is show different result. why and how to solve it's, I am new users. I am share two ss you.one ss your GitHub output. one is mine

![Screenshot from 2024-05-13 17-27-14] (https://github.com/linxingchen/cobra/assets/143874164/522dc511-3ecd-4a52-9bf5-bb0dae1d524b) ![Screenshot from 2024-05-13 17-27-30] (https://github.com/linxingchen/cobra/assets/143874164/1090c5c3-a98e-4846-8897-3d8a24c64aa9)

Hi, I am confused because I have never developed any tools for codon usage frequency calculation. Could you please clarify which one you were using? Thanks.

@Hasanzahid10
Copy link
Author

Hasanzahid10 commented May 18, 2024 via email

@linxingchen
Copy link
Owner

thank you...for your replying But.... I am use biopython 1.83 same problem... After that i found there GC function missing..... And i add this function solve this problem. But i am face new issue.... Scipy...issue.....

On Sat, 18 May, 2024, 5:45 pm LinXing Chen, @.> wrote: ImportError Traceback (most recent call last) Cell In[23], line 4 2 path='show' 3 test_path=("data1/densiflorus (plastid)- MT740250.1 retained.fasta") ----> 4 BCAWT_auto_test.auto_test(path,test_path) 5 BCAWT_auto_test.auto_check_file(path) File ~/miniconda3/lib/python3.11/site-packages/BCAWT/BCAWT_auto_test.py:24, in auto_test(path, test_file) 21 from BCAWT import BCAWT 22 file = open(test_file, "r") ---> 24 BCAWT.BCAW(main_fasta_file = [file] , save_path= path, Auto=True) File ~/miniconda3/lib/python3.11/site-packages/BCAWT/BCAWT.py:34, in BCAW(main_fasta_file, save_path, ref_fasta_file, genetic_code_, Auto) 32 #from Bio.Alphabet import IUPAC 33 from Bio.Seq import Seq ---> 34 from Bio.SeqUtils import GC 35 from Bio.Data import CodonTable 36 #from Bio.Alphabet import generic_dna ImportError: cannot import name 'GC' from 'Bio.SeqUtils' (/home/u1/miniconda3/lib/python3.11/site-packages/Bio/SeqUtils/init.py) Hi, Sorry for my delayed reply. I think the issue is due to an older version of Bio. Could you please update it to the newest one and try it again? Best, LINXING — Reply to this email directly, view it on GitHub <#36 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/BCJVQ5DXMCJ3TM653LW4QFTZC4PKPAVCNFSM6AAAAABHBUM426VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJYG42DIMBQGI . You are receiving this because you authored the thread.Message ID: @.>

Sorry to hear that. Have you updated COBRA to the newest version, which actually resolved the GC issue.

what is your new issue please?

@Hasanzahid10
Copy link
Author

Hasanzahid10 commented May 18, 2024 via email

@linxingchen
Copy link
Owner

linxingchen commented May 18, 2024 via email

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