Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified dif_cover_scripts/from_unionbed_to_ratio_per_window_CC0
100644 → 100755
Binary file not shown.
6 changes: 3 additions & 3 deletions dif_cover_scripts/from_unionbed_to_ratio_per_window_CC0.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ int main( int argc , char** argv ) {


int opt, a=1, A=max_cov, b=1, B=max_cov, v=1000, l=0; //!!! Default values for parameters !!!!
char fname[1000], fff[1000];
char fff[1000];

while ((opt = getopt(argc, argv, "a:A:b:B:v:l:")) != -1) {
switch (opt) {
Expand Down Expand Up @@ -54,12 +54,12 @@ int main( int argc , char** argv ) {
exit(EXIT_FAILURE);
}

strncat(fname,argv[optind],strlen(argv[optind]));
std::string fname(argv[optind]);
//printf ("fname=%s\n",fname);

std::ifstream unionbed_file( fname ) ;
if (!unionbed_file) {
fprintf(stderr, "Can't open union.bed file %s\n",fname);
fprintf(stderr, "Can't open union.bed file %s\n",fname.c_str());
exit(EXIT_FAILURE);
}

Expand Down