Skip to content
Open
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
4 changes: 2 additions & 2 deletions src/FitHiC_SigInt.r
Original file line number Diff line number Diff line change
Expand Up @@ -1748,7 +1748,7 @@ if (0) {
}

# now sort the file contents and write that in the final specified output file
system(paste('sort -k1,1 -k2,2n -k5,5n', paste0('-k',opt$cccol,',',opt$cccol,'nr'), temp_outfile, '>', opt$OutFile))
system(paste('(head -n 1', temp_outfile, '&& tail -n +2', temp_outfile, '| sort -k1,1 -k2,2n -k5,5n', paste0('-k',opt$cccol,',',opt$cccol,'nr'), ')>', opt$OutFile))

} # end dummy if

Expand All @@ -1772,7 +1772,7 @@ if (1) {
system(paste("rm", temp_outfile_2))

# now sort the file contents and write that in the final specified output file
system(paste('sort -k1,1 -k2,2n -k5,5n', paste0('-k',opt$cccol,',',opt$cccol,'nr'), temp_outfile, '>', opt$OutFile))
system(paste('(head -n 1', temp_outfile, '&& tail -n +2', temp_outfile, '| sort -k1,1 -k2,2n -k5,5n', paste0('-k',opt$cccol,',',opt$cccol,'nr'), ')>', opt$OutFile))

} # end dummy if

Expand Down