This function extracts the trimmed SuSiE results from a finemapping data object,
typically obtained from a finemapping RDS file. It's designed to work with
the method layer of these files, often named as 'method_RAISS_imputed', 'method',
or 'method_NO_QC'. This layer is right under the study layer.
Usage
get_susie_result(con_data)
Arguments
- con_data
List. The method layer data from a finemapping RDS file.
Value
The trimmed SuSiE results (`$susie_result_trimmed`) if available,
otherwise NULL.
Details
The function checks if the input data is empty or if the `$susie_result_trimmed`
element is missing. It returns NULL in these cases. If `$susie_result_trimmed`
exists and is not empty, it returns this element.
Note
This function is particularly useful when working with large datasets
where not all method layers may contain valid SuSiE results or method layer.