Comments (23)
Hi @ChenCongZ,
This message indicates that Pathway Tools executable (pathway-tools
) is not available in the path environment variable. Have you installed Pathway Tools and add it to the path?
To add Pathway Tools to the path variable after its installation is explained in the readme:
https://github.com/AuReMe/mpwt#requirements
For Linux and macOS it is by using the following commands:
echo 'export PATH="$PATH:/your/install/directory/pathway-tools:"' >> ~/.bashrc
source ~/.bashrc
For Windows, you must add the path of the pathway tools folder to the Environment Variables
. Open the Environment Variables
window, select the Advanced system settings
, Environment Variables
. Then crate a new variables in the System variable
.
But mpwt has not been tested on Windows, so I do not know if it works.
from mpwt.
Dear Mr AuReMe,
I run it in the window and put it in the System variable. Please check below.
from mpwt.
Hi @ArnaudBelcour,
Its installation location is C:\Program Files\Pathway Tools according to https://github.com/AuReMe/mpwt#requirements. So it must be my installation problem or its path setting problem. However, I also tried many changes. No key problem was found.
from mpwt.
from mpwt.
from mpwt.
I think there is no problem with your installation of Pathway Tools.
For your environment variable, I think that there is an issue. The variable column (变量) of the System variable
window must be path
to add the path of Pathway Tools and not C:\Program Files\Pathway Tools
to have access to the executable files in the path. But this will give access to the path to executables such as ptools.bat
and at this time mpwt does not handle these scripts (and I am not sure if it will handle them one day). Especially since I do not have the time to make these modifications.
As I have explained in my first post, we tested and used mpwt only on Linux and macOS. On Windows, I have only used using the Windows Subsystem for Linux (by installing the Ubuntu subsystem on it and then installing the Pathway Tools installer associated with Linux), otherwise I do not think that mpwt can work with the powershell.
from mpwt.
Hi @ArnaudBelcour ,
Thank you for your help.
This problem occurred when I installed Pathway Tools, and I suspect that my window system can't read it. However, I have tried many methods, but I can't find the key installation problem. Can you check it for me?
Warning: EnableWindow: (error 127) 找不到指定的程序(The specified program could not be found).
from mpwt.
I made the changes according to your suggestion.
from mpwt.
Hi @ArnaudBelcour ,
Thank you for your help. I have solved the problem of the path. Can you tell me the version of the Pathway Tools used in testing "Metage2Metabo\test\metabolic_data\toy_bact"
from mpwt.
Because I want to get toy_bact SMBL format in testing "Metage2Metabo\test\metabolic_data\toy_bact"
from mpwt.
Hi @ArnaudBelcour,
This problem always occurs when I run Mpwt.
mpwt.multiprocess_pwt(input_folder='bacteria',patho_inference=True)
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\chencong\AppData\Local\Programs\Python\Python39\lib\site-packages\mpwt\mpwt_workflow.py", line 79, in multiprocess_pwt
error = utils.check_ptools_local_pwt()
File "C:\Users\chencong\AppData\Local\Programs\Python\Python39\lib\site-packages\mpwt\utils.py", line 61, in check_ptools_local_pwt
ptools_path = find_ptools_path()
File "C:\Users\chencong\AppData\Local\Programs\Python\Python39\lib\site-packages\mpwt\utils.py", line 46, in find_ptools_path
ptools_local_str = [line for line in pathway_tools_file if 'PTOOLS_LOCAL_PATH' in line][0]
File "C:\Users\chencong\AppData\Local\Programs\Python\Python39\lib\site-packages\mpwt\utils.py", line 46, in
ptools_local_str = [line for line in pathway_tools_file if 'PTOOLS_LOCAL_PATH' in line][0]
File "C:\Users\chencong\AppData\Local\Programs\Python\Python39\lib\codecs.py", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x90 in position 2: invalid start byte
from mpwt.
Hi @ChenCongZ,
I do not think that the error comes from your installation of Pathway Tools.
mpwt is not working on Windows (as the binary and paths seem to be different from the ones of the Linux/macOS versions) and I have not the time and resource to work on this.
from mpwt.
Hi @ArnaudBelcour,
Thank you for your suggestion!
Recently I tried to solve these problems with ubuntu ( linux operating system) and got some progress. At the same time, I encountered some problems in the mpwt pipeline. It shown below:
from mpwt.
I used your data to get some results in the mpwt, but I have a question: I get XML data format like this, not the same as you get.Does this have an impact on M2M pipeline analysis?
from mpwt.
Hi @ChenCongZ,
For the first issue, it comes from the taxon_id.tsv
file (for more information look at the readme). There are issues in the format, this file must look like:
Column 1 (ID) | Column 2 (taxonomic ID) |
---|---|
bin_1 | 562 |
The taxonomic ID corresponds to the taxonomic ID associated with your organism in the NCBI taxonomy database. For example, here 562 corresponds to Escherichia coli.
For the XML files you created, yes this will impact Metag2Metabo results. You created these files using the --mx
(in command line) or the xml_extraction
(in python) option. This extracts XML files created by Pathway Tools. These files are different from the ones created by Metage2Metabo as they are created by the padmet package.
There are multiple differences such as different IDs, the XML from Pathway Tools will contain instantiated metabolites from metabolite class whereas SBML from padmet will only contained the classes.
If you use this as a test to find similar results, you need either to give the flat files (obtained with --md
or dat_extraction
) to Metage2Metabo or to launch Metage2Metabo with recon
on your the same folder.
from mpwt.
Hi @ArnaudBelcour,
Thank you for your suggestion!
This prompt came up today when I reconstructed the metabolic network model of the test data based on your reminder. However, I don't know which step I overlooked.
reconstruction.recon('/home/chencong/test','/home/chencong/output3',noorphan_bool=True,padmet_bool=False,sbml_level={2},nb_cpu=2,clean=True,use_pwt_xml=True)
CRITICAL:metage2metabo.m2m.reconstruction:No /home/chencong/.ncbirc file, please fix it before using the program
from mpwt.
I also checked its status.
chencong@chencong-QiTianM428-A606:~$ ls -l /home/chencong/.bashrc
-rw-rw-rw- 1 chencong chencong 4027 Nov 26 10:58 /home/chencong/.bashrc
from mpwt.
Hi @arnaud Belcour,
AttributeError: 'xml.etree.ElementTree.Element' object has no attribute 'getchildren'.
from mpwt.
Hi @ArnaudBelcour,
I'm very sorry to bother you when you are busy, but I have encountered many problems during the reconstruction of metabolic pathway in a few days. I can solve some of them, but my limited ability can't solve all of them. I'm confused that I reconstructed metabolic pathway data by directly using the data annotated by prokka after binning. The annotated file (.gbk) of an organism is divided into several sections, and the specific files are listed below. Can files like this be directly used for data input without m2m?
bin.4.strict.txt
from mpwt.
Hi @ChenCongZ,
Yes this file can be used as input for mpwt/m2m. You need to change its extension (from txt
to gbff
). Furthermore, you need to use a taxon_id file to indicate the taxon ID corresponding to this file as there is no taxonomic information in the gbff file created by Prokka.
The different sections in the gbff file (called Locus) correspond to the different contig contained inside this bin, Pathway Tools will handle them without problems.
from mpwt.
Hi @ArnaudBelcour,
Thank you for your help.
I've got the single species sbml file.
But I encountered a problem converting seeds metabolites file.
from mpwt.
Hi @ArnaudBelcour,
Thank you for your help.
I've fixed these issues, thank you for your help.
from mpwt.
Hi @ArnaudBelcour,
I can run all the other results,but there is a issue about m2m.recon.
from mpwt.
Related Issues (20)
- Error when trying to create dat files without input folder. HOT 2
- mpwt move output files should be more flexible. HOT 1
- Issue with encoding of flat_files_creation.log. HOT 1
- Issue with Pathway Tools 25.0 when checking log. HOT 1
- Make each run of Pathway Tools independent. HOT 2
- Add an option to give various Pathway Tools option to mpwt. HOT 1
- String not Boolean and path incorrect HOT 2
- Issue with Pathway Tools 25.5 when checking log HOT 2
- Issue mpwt with the --hf option HOT 1
- Add an option to use -complex-inference (Pathway-Tools 26.0). HOT 1
- Use -dump-flat-files-biopax to create flat files (Pathway-Tools 26.0). HOT 1
- Pathway-tools 26.0 handles gbff and gff without input files.
- bypass the genetic-elements.dat and organisms.dat creation HOT 4
- issue when there is an extra file in the input folder HOT 1
- Issue mpwt delete and ptools cache ? HOT 3
- Error when launching mpwt HOT 2
- When I use pathway tools to build models, this problem always appears: Fatal error: The search using the name of your rganism ("Caloramator Bacteria, Firmicutes, Clostridia, Clostridiales, Caloramator." strain=NIL) failed to find any Taxon class for your organism or returned ambiguous results. HOT 2
- I have created dozens of genome files and this situation has occurred. How can I solve it. HOT 3
- /mpwt/pwt_wrapper.py: ['Error', 'fatal error', 'No protein-coding genes with sequence data found.', 'Cannot continue.'] HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mpwt.