original_docstring:  Create a temporary directory and save a provided adata.
      Returns a tuple with the TemporaryDirectory, name of the saved file
      and a name for the future processed file
      
docstring: Create a temporary directory and save a provided adata.
  Returns a tuple with the TemporaryDirectory, name of the saved file
  and a name for the future processed file
docstring_tokens: Create a temporary directory and save a provided adata . Returns a tuple with the TemporaryDirectory name of the saved file and a name for the future processed file
code: def temp_save_adata(adata):
      ''' Create a temporary directory and save a provided adata.
      Returns a tuple with the TemporaryDirectory, name of the saved file
      and a name for the future processed file
      '''
  
      x = tempfile.TemporaryDirectory(prefix=TRANSFER_DIR, dir='./')
      infile = x.name + '/source_adata.h5ad'
      outfile = x.name + '/corrected_adata.h5ad'
      adata.write(infile, compression='lzf')
  
      # Need to return the TemporaryDirectory otherwise it leaves the
      # scope and directory gets deleted
      return (x, infile, outfile)
code_tokens: def temp_save_adata ( adata ) : x = tempfile . TemporaryDirectory ( prefix = TRANSFER_DIR , dir = './' ) infile = x . name + '/source_adata.h5ad' outfile = x . name + '/corrected_adata.h5ad' adata . write ( infile , compression = 'lzf' ) return ( x , infile , outfile )
short_docstring: Create a temporary directory and save a provided adata.
short_docstring_tokens: Create a temporary directory and save a provided adata .
comment: ''' Create a temporary directory and save a provided adata.
      Returns a tuple with the TemporaryDirectory, name of the saved file
      and a name for the future processed file
      '''$SEP$# Need to return the TemporaryDirectory otherwise it leaves the$SEP$# scope and directory gets deleted