You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am attempting to plot a single base to represent overall nucleotide frequency is a group of sequences. I already have the program setup to get the frequency values into a matrix as shown below:
test
[,1]
A 9765608
C 6271383
G 5865611
U 12051811
When I attempt to plot this, I get this error:
ggseqlogo(test, method='p', ncol=1, seq_type="rna")
Error in apply(pwm, 2, function(col) sum(col * log2(col), na.rm = T)) :
dim(X) must have a positive length
It seems to be an issue with the matrix only having one column, since if I add a column of arbitrary values, I am able to plot it. For example, using the matrix shown below:
test2
[,1] [,2]
A 9765608 1
C 6271383 2
G 5865611 3
U 12051811 4
Is there any way around this to be able to plot a single base from a frequency matrix? Thank you!
The text was updated successfully, but these errors were encountered:
I am attempting to plot a single base to represent overall nucleotide frequency is a group of sequences. I already have the program setup to get the frequency values into a matrix as shown below:
When I attempt to plot this, I get this error:
It seems to be an issue with the matrix only having one column, since if I add a column of arbitrary values, I am able to plot it. For example, using the matrix shown below:
Is there any way around this to be able to plot a single base from a frequency matrix? Thank you!
The text was updated successfully, but these errors were encountered: