Skip to content

Local Instalation #68

Description

@DaniPaulo

Hi,
I'm trying to install the local version of CRISPOR, but getting the following error. Can you help me?

python crispor.py sacCer3 sampleFiles/in/sample.sacCer3.fa sampleFiles/mine/sample.sacCer3.tsv -o sampleFiles/mine/sample.sacCer3.mine.offs.tsv
INFO:root: * running on sequence 'testSeq', guideLen=20, seqLen=182
INFO:root:Progress x50sPGMoTvUagv3zWjGg - bwasw - Searching genome for one 100% identical match to input sequence
[bsw2_aln] read 1 sequences/pairs (182 bp) ...
[main] Version: 0.7.9a-r786
[main] CMD: /Users/fisher21/Desktop/CRISPR_Physalia_workshop/test/crisporWebsite/bin/Darwin/bwa bwasw -b 100 -q 100 -T 20 /Users/fisher21/Desktop/CRISPR_Physalia_workshop/test/crisporWebsite/genomes/sacCer3/sacCer3.fa /var/tmp/primer3In6eca1vkx.txt
[main] Real time: 0.007 sec; CPU: 0.010 sec
INFO:root:Progress x50sPGMoTvUagv3zWjGg - effScores - Calculating guide efficiency scores
/opt/homebrew/Caskroom/miniconda/base/envs/crispor/lib/python3.9/site-packages/sklearn/base.py:347: InconsistentVersionWarning: Trying to unpickle estimator DummyRegressor from version 1.1.1 when using version 1.3.0. This might lead to breaking code or invalid results. Use at your own risk. For more info please refer to:
https://scikit-learn.org/stable/model_persistence.html#security-maintainability-limitations
warnings.warn(
Traceback (most recent call last):
File "/Users/fisher21/Desktop/CRISPR_Physalia_workshop/test/crisporWebsite/crispor.py", line 8824, in
main()
File "/Users/fisher21/Desktop/CRISPR_Physalia_workshop/test/crisporWebsite/crispor.py", line 8821, in main
mainCommandLine()
File "/Users/fisher21/Desktop/CRISPR_Physalia_workshop/test/crisporWebsite/crispor.py", line 8621, in mainCommandLine
getOfftargets(seq, org, pamPat, batchId, startDict, ConsQueue())
File "/Users/fisher21/Desktop/CRISPR_Physalia_workshop/test/crisporWebsite/crispor.py", line 4643, in getOfftargets
processSubmission(faFname, org, pamDesc, otBedFname, batchBase, batchId, queue)
File "/Users/fisher21/Desktop/CRISPR_Physalia_workshop/test/crisporWebsite/crispor.py", line 4165, in processSubmission
createBatchEffScoreTable(batchId, queue)
File "/Users/fisher21/Desktop/CRISPR_Physalia_workshop/test/crisporWebsite/crispor.py", line 3767, in createBatchEffScoreTable
guideRows = calcSaveEffScores(batchId, seq, extSeq, pam, queue)
File "/Users/fisher21/Desktop/CRISPR_Physalia_workshop/test/crisporWebsite/crispor.py", line 3704, in calcSaveEffScores
effScores = crisporEffScores.calcAllScores(longSeqs, enzyme=enz, scoreNames=scoreNames)
File "/Users/fisher21/Desktop/CRISPR_Physalia_workshop/test/crisporWebsite/crisporEffScores.py", line 922, in calcAllScores
scores["fusi"] = calcAziScore(trimSeqs(seqs, -24, 6))
File "/Users/fisher21/Desktop/CRISPR_Physalia_workshop/test/crisporWebsite/crisporEffScores.py", line 1167, in calcAziScore
score = azimuth.model_comparison.predict(numpy.array([seq]), None, None, pam_audit=False)[0]
File "/Users/fisher21/Desktop/CRISPR_Physalia_workshop/test/crisporWebsite/bin/Azimuth-2.0/azimuth/model_comparison.py", line 544, in predict
model, learn_options = pickle.load(f)
File "sklearn/tree/_tree.pyx", line 714, in sklearn.tree._tree.Tree.setstate
File "sklearn/tree/_tree.pyx", line 1418, in sklearn.tree._tree._check_node_ndarray
ValueError: node array from the pickle has an incompatible dtype:

  • expected: {'names': ['left_child', 'right_child', 'feature', 'threshold', 'impurity', 'n_node_samples', 'weighted_n_node_samples', 'missing_go_to_left'], 'formats': ['<i8', '<i8', '<i8', '<f8', '<f8', '<i8', '<f8', 'u1'], 'offsets': [0, 8, 16, 24, 32, 40, 48, 56], 'itemsize': 64}
  • got : [('left_child', '<i8'), ('right_child', '<i8'), ('feature', '<i8'), ('threshold', '<f8'), ('impurity', '<f8'), ('n_node_samples', '<i8'), ('weighted_n_node_samples', '<f8')]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions