This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public T[] generate_crc_table3(T)(T polynomial, T initialValue, bool refin) { | |
T[] table = new T[](256); | |
int i, j; | |
T bit, crc; | |
auto order = T.sizeof * 8; | |
for(i = 0; i < 256; i++) { | |
crc = cast(T)i; | |
if(refin) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import std.stdio; | |
import std.string; | |
import std.algorithm; | |
import std.regex; | |
import std.traits; | |
int gcCount = 0; | |
int totalBaseCount = 0; | |
void main() { | |
File file = File("Homo_sapiens.GRCh37.67.dna_rm.chromosome.Y.fa","r"); |