Closed ramay closed 11 months ago
Hi guys, Wondering if anyone can answer this question. I really want to try metapro on my samples but cannot get it to work at the momement. Thanks! Hena
Hi all, Any input on this? Thanks! Hena
in your launch command, you just specify -c config.ini
where is config.ini? where is the console when you launch MetaPro? This is a hunch, but try giving it an absolute path instead, to be sure that the command is actually getting the correct config.ini
I used -c config.ini because it is in the folder where I am launching metapro from.
But I changed it as you asked and there is no difference. In the config.ini the location of nr is specified and different but it it still not using the paths provided in this config.ini file. Any other suggestions? Thanks! Hena
singularity exec -C metapro_v2.1.1.sif python3 /pipeline/MetaPro.py -c /bulk/IMCbinf_bulk/hramay/projects/Pfeffer/config.ini -1 Neg_con_1.fastq.gz -2 Neg_con_2.fastq.gz -o test
INFO: underlay of /etc/localtime required more than 50 (109) bind mounts
METAPRO metatranscriptomic analysis pipeline
output folder does not exist. Now building directory.
=====================================
no-host: False
verbose_mode: quiet
CHECKING CONFIG
USING CONFIG
Databases no section found, using default: /project/j/jparkin/Lab_Databases/univec_core/UniVec_Core.fasta
Databases no section found, using default: /project/j/jparkin/Lab_Databases/Trimmomatic_adapters/TruSeq3-PE-2.fa
Databases no section found, using default: /project/j/jparkin/Lab_Databases/Mouse_cds/Mouse_cds.fasta
Databases no section found, using default: /project/j/jparkin/Lab_Databases/Rfam/Rfam.cm
Databases no section found, using default: /project/j/jparkin/Lab_Databases/ChocoPhlAn/ChocoPhlAn.fasta
Databases no section found, using default: /project/j/jparkin/Lab_Databases/nr/nr
Databases no section found, using default: /project/j/jparkin/Lab_Databases/nr/nr
Databases no section found, using default: /project/j/jparkin/Lab_Databases/accession2taxid/accession2taxid
Databases no section found, using default: /project/j/jparkin/Lab_Databases/WEVOTE_db/nodes.dmp
Databases no section found, using default: /project/j/jparkin/Lab_Databases/WEVOTE_db/names.dmp
Databases no section found, using default: /project/j/jparkin/Lab_Databases/kaiju_db/kaiju_db_nr.fmi
Databases no section found, using default: /project/j/jparkin/Lab_Databases/centrifuge_db/nt
Databases no section found, using default: /project/j/jparkin/Lab_Databases/swiss_prot_db/swiss_prot_db
Databases no section found, using default: /project/j/jparkin/Lab_Databases/swiss_prot_db/SwissProt_EC_Mapping.tsv
Databases no section found, using default: /project/j/jparkin/Lab_Databases/PRIAM_db/
Databases no section found, using default: /project/j/jparkin/Lab_Databases/DETECTv2
Databases no section found, using default: /project/j/jparkin/Lab_Databases/WEVOTE_db/
Databases no section found, using default: /project/j/jparkin/Lab_Databases/EC_pathway.txt
Databases no section found, using default: /pipeline/custom_databases/pathway_to_superpathway.csv
Databases no section found, using default: /pipeline_tools/mgm/MetaGeneMark_v1.mod
Databases no section found, using default: /pipeline/custom_databases/FREQ_EC_pairs_3_mai_2020.txt
dir name: /project/j/jparkin/Lab_Databases/nr
file name: nr
/project/j/jparkin/Lab_Databases/nr/nr
file does not exists
That singularity command call looks suspicious. It's maybe missing the bind mounts. In this situation: though your files are where you say they are, singularity can't see it.
Bind mounts tell singularity where to look. Singularity is a mini VM. it needs to mount drives and folders. Bind mounting binds your filesystem to the singularity instance.
Hi Billy, Thanks for the tip. I fixed that problem but now here is a new one :). Seems like I don't have the correct file bwa needs. the files in the nr folder are from July 2021.
Command I used was:
singularity exec -B /bulk:/bulk -C metapro_v2.1.1.sif python3 /pipeline/MetaPro.py -c /bulk/IMCbinf_bulk/hramay/projects/Pfeffer/config.ini -1 Neg_con_1.fastq.gz -2 Neg_con_2.fastq.gz -o test
Output:
INFO: underlay of /etc/localtime required more than 50 (109) bind mounts
METAPRO metatranscriptomic analysis pipeline
output folder does not exist. Now building directory.
=====================================
no-host: False
verbose_mode: quiet
CHECKING CONFIG
USING CONFIG
enzyme_db no inner section found. using default /pipeline/custom_databases/FREQ_EC_pairs_3_mai_2020.txt
dir name: /bulk/IMCbinf_bulk/hramay/projects/Pfeffer/python_lib/nr
file name: nr
/bulk/IMCbinf_bulk/hramay/projects/Pfeffer/python_lib/nr/nr
2023-09-20 10:08:22.111588 /bulk/IMCbinf_bulk/hramay/projects/Pfeffer/python_lib/nr/nr exists
2023-09-20 10:08:22.112136 DMD index is ok
Error: no fasta file found. BWA only accepts .fasta extensions
apologies. There is currently a refactor happening to address configuration inconveniences.
Hi @ramay!
I was running into a similar issue with this and found that the resolution for this specific issue (at least on my end) was to change all of the colons in the [Databases] section to equal signs. So the first few lines read as:
[Databases]
database_path = /my/database/location
UniVec_Core = %(database_path)s/univec_core/UniVec_Core.fasta
Adapter = %(database_path)s/Trimmomatic_adapters/TruSeq3-PE-2.fa
I also needed to fix source_taxa_db
(changing it to %(database_path)s like above) and remove the [Code]
section that points to additional files I don't need.
Hope that's helpful!
I'll patch this in the config of the next new release. thanks!
Hi, I have modified the provided config.ini files to point to the location of downloaded databases but I think it is not being used. Also it stops when it cannot find this file .
I have only changed database_path in the config.ini and it is pasted below. Please let me know if I am doing something wrong. Thanks! Hena
Here is the command i used
config file: