-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJunction.java
More file actions
35 lines (28 loc) · 889 Bytes
/
Junction.java
File metadata and controls
35 lines (28 loc) · 889 Bytes
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
/*
* Peter Edge
* CSCI 5481 Final Project
*
* This file contains the Junction class.
* It holds information about when two partial alignment objects
* are found to be the result of a junction read.
*/
public class Junction {
// index of the left (upstream) and right (downstream) exon
Integer leftExon;
Integer rightExon;
// amount of bases that the read has on the edge of exon
Integer leftOverhang;
Integer rightOverhang;
Junction(){};
Junction(Integer le, Integer re, Integer lo, Integer ro){
leftExon = le;
rightExon = re;
leftOverhang = lo;
rightOverhang = ro;
}
@Override
public String toString(){
// returns a string that resembles a single row of sample output for toy dataset
return (leftExon + "\t" + rightExon + "\t" + leftOverhang + "\t" + rightOverhang);
}
}