Ld
plot_ld_matrix(ldm, variant_subset=None, start_row=None, end_row=None, symmetric=False, cmap='OrRd', include_colorbar=True)
¶
Plot a heatmap representing the LD matrix or portions of it.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
ldm
|
LDMatrix
|
An instance of |
required |
variant_subset
|
A list of variant rsIDs to subset the LD matrix. |
None
|
|
start_row
|
The starting row index for the LD matrix plot. |
None
|
|
end_row
|
The ending row index (not inclusive) for the LD matrix plot. |
None
|
|
symmetric
|
If True, plot the symmetric version of the LD matrix. Otherwise, plot the upper triangular part. |
False
|
|
cmap
|
The color map for the LD matrix plot. |
'OrRd'
|
|
include_colorbar
|
If True, include a colorbar in the plot. |
True
|