tirank.SCSTpreprocess.merge_datasets
- tirank.SCSTpreprocess.merge_datasets(bulkClinical_1, bulkClinical_2, bulkExp_1, bulkExp_2)[source]
Merges two bulk expression and clinical datasets, finding intersecting genes.
- Parameters:
bulkClinical_1 (pd.DataFrame) – Clinical data for the first cohort.
bulkClinical_2 (pd.DataFrame) – Clinical data for the second cohort.
bulkExp_1 (pd.DataFrame) – Expression data for the first cohort (genes x samples).
bulkExp_2 (pd.DataFrame) – Expression data for the second cohort (genes x samples).
- Returns:
- A tuple containing:
pd.DataFrame: The merged expression DataFrame.
pd.DataFrame: The merged clinical DataFrame.
Or returns 0 if no intersecting genes are found.
- Return type:
tuple