MCPcopy Create free account
hub / github.com/arq5x/bedtools2 / MakeWindowsFromGenome

Method MakeWindowsFromGenome

src/windowMaker/windowMaker.cpp:45–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43
44
45void WindowMaker::MakeWindowsFromGenome(const string& genomeFileName) {
46
47 NewGenomeFile *_genome = new NewGenomeFile(genomeFileName);
48
49 // get a list of the chroms in the user's genome
50 vector<string> chromList = _genome->getChromList();
51
52 // process each chrom in the genome
53 for (size_t c = 0; c < chromList.size(); ++c) {
54 string chrom = chromList[c];
55
56 BED bed(chrom,0,_genome->getChromSize(chrom),chrom,"","");
57 MakeBEDWindow(bed);
58 }
59}
60
61void WindowMaker::MakeWindowsFromBED(string& bedFileName) {
62 BedFile bf(bedFileName);

Callers

nothing calls this directly

Calls 3

getChromListMethod · 0.80
sizeMethod · 0.45
getChromSizeMethod · 0.45

Tested by

no test coverage detected