Skip to content

Commit f245983

Browse files
committed
v11.5 - fixed: reading .fai file for non-human genomes
1 parent c4e299f commit f245983

File tree

6 files changed

+6
-4
lines changed

6 files changed

+6
-4
lines changed

src/BAFpileup.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ void BAFpileup::createBedFileWithChromosomeLengths(std::string bedFileWithRegion
211211
name = strs[0];
212212
value = atoi(strs[1].c_str());
213213
}
214-
if (strs.size()>=3 && strs[0].substr(0,3)!="chr") {
214+
if (strs.size()>=3 && strs[0].substr(0,3)!="chr" && !isFai) {
215215
name = strs[1];
216216
value = atoi(strs[2].c_str());
217217
}

src/GenomeCopyNumber.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ void GenomeCopyNumber::fillMyHash(std::string const& mateFileName ,std::string c
371371
cout << normalNumberOfPairs_<< " reads used to compute copy number profile\n";
372372
if (normalNumberOfPairs_==0) {
373373
cerr << "\nError: FREEC was not able to extract reads from " << mateFileName;
374-
cerr << "\n\nCheck your parameters: inputFormat and matesOrientation\n";
374+
cerr << "\n\nCheck your parameters: inputFormat and mateOrientation\n";
375375
cerr << "Use \"matesOrientation=0\" if you have single end reads\n";
376376
cerr << "Check the list of possible input formats at http://bioinfo-out.curie.fr/projects/freec/tutorial.html#CONFIG\n\n";
377377

src/freec

6.71 KB
Binary file not shown.

src/main.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,8 @@ int main(int argc, char *argv[])
275275
std::string sample_MateCopyNumberFile = "";
276276
string sample_inputFormat = std::string(cf.Value("sample","inputFormat",""));
277277
std::string sample_mateOrientation = (std::string)cf.Value("sample","mateOrientation","0");
278+
sample_mateOrientation = (std::string)cf.Value("sample","matesOrientation",sample_mateOrientation);
279+
278280

279281
if (has_sample_MateFile) {
280282
sample_MateFile = std::string(cf.Value("sample","mateFile")) ;

src/myFunc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ void readFileWithGenomeInfo(const std::string &chrLenFileName, std::vector<std::
322322
name = strs[0];
323323
value = atoi(strs[1].c_str());
324324
}
325-
if (strs.size()>=3 && strs[0].substr(0,3)!="chr") {
325+
if (strs.size()>=3 && strs[0].substr(0,3)!="chr" && !isFai) {
326326
name = strs[1];
327327
value = atoi(strs[2].c_str());
328328
}

src/version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#define VERSION_H
44

55
const double VERSION_OFFSET = 3;
6-
const double FREEC_VERSION = 11.4;
6+
const double FREEC_VERSION = 11.5;
77
const double CONTROL_FREEC_VERSION = FREEC_VERSION - VERSION_OFFSET;
88

99
#endif

0 commit comments

Comments
 (0)