class_docstr: Tests that genomic metrics work as expected.
docstr: Check that motif_scores have correct shape.
docstr_tok: ["Check","that","motif_scores","have","correct","shape","."]
code: def test_get_motif_scores(self):
      """Check that motif_scores have correct shape."""
      # Encode motif
      motif_name = "TAL1_known4"
      sequences = np.array(["ACGTA", "GATAG", "CGCGC"])
      sequences = dc.utils.genomics_utils.seq_one_hot_encode(
          sequences, letters=LETTERS
      )
      # sequences now has shape (3, 4, 5, 1)
      self.assertEqual(sequences.shape, (3, 4, 5, 1))
  
      motif_scores = get_motif_scores(sequences, [motif_name])
      self.assertEqual(motif_scores.shape, (3, 1, 5))
  
file_path: deepchem/deepchem/metrics/tests/test_genomics.py
imports: import unittest
  import numpy
  import deepchem
  import pytest
  from deepchem.metrics.genomic_metrics import get_motif_scores
  from deepchem.metrics.genomic_metrics import get_pssm_scores
  from deepchem.metrics.genomic_metrics import in_silico_mutagenesis
label_desc: Use image node_id 1 for calling the TestGenomicMetrics obj's underlying member method code with example usage: obj.test_get_motif_scores() without return types