Debian Codegraph @

src/dr/evolution/LinkedGroup.java

raw symbols SCIP
1 /*
2 * LinkedGroup.java
3 *
4 * Copyright (c) 2002-2015 Alexei Drummond, Andrew Rambaut and Marc Suchard
5 *
6 * This file is part of BEAST.
7 * See the NOTICE file distributed with this work for additional
8 * information regarding copyright ownership and licensing.
9 *
10 * BEAST is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU Lesser General Public License as
12 * published by the Free Software Foundation; either version 2
13 * of the License, or (at your option) any later version.
14 *
15 * BEAST is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License for more details.
19 *
20 * You should have received a copy of the GNU Lesser General Public
21 * License along with BEAST; if not, write to the
22 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
23 * Boston, MA 02110-1301 USA
24 */
25
26 package dr.evolution;
27
28 import dr.evolution.util.TaxonList;
29 import dr.util.Identifiable;
30
31 /**
32 * @author Aaron Darling (koadman)
33 */
34 public class LinkedGroup implements Identifiable {
35
36 protected String id = null;
37 TaxonList taxa;
38 double probability; // probability that reads in this group are linked to each other
39
40 public LinkedGroup(TaxonList taxa, double probability){
41 this.taxa = taxa;
42 this.probability = probability;
43 }
44
45 public LinkedGroup(TaxonList taxa){
46 // default constructor assumes probability of linkage is 1
47 this(taxa, 1.0);
48 }
49
50 public double getLinkageProbability(){
51 return probability;
52 }
53 public TaxonList getLinkedReads(){
54 return taxa;
55 }
56
57
58 public String getId() {
59 return id;
60 }
61
62
63 public void setId(String id) {
64 this.id = id;
65 }
66
67 }