Question: When viewing my BAM files in IGV-Web, the specific INDEL length information is not displayed, which is inconsistent with the IGV-desktop version. How can I make it consistent with the IGV-desktop version display? Looking for your reply!
igv-web snapshot:

igv-desktop:

The key difference is that IGV-Web has slightly different settings and capabilities compared to the desktop version. So how to modify the settings to match the desktop version's INDEL display?
here is my python code about igv display:
def send_command(sock, command):
print(f"发送命令: {command}")
sock.send(command.encode() + b'\n')
return True
send_command(sock, f'load {bam_file}')
send_command(sock, 'preference SAM.SHOW_SMALL_INDELS true')
send_command(sock, 'preference SAM.SMALL_INDEL_BP_THRESHOLD 50')
for chrom, start, end, name in region_list:
start, end = start - (end-start)//2, end + (end-start)//2
send_command(sock, f'goto {chrom}:{start}-{end}')
send_command(sock, 'snapshotSize 800')
send_command(sock, 'collapse')
snapshot_file = f'{output_dir}/{name}_{index}.png'
send_command(sock, f'snapshot {snapshot_file}')