View source: R/handleTechReps.R
rem_sample | R Documentation |
This function removes user-specified samples from the data frame.
rem_sample(raw_df, rem)
raw_df |
A |
rem |
Name of the sample to remove. |
rem_sample
assumes that sample names follow the
"Group_UniqueSampleID_TechnicalReplicate" notation (Use head(raw_df)
to see the structure of the raw_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
.
A raw_df
object.
Chathurani Ranathunge
corr_plot
, create_df
## 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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.