jianhong / cleanUpdTSeq

This package classifies putative polyadenylation sites as true or false/internally oligodT primed
0 stars 0 forks source link

A minor bug in buildFeatureVector() function #2

Open haibol2016 opened 2 years ago

haibol2016 commented 2 years ago

There is a bug in https://github.com/jianhong/cleanUpdTSeq/blob/21adecab9138ff9d0c7874b45edb98ecb528a8b0/R/03.buildFeatureVector.R#L141. This line causes a problem when there is only one GRange provided by the argument peaks.

 baseOnly = TRUE)[, -5])

should be changed to

 baseOnly = TRUE)[, -5, drop = FALSE])