code: def encode_fasta_sequences(fname):
      """
      One hot encodes sequences in fasta file
      """
      name, seq_chars = None, []
      sequences = []
      with open(fname) as fp:
          for line in fp:
              line = line.rstrip()
              if line.startswith(">"):
                  if name:
                      sequences.append("".join(seq_chars).upper())
                  name, seq_chars = line, []
              else:
                  seq_chars.append(line)
      if name is not None:
          sequences.append("".join(seq_chars).upper())
  
      return one_hot_encode(np.array(sequences))
  
file_path: deepchem/contrib/dragonn/utils.py
imports: from __future__ import absolute_import, division, print_function
  import numpy
  import sys
  from sklearn.preprocessing import LabelEncoder, OneHotEncoder
  from scipy.signal import correlate2d
  from simdna.simulations import loaded_motifs
label_desc: Use image node_id 6 for calling a global function with example usage: encode_fasta_sequences(fname) and returns: one_hot_encode