Ph.D. Student
Chinese Academy of Chinese Medical Science
hua-cm / huasmalltools Goto Github PK
View Code? Open in Web Editor NEWSome bioinformic domestic scripts.
License: MIT License
Some bioinformic domestic scripts.
License: MIT License
你好,我在使用您提供的脚本对EggNOG注释的结果进行GO和KEGG提取使出现了错误:命令行是:
python parse_eggNOG.py -i ../query_seqs.fa.emapper.annotations -g go.tb -O ath,osa -o result
出现了以下的报错:
Traceback (most recent call last):
File "parse_eggNOG.py", line 133, in
main(args.input_file, args.output_directory, args.go_file, args.org_list.split(","))
File "parse_eggNOG.py", line 114, in main
file4KO = parse_KO(file4parse, org_list)[["gene", "KO", "pathway", "description"]]
File "parse_eggNOG.py", line 81, in parse_KO
KO2map, KEGGmap = get_KEGGmap(own_mapdb(org_list))
File "parse_eggNOG.py", line 35, in own_mapdb
tmp_df = pd.DataFrame(tmp, columns=["pathway", "description"]).dropna()
File "/lustre/xzq/miniconda3/lib/python3.6/site-packages/pandas/core/frame.py", line 407, in init
raise TypeError("data argument can't be an iterator")
请问这怎么解决,谢谢!
eggNOG更新了它的输出文件格式,这个脚本可能不适合现在的格式了
(R) [lihr@localhost cultivar_Lee]$ python ../HuaSmallTools-master/parse/parse_eggNOG.py -i out.emapper.annotations -g go.tb -O gmx -o cultivar_Lee
Traceback (most recent call last):
File "../HuaSmallTools-master/parse/parse_eggNOG.py", line 134, in
main(args.input_file, args.output_directory, args.go_file, args.org_list.split(","))
File "../HuaSmallTools-master/parse/parse_eggNOG.py", line 117, in main
file4KO.to_csv(os.path.join(out_dir, "KOannotation.tsv"), sep="\t", index=False)
File "/home/lihr/software/miniconda3/envs/R/lib/python3.8/site-packages/pandas/core/generic.py", line 3170, in to_csv
formatter.save()
File "/home/lihr/software/miniconda3/envs/R/lib/python3.8/site-packages/pandas/io/formats/csvs.py", line 185, in save
f, handles = get_handle(
File "/home/lihr/software/miniconda3/envs/R/lib/python3.8/site-packages/pandas/io/common.py", line 493, in get_handle
f = open(path_or_buf, mode, encoding=encoding, errors=errors, newline="")
FileNotFoundError: [Errno 2] No such file or directory: 'cultivar_Lee/KOannotation.tsv'
非常不好意思,想请问一下这个问题应该怎么解决。
输入为:python parse_eggNOG.py -i MM.emapper.annotations.tsv -g go.tb -O spar,pti,fcy,tps -o test
报错为:
Traceback (most recent call last):
File "parse_eggNOG.py", line 154, in
main(args.input_file, args.output_directory, args.go_file, args.org_list.split(","))
File "parse_eggNOG.py", line 131, in main
usecols=check_column(input_file),
File "parse_eggNOG.py", line 124, in check_column
return 0, go_idx, kegg_idx
UnboundLocalError: local variable 'go_idx' referenced before assignment
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.