jtlovell / GENESPACE

Other
184 stars 24 forks source link

exclude some chromosomes in riparian plotting #88

Closed xiaoyezao closed 1 year ago

xiaoyezao commented 1 year ago

Hi John,

How do I exclude some chromosomes in riparian plotting? I find in some genome assemblies there is a Chr0 which is an artificial one by combining unanchored contigs. I want to include these in Orthofinder but leave them out in the plotting.

Screenshot 2023-05-01 at 10 02 44
jtlovell commented 1 year ago

Short answer, no, you can't exclude chromosomes ... you can use the plot_riparian(..., highlightBed = data.frame, ...)argument to specify regions of interest and supply it with all the non-chr0 chrs, but this will not necessarily be accurate.

Also, I would highly recommend not building genomes this way - combining unscaffolded contigs into a pseudo-scaffold. Its a problem for many reasons downstream (this is one of them). You can still recover this analysis though ... I'd suggest splitting the chr0's into their contigs (should be easy to do with N's in the gaps), re-building the gff with the split contigs gene coordinates and re-running genespace. The orthofinder run should not need to be changed.