-
Notifications
You must be signed in to change notification settings - Fork 1
/
attributes.R
59 lines (46 loc) · 1.1 KB
/
attributes.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
rppa.set.attributes <- function(spots)
{
cat("Title of the Slide / Experiment?")
title <- readline()
cat("Antibody?")
antibody <- readline()
cat("Blocks per row?")
blocksPerRow <- readline()
attr(spots, "title") <- title
attr(spots, "blocksPerRow") <- as.numeric(blocksPerRow)
attr(spots, "antibody") <- antibody
#cat("Do you want to apply vertical and horizontal shifts? yes/no")
#if(readline() == "yes")
#{
# spots <- rppa.vshift(spots)
# spots <- rppa.hshift(spots)
#}
return(spots)
}
rppa.set.title <- function(spots, title)
{
attr(spots, "title") <- title
return (spots)
}
rppa.get.title <- function(spots)
{
attr(spots, "title")
}
rppa.set.blocksPerRow <- function(spots, blocksPerRow)
{
attr(spots, "blocksPerRow") <- blocksPerRow
return(spots)
}
rppa.get.blocksPerRow <- function(spots)
{
attr(spots, "blocksPerRow")
}
rppa.set.antibody <- function(spots, antibody)
{
attr(spots, "antibody") <- antibody
return(spots)
}
rppa.get.antibody <- function(spots)
{
attr(spots, "antibody")
}