Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation: subset examples for pData #163

Open
wyoibc opened this issue Oct 20, 2019 · 0 comments
Open

Documentation: subset examples for pData #163

wyoibc opened this issue Oct 20, 2019 · 0 comments

Comments

@wyoibc
Copy link

wyoibc commented Oct 20, 2019

It is not clear how to subset the ballgown instance based on phenotypic data. The examples in subset documentation do not provide a clear example. Let's say the data consists of 18 samples as follows:

pheno

      sample lifestage cond
1  samp01     adult  con
2  samp02     adult  con
3  samp03     adult  con
4  samp04     adult  trt
5  samp05     adult  trt
6  samp06     adult  trt
7  samp07       old  con
8  samp08       old  con
9  samp09       old  con
10 samp10       old  trt
11 samp11       old  trt
12 samp12       old  trt
13 samp13       ped  con
14 samp14       ped  con
15 samp15       ped  con
16 samp16       ped  trt
17 samp17       ped  trt
18 samp18       ped  trt

I want to do a pairwise comparison between adult control and adult treatment. But I can't figure out how to subset the data.

adult <- subset(bg, 'lifestage == "adult"', genomesubset=FALSE)

subset must be logical

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant