nvelden / geneviewer

An R package designed for drawing gene arrow maps
https://nvelden.github.io/geneviewer/
Other
26 stars 4 forks source link

strand error #5

Closed Jessica1080 closed 5 months ago

Jessica1080 commented 5 months ago

Really liking this package so far.

Getting an error when running the BlastP function:

GC_chart( data = BlastP_results, cluster = "cluster", strand = "strand", group = "BlastP", height = "400px" ) %>% GC_clusterLabel() %>% GC_legend(FALSE)

Error in add_strand(data, strand) : Invalid strand values found. Valid values are 1/forward or -1/0/reverse.

If I remove the strand parameter, it works, but then the genes are in the incorrect orientation. Also tried changing the forward/reverse to 1/-1 or 0 and still got the same error.

nvelden commented 5 months ago

Are you using the latest version on github? In earlier versions "complement" was not accepted as a valid strand value.

Jessica1080 commented 5 months ago

It shows 0.1.6 in my workstation, I believe that's the latest version from github. I initially thought the complement was the problem too since it wasn't listed as an option in the error, but when I changed the "complement" to "reverse" I still got the error.

Jessica1080 commented 5 months ago

AH I figured it out - one line had "join" in the strand column instead of forward or complement! Not sure what caused that during the Blast step, but changing it fixes the problem.