Subsetting specific comparisons

10 views
Skip to first unread message

Majd Abdulghani

unread,
Sep 13, 2023, 9:57:21 AM9/13/23
to IsoformSwitchAnalyzeR
Hello!

I have 6 comparisons in my SwitchList, which means I can't create an overlap Venn diagram with extractSwitchOverlap() because it takes a maximum of 5 comparisons. Is there a way to subset 2-3 comparisons from my SwitchList? I couldn't figure out how to make it work with subsetSwitchAnalyzeRlist().

Thank you!
Majd

Kristoffer Vitting-Seerup

unread,
Sep 14, 2023, 4:34:25 AM9/14/23
to IsoformSwitchAnalyzeR

You would need to use subsetSwitchAnalyzeRlist() on both condition_1 and condition_2 in isoformFeatures entry of the of the switchAnalyzeRlist.

Majd Abdulghani

unread,
Sep 19, 2023, 7:48:08 AM9/19/23
to IsoformSwitchAnalyzeR
Gotcha. I did this and it worked:

subsettedList <- subsetSwitchAnalyzeRlist(
  switchAnalyzeRlist = SwitchList,
  subset = (ssSwitchList[["isoformFeatures"]]$condition_1 %in% c("NTC_noIR", "KD_noIR") &
              ssSwitchList[["isoformFeatures"]]$condition_2 %in% c("NTC_IR", "KD_noIR", "KD_IR"))
)

Reply all
Reply to author
Forward
0 new messages