nanxstats / protr

🧬 Toolkit for generating various numerical features of protein sequences
https://nanx.me/protr/
Other
52 stars 13 forks source link

extractMoran results are (1) longer than documentation claims (2) inconveniently structured #21

Closed malcook closed 6 years ago

malcook commented 6 years ago

The extractMoran Documentation reads:

Value A length nlag named vector

But in fact the length of the value is nlag * length(props).

That said, I wish there was a version of extractMoran that did NOT do this at before returning a value:

Moran = unlist(Moran)
names(Moran) = as.vector(t(outer(props, paste(".lag", 1:nlag, sep = ""), paste, sep = "")))

But instead simply did

names(Moran)<-props

As written, it makes it difficult to recover the values for each property for which the correlation is computed.