-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPartialAlignment.java
More file actions
41 lines (34 loc) · 1.14 KB
/
PartialAlignment.java
File metadata and controls
41 lines (34 loc) · 1.14 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
/*
* Peter Edge
* CSCI 5481 Final Project
*
* This file contains the Partial Alignment class.
* This class is used to hold info about a read that partially maps to an exon.
*/
import java.io.FileNotFoundException;
import java.io.UnsupportedEncodingException;
import java.io.IOException;
import java.util.ArrayList;
import java.lang.StringBuilder;
public class PartialAlignment {
// info about the exon and read that comprise the partial alignment
String exonHeader;
Integer exonIndex;
String readHeader;
// is the partial alignment from a reversed read?
Boolean isReversed;
// start and end indices on the original read and exon
Integer overhang;
PartialAlignment(){};
PartialAlignment(String eh, Integer ei, String rh, boolean ir, Integer oh){
exonHeader = eh;
exonIndex = ei;
readHeader = rh;
isReversed = ir;
overhang = oh;
}
@Override
public String toString(){
return ("exonHeader: " + exonHeader + "\n" + "exonIndex: " + exonIndex + "\n" + "readHeader: " + readHeader + "\n" + "isReversed: " + isReversed + "\n" + "overhang: " + overhang);
}
}