Entering edit mode
I am trying to plot counts only for wildtype and one of three mutant conditions but I don't know how to access these values form dds. My colData looks like this:
> samples condition batch
1 C10_1 C10 b_1
2 C10_2 C10 b_2
3 C10_3 C10 b_3
4 C3_1 C3 b_1
5 C3_2 C3 b_2
6 C3_3 C3 b_3
7 C6_1 C6 b_1
8 C6_2 C6 b_2
9 C6_3 C6 b_3
10 WT_1 WT b_1
11 WT_2 WT b_2
12 WT_3 WT b_3
Could someone help me on how to only plot counts for C3 samples and WT samples?
I woudl like to make several plots for some genes (one plot per gene) but only for samples C3_1, C3_2, C3_3 and WT_1, WT_2, WT_3. My problem is how to access the specific samples, now I am using:
And what I get is a plot for each condition (WT, C3, C6 and C10).
You need to filter the samples you want to keep before creating the ggplot
I am not sure how to access the samples form dds, could you please explain how to filter? edit: I found out :)
I would create a
dds.sub
object by selecting the columns of interest :thank you!