Skip to content

ValueError: could not broadcast input array from shape (4,675) into shape (4,201) #1

Description

@tamerbio

Dear all,
I am trying to use this interesting tool to predict CTCF binding to my lncRNA using:
python /prediction.py -f /Users/tali/Desktop/lncRNA_seqes.fa -o prediction.output
however, the tool throws out this error message:

2022-10-05 10:08:59.419265: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations:  AVX2 FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2022-10-05 10:09:01.960968: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations:  AVX2 FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
WARNING:tensorflow:Please fix your imports. Module tensorflow.python.training.tracking.base has been moved to tensorflow.python.trackable.base. The old module will be deleted in version 2.11.
Traceback (most recent call last):
  File "/prediction.py", line 36, in <module>
    main()
  File "/prediction.py", line 33, in main
    prediction(infile,outfile)
  File "/prediction.py", line 10, in prediction
    X,geneinfo = get_pred_data(infile)
  File /utils.py", line 91, in get_pred_data
    (seqmatrix, gene, rank) = get_seq_matrix(infile,seqmatrix,rank)
  File "/utils.py", line 48, in get_seq_matrix
    seqmatrix[rank] = seqcode
ValueError: could not broadcast input array from shape (4,675) into shape (4,201)

what might be went wrong?
Im using MacOS 12.2
thanks much
Tamer

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