-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdna_sequence.java
More file actions
61 lines (43 loc) · 1.36 KB
/
Copy pathdna_sequence.java
File metadata and controls
61 lines (43 loc) · 1.36 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
package bioinformatics;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.time.LocalDate;
public class dna_sequence {
public static void main(String[] args) throws IOException{
System.out.println("");
System.out.println("=============== DNA Sequence Analysis ===============");
BufferedReader br = new BufferedReader( new FileReader( args[0]));
LocalDate date = LocalDate.now();
GC_count gc_content = new GC_count();
Reverse_complement rc = new Reverse_complement();
Kmer k_mer = new Kmer();
Motif motif_content = new Motif();
//ORF orf_content = new ORF();
ORF_Testing orf_content = new ORF_Testing();
String lines ;
while( (lines = br.readLine()) != null ) {
if ( lines.startsWith(">")) {
continue;
}
else {
System.out.println("");
// GC count in %
gc_content.gc_count(lines);
// Reverse complement
rc.reverse_c(lines);
// K-mer
k_mer.kmer(lines);
// Motif
motif_content.motif(lines);
// ORF
orf_content.ORF(lines);
System.out.println("");
}
} br.close();
System.out.println(" Date: " + date);
System.out.println("");
System.out.println(" ================== SUCCESSFULLY DONE ==================");
System.out.println("");
}
}