assert_adata

besca.Import.assert_adata(adata: AnnData, attempFix=True)[source]

Asserts that an adata object is containing information needed for the besca pipeline to run and export information. This is particularly usefull when loading public data The parameter attempFix will try to fix the issue by itself. However, we advise the user to check by himself what is the leading problem.

Parameters:
  • adata (AnnData) –

  • attempFix (bool if True will transform adata object to match requirements.) –

Return type:

returns an AnnData object