Skip to content

Commit

Permalink
v11.5 - fixed: reading .fai file for non-human genomes
Browse files Browse the repository at this point in the history
  • Loading branch information
valeu committed Aug 5, 2018
1 parent c4e299f commit f245983
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/BAFpileup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ void BAFpileup::createBedFileWithChromosomeLengths(std::string bedFileWithRegion
name = strs[0];
value = atoi(strs[1].c_str());
}
if (strs.size()>=3 && strs[0].substr(0,3)!="chr") {
if (strs.size()>=3 && strs[0].substr(0,3)!="chr" && !isFai) {
name = strs[1];
value = atoi(strs[2].c_str());
}
Expand Down
2 changes: 1 addition & 1 deletion src/GenomeCopyNumber.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ void GenomeCopyNumber::fillMyHash(std::string const& mateFileName ,std::string c
cout << normalNumberOfPairs_<< " reads used to compute copy number profile\n";
if (normalNumberOfPairs_==0) {
cerr << "\nError: FREEC was not able to extract reads from " << mateFileName;
cerr << "\n\nCheck your parameters: inputFormat and matesOrientation\n";
cerr << "\n\nCheck your parameters: inputFormat and mateOrientation\n";
cerr << "Use \"matesOrientation=0\" if you have single end reads\n";
cerr << "Check the list of possible input formats at http://bioinfo-out.curie.fr/projects/freec/tutorial.html#CONFIG\n\n";

Expand Down
Binary file modified src/freec
Binary file not shown.
2 changes: 2 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,8 @@ int main(int argc, char *argv[])
std::string sample_MateCopyNumberFile = "";
string sample_inputFormat = std::string(cf.Value("sample","inputFormat",""));
std::string sample_mateOrientation = (std::string)cf.Value("sample","mateOrientation","0");
sample_mateOrientation = (std::string)cf.Value("sample","matesOrientation",sample_mateOrientation);


if (has_sample_MateFile) {
sample_MateFile = std::string(cf.Value("sample","mateFile")) ;
Expand Down
2 changes: 1 addition & 1 deletion src/myFunc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ void readFileWithGenomeInfo(const std::string &chrLenFileName, std::vector<std::
name = strs[0];
value = atoi(strs[1].c_str());
}
if (strs.size()>=3 && strs[0].substr(0,3)!="chr") {
if (strs.size()>=3 && strs[0].substr(0,3)!="chr" && !isFai) {
name = strs[1];
value = atoi(strs[2].c_str());
}
Expand Down
2 changes: 1 addition & 1 deletion src/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#define VERSION_H

const double VERSION_OFFSET = 3;
const double FREEC_VERSION = 11.4;
const double FREEC_VERSION = 11.5;
const double CONTROL_FREEC_VERSION = FREEC_VERSION - VERSION_OFFSET;

#endif

0 comments on commit f245983

Please sign in to comment.