chr1 10468 10469 NA NA 22 29
chr1 10470 10471 NA NA 21 28
chr1 10483 10484 NA NA 28 29
chr1 10488 10489 NA NA 21 28
chr1 10492 10493 NA NA 25 28
chr1 10496 10497 NA NA 26 27
chr1 10524 10525 NA NA 26 28
chr1 10541 10542 NA NA 26 29
chr1 10562 10563 NA NA 28 31
chr1 10570 10571 NA NA 29 31
I ran with --debug and the command that was printed before the output was:
tabix -R /tmp/tmpfk4kdgtm /path/wgbs_tools/references/hg38/CpG.bed.gz | awk -v OFS='\t' '{print $1,$2,$2+1,$3}' | sort -k1,1 -k2,2n -u | bedtools intersect -sorted -b - -a /tmp/tmpfk4kdgtm -loj | bedtools groupby -g 1,2,3 -c 7,7 -o first,last | awk -v OFS='\t' '{print $1,$2,$3,$4,$5+1;}' | sed 's/\.\t1/NA\tNA/g'
Hello,
I'm trying to use
wgbstools convert
to translates genomic loci to CpG-index, and it's not working as expected.The command I used:
wgbstools convert -L check_head.bed --genome hg38 --debug
Original file:
Expected output:
The output I get:
I ran with
--debug
and the command that was printed before the output was:tabix -R /tmp/tmpfk4kdgtm /path/wgbs_tools/references/hg38/CpG.bed.gz | awk -v OFS='\t' '{print $1,$2,$2+1,$3}' | sort -k1,1 -k2,2n -u | bedtools intersect -sorted -b - -a /tmp/tmpfk4kdgtm -loj | bedtools groupby -g 1,2,3 -c 7,7 -o first,last | awk -v OFS='\t' '{print $1,$2,$3,$4,$5+1;}' | sed 's/\.\t1/NA\tNA/g'
@nloyfer I'll appreciate if you can take a look.
Thank you!