유전자 분석 작업을 위한 도구의 swiss-army knife. BAM, BED, GFF/GTF, VCF 형식으로 데이터를 교차, 그룹화, 변환 및 카운트하는 데 사용. 자세한 정보: https://bedtools.readthedocs.io/en/latest/.
bedtools intersect -a {{path/to/file_1}} -b {{path/to/file_2}} -s > {{path/to/output_file}}
bedtools intersect -a {{path/to/file_1}} -b {{path/to/file_2}} -lof > {{path/to/output_file}}
bedtools intersect -a {{path/to/file_1}} -b {{path/to/file_2}} -sorted > {{path/to/output_file}}
bedtools groupby -i {{path/to/file}} -c 1-3,5 -g 6 -o sum
bedtools bamtobed -i {{path/to/file}}.bam > {{path/to/file}}.bed
bedtools closest -a {{path/to/file_1}}.bed -b {{path/to/file_2}}.bed -d