cellink.tl.external.read_tensorqtl_results#
- cellink.tl.external.read_tensorqtl_results(prefix=None, mode=None, cis_output=None, interaction_df=None)#
Read TensorQTL result files.
- Parameters:
prefix (str, optional) – File prefix used for generating intermediate input/output files. Required for most modes.
mode (str) – Mode of TensorQTL run (e.g., “cis_nominal”, “cis”, “trans”, “cis_susie”).
cis_output (str or bool, default=True) –
If a string, specifies the path to the cis_output file for modes like
cis_independentorcis_susie.If True, the function will automatically attempt to find the cis_output file in
file_paths.If False, the cis_output will not be read.
interaction_df (str or bool, default=True) –
If a string, specifies the path to the interaction terms file for
cis_nominalmode.If True, the function will attempt to automatically find the interaction file in
file_paths.If False, the interaction file will not be read.
- Return type:
Union[DataFrame,Tuple[DataFrame,DataFrame,DataFrame],Tuple[dict,DataFrame]]- Returns:
pd.DataFrame or tuple Parsed results depending on the mode.