-
Notifications
You must be signed in to change notification settings - Fork 0
/
2 General steps to conduct the mutation mapping analysis using Yeastspot3D.R
77 lines (66 loc) · 2.8 KB
/
2 General steps to conduct the mutation mapping analysis using Yeastspot3D.R
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# Note:
# This script is showing how to conduct the mutation mapping analysis for the small SNP dataset
data('gene_feature0')
data('snp_data')
mutated_gene <- annotateSNP(snp_input = snp_data, gene_feature = gene_feature0)
#-------------------------------------------------
# Mutation enrichment analysis
#------------------------------------------------
# first example
data('ResidueDistance_YPR184W')
mutated_gene1 <- filter(mutated_gene, Gene2 == 'YPR184W')
result0 <- clumpsAnalysis(gene0 = 'YPR184W',
SNPlist0 = mutated_gene1,
gene_annotation0 = gene_feature0,
pdb = ResidueDistance_YPR184W,
sstart0 = 2,
send0 = 1534,
input_dir= FALSE)
# print the mutation information for the input SNP list contained in the protein 3D structure
pdbID <- '2_1534_5d06.1.A_5b2453487f4bf94bf75ead43'
SNP_list <- printSNPforGene(gene0 = 'YPR184W',
SNPlist0 = mutated_gene1,
gene_annotation0 = gene_feature0,
pdbID0 = pdbID,
sstart0 = 2,
send0 = 1534)
# second example
data('ResidueDistance_YMR246W')
mutated_gene1 <- filter(mutated_gene, Gene2 == 'YMR246W')
result0 <- clumpsAnalysis(gene0 = 'YMR246W',
SNPlist0 = mutated_gene1,
gene_annotation0 = gene_feature0,
pdb = ResidueDistance_YMR246W,
sstart0 = 39,
send0 = 691,
input_dir= FALSE)
pdbID <- '39_691_5mst.1.A_5b41c4d68fd6f9da68b53e00'
SNP_list <- printSNPforGene(gene0 = 'YMR246W',
SNPlist0 = mutated_gene1,
gene_annotation0 = gene_feature0,
pdbID0 = pdbID,
sstart0 = 39,
send0 = 691)
#-------------------------------------------------
# Mutation hot spot analysis
#------------------------------------------------
# run the function
data('snp_YBR046C')
data('ResidueDistance_YBR046C')
outfile0 <- 'result/hot_spot_analysis'
dir.create(outfile0)
hotSpotAnalysis(
gene0 = "YBR046C",
SNPlist0 = snp_YBR046C,
gene_annotation0 = gene_feature0,
pdb = ResidueDistance_YBR046C,
sstart0 = 5, # coordinate of orginal protein residues sequence
send0 = 333, # coordinate of orginal protein residues sequence
qstart0 =1 , # coordinate of protein residues sequence in pdb file
qend0 = 329, # coordinate of protein residues sequence in pdb file
result_dir = outfile0,
input_dir=FALSE
)
# here save the installed R packages and its version to make sure the above steps could be re-produced
# library(hongR)
# print_R_package(output = "data/R_packages_for_Yeastspot3D.txt")