View source: R/filterProteins.R
onegroup_only | R Documentation |
This function outputs a list of proteins that are only expressed (present) in one user-specified group while not expressed (completely absent) in another user-specified group.
onegroup_only(
raw_df,
abs_group,
pres_group,
set_na = 0.34,
save = FALSE,
file_path = NULL
)
raw_df |
A |
abs_group |
Name of the group in which proteins are not expressed. |
pres_group |
Name of the group in which proteins are expressed. |
set_na |
The percentage of missing data allowed in |
save |
Logical. If |
file_path |
A string containing the directory path to save the file. |
Note: onegroup_only
function assumes that column names in
the raw_df
object provided as df
follow "Group_UniqueSampleID"
notation. (Use head(raw_df)
to check the structure of your
raw_df
object.)
Given a pair of groups, onegroup_only
function finds proteins that are only expressed in pres_group
while
completely absent or not expressed in abs_group
.
A text file containing majority protein IDs will be saved in a
temporary directory if file_path
is not specified.
A list of majority protein IDs.
Chathurani Ranathunge
# Generate a raw_df object with default settings. No technical replicates.
raw_df <- create_df(
prot_groups = "https://raw.githubusercontent.com/caranathunge/promor_example_data/main/pg1.txt",
exp_design = "https://raw.githubusercontent.com/caranathunge/promor_example_data/main/ed1.txt"
)
## Find the proteins only expressed in group L, but absent in group H.
onegroup_only(raw_df, abs_group = "H",
pres_group = "L")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.