rem_sample {promor} | R Documentation |
Remove user-specified samples
Description
This function removes user-specified samples from the data frame.
Usage
rem_sample(raw_df, rem)
Arguments
raw_df |
A |
rem |
Name of the sample to remove. |
Details
rem_sample
assumes that sample names follow the "Group_UniqueSampleID_TechnicalReplicate" notation (Usehead(raw_df)
to see the structure of theraw_df
object.)If all the technical replicates representing a sample needs to be removed, provide "Group_UniqueSampleID" as
rem
.If a specific technical replicate needs to be removed in case it shows weak correlation with other technical replicates for example, you can remove that particular technical replicate by providing "Group_UniqueSampleID_TechnicalReplicate" as
rem
.
Value
A raw_df
object.
Author(s)
Chathurani Ranathunge
See Also
Examples
## Use a data set containing technical replicates to create a raw_df object
raw_df <- create_df(
prot_groups = "https://raw.githubusercontent.com/caranathunge/promor_example_data/main/pg2.txt",
exp_design = "https://raw.githubusercontent.com/caranathunge/promor_example_data/main/ed2.txt",
tech_reps = TRUE
)
# Check the first few rows of the raw_df object
head(raw_df)
## Remove all technical replicates of "WT_4"
raw_df1 <- rem_sample(raw_df, "WT_4")
## Remove only technical replicate number 2 of "WT_4"
raw_df2 <- rem_sample(raw_df, "WT_4_2")
[Package promor version 0.2.1 Index]