Debian Codegraph @

uk/ac/babraham/FastQC/Sequence/Sequence.java

raw symbols SCIP
1 /**
2 * Copyright Copyright 2010-17 Simon Andrews
3 *
4 * This file is part of FastQC.
5 *
6 * FastQC is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * FastQC is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with FastQC; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20 package uk.ac.babraham.FastQC.Sequence;
21
22 public class Sequence {
23
24 private String sequence;
25 private String quality;
26 private String id;
27 private SequenceFile file;
28 private String colorspace;
29 private boolean isFiltered;
30
31 public Sequence (SequenceFile file,String sequence, String quality, String id) {
32 this.id = id;
33 this.file = file;
34 this.sequence = sequence.toUpperCase();
35 this.quality = quality;
36 this.colorspace = null;
37 this.isFiltered = false;
38 }
39
40 public Sequence (SequenceFile file,String sequence, String colorspace, String quality, String id) {
41 this.id = id;
42 this.file = file;
43 this.sequence = sequence;
44 this.quality = quality;
45 this.colorspace = colorspace;
46 }
47
48 public void setIsFiltered (boolean isFiltered) {
49 this.isFiltered = isFiltered;
50 }
51
52 public boolean isFiltered () {
53 return isFiltered;
54 }
55
56 public SequenceFile file () {
57 return file;
58 }
59
60 public String getSequence () {
61 return sequence;
62 }
63
64 public String getColorspace () {
65 return colorspace;
66 }
67
68 public String getQualityString () {
69 return quality;
70 }
71
72 public String getID () {
73 return id;
74 }
75
76 }