Open daewoooo opened 1 year ago
Plotting of more than one gene is wonky
test_multiple_genes <- GenomicRanges::GRanges( seqnames = 'query.region', ranges = IRanges::IRanges(start = c(16300000,16350000,16400000,16350000,1641000,16450000), end = c(16320000,16370000,16420000,16360000,16420000,16470000)), ID = c("gene1","gene1","gene1","gene2","gene2","gene2"))
addAnnotation(ggplot.obj = plt, annot.gr = test_multiple_genes, coordinate.space = "query", shape = 'rectangle', annotation.group = 'ID', offset.annotation = TRUE, fill.by = 'ID', annotation.label = "query_genes")
Problem can be solved for now by increasing annotation.level = 0.1
addAnnotation(ggplot.obj = plt, annot.gr = test_multiple_genes, coordinate.space = "query", shape = 'rectangle', annotation.group = 'ID', offset.annotation = TRUE, fill.by = 'ID', annotation.label = "query_genes", annotation.level = 0.1)
Plotting of more than one gene is wonky
test_multiple_genes <- GenomicRanges::GRanges( seqnames = 'query.region', ranges = IRanges::IRanges(start = c(16300000,16350000,16400000,16350000,1641000,16450000), end = c(16320000,16370000,16420000,16360000,16420000,16470000)), ID = c("gene1","gene1","gene1","gene2","gene2","gene2"))
addAnnotation(ggplot.obj = plt, annot.gr = test_multiple_genes, coordinate.space = "query", shape = 'rectangle', annotation.group = 'ID', offset.annotation = TRUE, fill.by = 'ID', annotation.label = "query_genes")
Problem can be solved for now by increasing annotation.level = 0.1
addAnnotation(ggplot.obj = plt, annot.gr = test_multiple_genes, coordinate.space = "query", shape = 'rectangle', annotation.group = 'ID', offset.annotation = TRUE, fill.by = 'ID', annotation.label = "query_genes", annotation.level = 0.1)