igvteam / igv-reports

Python application to generate self-contained pages embedding IGV visualizations, with no dependency on original input files.
MIT License
352 stars 53 forks source link

create_report is not updating the info-columns flag when passing custom names #117

Open projassanchez opened 2 months ago

projassanchez commented 2 months ago

Hello, I'm having issues to update the main header in the html table when I pass custom info-columns information:

create_report test.bed --genome hg38 --fasta hg38.fasta --info-columns CHROM START END VC_INFO TYPE --tracks myfile.vcf.gz mybam.bam --output report.html

The html report still have 'Chrom Start End Name' in the header.

Could you please assist on this?

Thank you

jrobinso commented 2 months ago

Bed files ("test.bed") do not have info columns.

projassanchez commented 2 months ago

But you propose an example to modify it here: echo bed create_report test/data/variants/variants.bed \ --genome hg38 \ --flanking 1000 \ --info-columns GENE TISSUE TUMOR COSMIC_ID GENE SOMATIC \ --tracks test/data/variants/variants.bed test/data/variants/recalibrated.bam \ --output example_genome.html

So I assume it is not possible to change it then?

jrobinso commented 2 months ago

The example is not correct, thanks for pointing that out. I will change the example.

info columns apply to VCF files (the INFO fields).

projassanchez commented 2 months ago

Fantastic, thank you!