zjshi / gt-pro

MIT License
23 stars 7 forks source link

GT-pro optimize issues #45

Closed wangbaikui closed 2 years ago

wangbaikui commented 2 years ago

GT-pro version: 1.0.1 python version: 3.9.10

Hi guys, When running "./GT-pro optimise" with example fastq file "/path/to/gt-pro/test/SRR413665_2.fastq.gz", program returned those error messages as below: /home/data/t010209/gt-pro/GT_Pro optimize --db /home/data/t010209/gt-pro/20190723_881species --in /home/data/t010209/gt-pro/test/SRR413665_2.fastq.gz

[OK] start initial optimization Traceback (most recent call last): File "/home/data/t010209/gt-pro/scripts/optimize.py", line 99, in main() File "/home/data/t010209/gt-pro/scripts/optimize.py", line 94, in main optimize(dbname) File "/home/data/t010209/gt-pro/scripts/optimize.py", line 61, in optimize assert False AssertionError

Do you have any ideas about this issue?

In addition, is there a docker-image of GT-Pro? It will be helpful for the user like me has a brand new install of CentOS/Ubuntu and for the users to avoid the dependencies issues of GT-Pro installation. to avoid

Many thanks!

zjshi commented 2 years ago

hi wangbaikui, thanks for trying GT-Pro! The main program appears to complain about the missing physical file of the database. Could you please make sure both 20190723_881species_optimized_db_kmer_index.bin and 20190723_881species_optimized_db_snps.bin are in place?

zjshi commented 2 years ago

Is there a specific dependency issue you are experiencing? Although we would like to have it, we currently don't have a docker image.

wangbaikui commented 2 years ago

hi wangbaikui, thanks for trying GT-Pro! The main program appears to complain about the missing physical file of the database. Could you please make sure both 20190723_881species_optimized_db_kmer_index.bin and 20190723_881species_optimized_db_snps.bin are in place?

Hi,Shi, thanks for the reply! I downloaded the two default database files using the recommended ways "wget --content-disposition" and put they into the folder of "20190723_881species": image

where the gt-pro install is: image

I run the following command with full path in a in a new environment and still received the same issue: /home/data/t0202014/tools/gt-pro/GT_Pro optimize --db /home/data/t0202014/database/20190723_881species --in /home/data/t0202014/tools/gt-pro/test/SRR413665_2.fastq.gz [OK] start initial optimization Traceback (most recent call last): File "/home/data/t0202014/tools/gt-pro/scripts/optimize.py", line 99, in main() File "/home/data/t0202014/tools/gt-pro/scripts/optimize.py", line 94, in main optimize(dbname) File "/home/data/t0202014/tools/gt-pro/scripts/optimize.py", line 61, in optimize assert False AssertionError

BY the way, I have no root authorization of the computing server, is this related to the above mentioned issue?

zjshi commented 2 years ago

This is very helpful! My hunch is that it was caused by the missing parent folder which happens to have the same name as the database. Would you please try the following command line to see if the problem still there?

/home/data/t0202014/tools/gt-pro/GT_Pro optimize --db /home/data/t0202014/database/20190723_881species/20190723_881species --in /home/data/t0202014/tools/gt-pro/test/SRR413665_2.fastq.gz

wangbaikui commented 2 years ago

This is very helpful! My hunch is that it was caused by the missing parent folder which happens to have the same name as the database. Would you please try the following command line to see if the problem still there? /home/data/t0202014/tools/gt-pro/GT_Pro optimize --db /home/data/t0202014/database/20190723_881species/20190723_881species --in /home/data/t0202014/tools/gt-pro/test/SRR413665_2.fastq.gz`

Very greatfull! It worked very well accroding to your suggestion! And there is no other errors occured when i run the “Step-by-step Tutorial”! With misunderstanding the sentence "The name of this default database is "20190723_881species".", I created a new folder named "20190723_881species" and put the two downloaded default database files into the new folder, so the problem occured. Thanks so much!

wangbaikui commented 2 years ago

Is there a specific dependency issue you are experiencing? Although we would like to have it, we currently don't have a docker image.

Most dependency issues are the uninstalled python packages and i sovled it. It will be easier for the first-time users to quickly get familiar with GT-Pro with a docker image. Hope for a docker image or a conda installation in the future.

zjshi commented 2 years ago

Great to hear, thanks for trying GT-Pro :)