Closed mobilegenome closed 5 years ago
I think the underlying issue is that ggseqlogo doesn't work as you might expect it to.
In fact, it does not even require passing data to ggplot.
Try this as a workaround:
ggseqlogo(with(df,split(TSD,sprintf('TSD_length=%s',TSD_length))))
Hi,
I have a dataset with TSDs of different lengths and wanted to create sequence logo for each length bin. I think it would be very handy to use the ggplot's facet functionality to do this. However, with the current implementation this raises an error for different sequence length.
Error in letterMatrix(seqs) : Sequences in alignment must have identical lengths
I am not sure how difficult it is to implement this behaviour but it would help tremendously to explore heterogeneous datasets, as from TE calling.
Best
Fritjof
This is my data:
And my ggplot call: