-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtreesapp_analysis.R
More file actions
45 lines (23 loc) · 1.1 KB
/
treesapp_analysis.R
File metadata and controls
45 lines (23 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Analysing the TreeSAPP classifications in R
# Load any required packages
<Load required packages>
# Load metagenomic and metatranscriptomic TreeSAPP data
<Load data sets>
# Subset your data to the variables and marker genes of interest
<Filter to just XmoA>
# Reformat variables
<Split the taxonomic information in the data frame into separate ranks>
<Split the sample name into cruise ID and distinguish metatranscriptomes from metagenomes>
<Modify the water column depth data>
# Load the geochemical data set into a new data frame.
<Load geochemicals>
# Combine the TreeSAPP data with the geochemical measurements
<Use left_join to combine the two data frames>
# Visualize the taxonomic, functional and chemical data from Saanich Inlet
<Distribution of abundances of XmoA taxonomic orders at different depths>
<Barplot demonstrates relative change in proportions at different depths>
<Analyze the functional data>
<Analyze the chemical measurements>
<Combine the classifications and chemical data in one plot>
# Analyzing classifications for your group's reference package
<You code follows>