Hi all,
I have a question regarding sorting the methXtractor.temp files
I may not have enough background using this tool, but I wonder why the sort command in bismark2bedGraph script
open my $ifh, "sort -S $sort_size -T $sort_dir -k3,3 -k4,4n $in |" or die "Input file could not be sorted. $!";
In each methXtractor.temp file, isn't the third column always the same in all the lines of the file (name of the chromosome)?
only specifying the "-k4,4n" parameter seems to be faster :
for a methXtractor.temp containing 254 882 387 lines, sorting with only "-k4,4n" takes about 100 minutes to complete, whereas the same file sorted with "-k3,3 -k4,4n" is still running after 240 minutes.
Do I miss something? What can happen if I delete the "-k3,3" parameter from the sort command line?
Thank you for your help
Gérald
my full command line :
bismark_methylation_extractor file.bam --paired-end --no_overlap --report --bedGraph --counts --cytosine_report --zero_based --CX_context --buffer_size 24G --genome_folder /save/bismarkGenome/gg4/ -o /work/gg/


Leave a comment: