Jerrythafast / FDSTools

Data analysis tools for Massively Parallel Sequencing of forensic DNA markers, including tools for characterisation and filtering of PCR stutter artefacts and other systemic noise, and for automatic detection of the alleles in a sample.
GNU General Public License v3.0
5 stars 3 forks source link

[Py3.12] FDSTools failed to load #2

Closed waweey closed 3 months ago

waweey commented 11 months ago

Hi,

I have encountered this issue:

FDSTools failed to load 'allelefinder': 'FileFinder' object has no attribute 'find_module' FDSTools failed to load 'bganalyse': 'FileFinder' object has no attribute 'find_module' FDSTools failed to load 'bgcorrect': 'FileFinder' object has no attribute 'find_module' FDSTools failed to load 'bgestimate': 'FileFinder' object has no attribute 'find_module' FDSTools failed to load 'bghomraw': 'FileFinder' object has no attribute 'find_module' FDSTools failed to load 'bghomstats': 'FileFinder' object has no attribute 'find_module' FDSTools failed to load 'bgmerge': 'FileFinder' object has no attribute 'find_module' FDSTools failed to load 'bgpredict': 'FileFinder' object has no attribute 'find_module' FDSTools failed to load 'findnewalleles': 'FileFinder' object has no attribute 'find_module' FDSTools failed to load 'libconvert': 'FileFinder' object has no attribute 'find_module' FDSTools failed to load 'library': 'FileFinder' object has no attribute 'find_module' FDSTools failed to load 'pipeline': 'FileFinder' object has no attribute 'find_module' FDSTools failed to load 'samplestats': 'FileFinder' object has no attribute 'find_module' FDSTools failed to load 'seqconvert': 'FileFinder' object has no attribute 'find_module' FDSTools failed to load 'stuttermark': 'FileFinder' object has no attribute 'find_module' FDSTools failed to load 'stuttermodel': 'FileFinder' object has no attribute 'find_module' FDSTools failed to load 'tssv': 'FileFinder' object has no attribute 'find_module' FDSTools failed to load 'vis': 'FileFinder' object has no attribute 'find_module'

Can you please suggest a solution? I have tried reinstalling FDStools and installing it again but the same issue exists. I am running the most updated version of python

Jerrythafast commented 11 months ago

Hi @waweey,

FDSTools currently does not support Python 3.12. We have a fix for this in the next release, which should come later this month, but for now my advise is to downgrade to Python 3.11 to avoid this issue.

I'm sorry for the inconvenience!

Jerry

waweey commented 11 months ago

Thank you, Jerry, for the prompt response

waweey commented 11 months ago

Hi again jerry, I have followed all the steps provided for the ISFG exercise 1.

For the (fdstools tssv --num-threads 8 --report tssv1-report.txt ForenSeqA ForenseqARef_R1.fasta.gz tssv1-output.txt) regards of the number of threads, the following error is observed:

**fdstools : usage: fdstools tssv [-h] [-v] [-d] [-F FORMAT] [-R FILE] [-L N] [-D DIR] At line:1 char:1

I have a PC with internet connection and I have tried to cash the chr13 manually but still the error is still showing.

**strnaming : usage: strnaming [-h] [-v] [-d] ACTION ... At line:1 char:1

strnaming: error: Sequence for chr13:20327551..20327614 is unavailable and could not be downloaded automatically. Please run 'strnaming refseq-cache chr13:20327551..20327614' on a system with internet access and manually transfer the downloaded files to 'C:\Users\q8dj.strnaming-cache'. Something went wrong while trying to cache refseq range chr13:20327551..20327614**

Jerrythafast commented 11 months ago

Hi @waweey,

Looks like for some reason FDSTools/STRNaming is unable to contact the Ensembl REST API. It should download the reference sequence by contacting http://rest.ensembl.org/sequence/region/human/chr13:20324353..20336640?content-type=text/plain

Could you try if that link works (in a web browser or using a command-line utility such as cURL/wget) on that PC?

If it does, I'm curious if we can get more information by adding --debug to the command like this:

strnaming refseq-cache --debug chr13:20327551..20327614
waweey commented 11 months ago

Hi Jerry,

The link works hopefully but still getting the error message:

PS C:\Users\q8dj> strnaming refseq-cache --debug chr13:20327551..20327614

**strnaming : usage: strnaming [-h] [-v] [-d] ACTION ... At line:1 char:1

strnaming: error: The following arguments are not known. Please check spelling and argument order: '--debug'.**

Another input:

PS C:\Users\q8dj> strnaming --debug refseq-cache chr13:20327551..20327614 strnaming : Traceback (most recent call last): At line:1 char:1

Jerrythafast commented 11 months ago

Hi @waweey,

Strangely, it appears that STRNaming hasn't cleant up its lock file during an earlier attempt. Could you try again after manually deleting this file? C:\Users\q8dj\.strnaming-cache\cache.lock

Jerry

Jerrythafast commented 3 months ago

Fixed in v2.1.0