xchrom.pp.process_test_dual
- xchrom.pp.process_test_dual(ad_atac: str | Path | AnnData, input_fasta: str | Path, output_path: str | Path = './test_data/')[source]
Generate XChrom train set and test set from 2 datasets, to generate XChrom test inputs.
- Parameters:
ad_atac (str or Path or anndata.AnnData) – scATAC anndata file path, need to be processed by scanpy’s filter_genes and filter_cells functions, get .obs[‘n_genes’]
input_fasta (str or Path) – genome fasta file path
output_path (str or Path, optional) – output path, default is ‘./test_data/’
- Returns:
ad
- Return type:
The original atac anndata object