-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathReadob.java
More file actions
74 lines (61 loc) · 1.34 KB
/
Readob.java
File metadata and controls
74 lines (61 loc) · 1.34 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
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
// package packlh000;
// Remainder change hash tables to put as key the entire read name
public class Readob
{
String namefull, name, seq, qual;
public Readob(String namefull, String name, String seq, String qual)
{
super();
int l = seq.length();
while (l > 0) {
char c = qual.charAt(l - 1);
// System.out.println(c + " " + (Integer.valueOf(c) - 33));
if (Integer.valueOf(c) - 33 > 2) break;
l--;
}
this.namefull = namefull;
this.name = name;
this.seq = seq.substring(0,l);
this.qual = qual.substring(0,l);
}
public Readob()
{
super();
this.name = "";
this.seq = "";
this.qual = "";
this.namefull = "";
}
public String getNamefull()
{
return namefull;
}
public void setNamefull(String namefull)
{
this.namefull = namefull;
}
public String getName()
{
return name;
}
public void setName(String name)
{
this.name = name;
}
public String getSeq() {
return seq;
}
public void setSeq(String seq) {
this.seq = seq;
}
public String getQual() {
return qual;
}
public void setQual(String qual) {
this.qual = qual;
}
@Override public String toString()
{
return "\nread object:\ncomplete name=" + namefull + "\nname=" + name + "\nseq=" + seq + "\nqual=" + qual+"\n";
}
}