R Code Module 2

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/56

encourage image

There's no tags or description

Looks like no tags are added yet.

57 Terms

1
New cards

Vectorized operations

Apply functions to entire vectors efficiently

2
New cards

Conditional filtering

Select data based on complex conditions

3
New cards

Statistical analysis

Calculate means, variances, and other statistics

4
New cards

Quality control

Identify and handle problematic samples

5
New cards

&

AND operator used for multiple conditions

6
New cards

|

OR operator used for multiple conditions

7
New cards

subset()

Function used for cleaner syntax when filtering

8
New cards

which()

Function used to find row positions

9
New cards

%in%

Operator for matching against multiple values

10
New cards

gsub()

Function used with regex to remove or replace specific parts of a string

11
New cards

which.max()

Function used to find the index of the highest value

12
New cards

arrayInd()

Function used to convert a linear index to row and column positions

13
New cards

quantile()

Function used to find percentile thresholds

14
New cards

apply()

Function used to apply operations across rows using margin 1, and columns using margin 2

15
New cards

sapply()

Function used for simpler operations

16
New cards

lapply()

Function used when you need list output

17
New cards

strsplit()

Function used to parse strings into components

18
New cards

Mean difference

Metric that identifies genes with consistent expression changes between conditions

19
New cards

Variance

Metric that indicates how much expression varies within each condition

20
New cards

Combined analysis

Method prioritizing genes with large mean differences and low variance as reliable candidates for differential expression

21
New cards

aggregate()

Function used for grouped calculations

22
New cards

by()

Function used for applying functions by groups to calculate detailed statistics

23
New cards

tapply()

Function used for simple grouped operations

24
New cards

split()

Function used to divide data into group

25
New cards
Here is a comprehensive list of terms and definitions extracted from the "2B
pdf
26
New cards
P
values
27
New cards
Effect sizes
Magnitude of observed differences
28
New cards
Multiple testing
Adjusting for multiple comparisons in gene expression analysis
29
New cards
t.test()
A function used to determine if mean differences are statistically significant when comparing two groups
30
New cards
var.equal = FALSE
A parameter used for unequal variances, which is the default for gene expression
31
New cards
apply() with MARGIN = 1
A function used to test each gene or row individually at once
32
New cards
Log transformation (log2)
A technique used to stabilize variance and make highly skewed raw RNA
33
New cards
sapply()
A function used to extract p
34
New cards
p.adjust()
A function used to apply multiple testing corrections
35
New cards
Bonferroni correction
A very conservative multiple testing correction method
36
New cards
FDR (False Discovery Rate) correction
A multiple testing correction method that is more appropriate for genomics
37
New cards
ks.test() (Kolmogorov
Smirnov test)
38
New cards
KS statistic
A metric from normality testing where 0 indicates a perfect match to normal and 1 indicates it is completely different
39
New cards
Pearson correlation
A measurement of linear relationships between samples
40
New cards
Spearman correlation
A rank
41
New cards
cor()
A function used to calculate correlation coefficients
42
New cards
cor.test()
A function used for testing the significance of correlations
43
New cards
boxplot() with formula notation
Used for group comparisons to visualize gene expression differences
44
New cards
order()
Used to find the most significant gene by ordering results, such as by p
45
New cards
col parameter
Used to specify different colors by group in a plot
46
New cards
legend()
Used to add legends to plots to show the different groups or colors
47
New cards
Volcano plots
Visualizations that display statistical significance versus biological effect size for differential expression analysis
48
New cards
plot()
Used to create scatter plots, such as volcano plots showing fold change versus transformed p
49
New cards
log2()
Used for calculating fold changes in differential expression analysis
50
New cards
log10()
51
New cards
abline()
Used to add significance threshold lines, such as p=0.05 and 2
52
New cards
text()
Used to label significant genes on a volcano plot or to add correlation values as text overlay on a heatmap
53
New cards
Correlation heatmaps
Visualizations that show the relationships between samples
54
New cards
cor()
Used to calculate correlation matrices, such as using the Pearson method
55
New cards
image()
Used to create heatmap visualizations, which can be combined with text overlays
56
New cards
heat.colors()
Used to define color schemes for heatmap visualizations
57
New cards
axis()
Used to add axis labels to plots, such as adding sample names to a heatmap