spflanagan / gwscar Goto Github PK
View Code? Open in Web Editor NEWThis repository contains an R package with a number of population genomics tools, including a wrapper that will run an Fst-based genome-wide selection components analysis
This repository contains an R package with a number of population genomics tools, including a wrapper that will run an Fst-based genome-wide selection components analysis
Hello.
I am trying to do a simple pairwise.pst. First column contains population ID (which population that row, the individual, belongs to) and the second is the trait values. While the data set up is straight forward, I keep getting the same error:
> Error in .rowNamesDF<-
(x, value = value) : invalid 'row.names' length
This is my code so far for my given dataset.
#subset to get a female dataset
morph.f <- subset(morph.data, Sex == "F")
str(morph.f)#TA Tarsus length sub set dataset
morph.f.ta <- morph.f[,c(2,8)]pops <-c("Hamelin","Hybrid Zone","Indulkanna","Peron","Raglessi")
pairwise.pst(morph.f.ta, pop.order = pops)
My experimentation so far to try and resolve this issue, but all yield the same error message
#reset row.names with a length equal to the number of rows in the data frame
rownames(morph.f) = seq(length = nrow(morph.f))
row.names(morph.f)
I am unsure how to proceed or fix this issue as the dataset and function input is so simple, that there is little room to try anything else.
Any advice?
Cheers. Aline.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.