INDEL length information cannot displayed

30 views
Skip to first unread message

胡恒

unread,
Nov 18, 2024, 11:49:27 PM11/18/24
to igv-help

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:

1_1362786_1363994_0.png

igv-desktop:

Snipaste_2024-11-19_12-45-41.png

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)//
    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}')

igv-help

unread,
Nov 19, 2024, 5:40:57 PM11/19/24
to igv-help
There aren't any equivalent igv-web settings for indels.   If you would like to request this or other igv-web enhancements please open an issue at https://github.com/igvteam/igv.js.    

Socket commands will not work for igv-webapp.

Reply all
Reply to author
Forward
0 new messages