You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running mosdepth with a bed input file of regions, the regions get sorted in the output file.
What is the exact sorting command used?
I would like to reproduce the exact same sorting (or repress any sorting) so that I can paste extra columns (after the 4th one) which are in the input bed file but not reported in the output.
Maybe a classic first column alphabetic and second numeric sorting? sort -k1,1 -k2,2n
Thank you very much for any help
The text was updated successfully, but these errors were encountered:
Then sorted by the order of chromosomes in the sam header (with SN) so you'd have to use that information to do the sorting.
If you have the fasta and fai used to create the bam file, then you can use gsort like:
Very useful, thanks very much!
I didn't think I could resort the mosdepth output and check the md5 hash.
In my case I could reproduce the sorting with sort -k1,1V -k2,2n
When running mosdepth with a bed input file of regions, the regions get sorted in the output file.
What is the exact sorting command used?
I would like to reproduce the exact same sorting (or repress any sorting) so that I can paste extra columns (after the 4th one) which are in the input bed file but not reported in the output.
Maybe a classic first column alphabetic and second numeric sorting?
sort -k1,1 -k2,2n
Thank you very much for any help
The text was updated successfully, but these errors were encountered: