Coder Social home page Coder Social logo

spflanagan / gwscar Goto Github PK

View Code? Open in Web Editor NEW
7.0 7.0 1.0 5.12 MB

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

R 100.00%

gwscar's People

Contributors

spflanagan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

dyerlab

gwscar's Issues

Pairwise.pst function - row.names error

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

  1. nrow = row.names.

#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)

  1. Having a mini dataset which contains only one trait value per population

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.