sushie.io.output_weights(result: List[SushieResult], meta_pip: List[Array] | None, snps: DataFrame, output: str, trait: str, compress: bool, method_type: str) DataFrame[source]

Output prediction weights file *weights.tsv (see Prediction Weights).

Parameters:
result: List[SushieResult]

The sushie inference result.

meta_pip: List[Array] | None

The meta-analyzed PIPs from Meta SuShiE.

snps: DataFrame

The SNP information table.

output: str

The output file prefix.

trait: str

The trait name better for post-hoc analysis index.

compress: bool

The indicator whether to compress the output files.

method_type: str

Which method the result belongs to: sushie, mega, or meta.

Returns:

A data frame that outputs to the *weights.tsv file (pd.DataFrame).

Return type:

pd.DataFrame


Last update: Oct 27, 2024