Learn R Programming

promor (version 0.2.1)

rem_sample: Remove user-specified samples

Description

This function removes user-specified samples from the data frame.

Usage

rem_sample(raw_df, rem)

Value

A raw_df object.

Arguments

raw_df

A raw_df object.

rem

Name of the sample to remove.

Author

Chathurani Ranathunge

Details

  • 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.

See Also

corr_plot, create_df

Examples

Run this code
## 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")

Run the code above in your browser using DataLab