bedtools工具包:https://bedtools.readthedocs.io/en/latest/index.html

bedtools工具之intersect参数,help信息:(这是v2.17.0版,最新是v2.30.0版)

Tool:    bedtools intersect (aka intersectBed)
Version: v2.17.0
Summary: Report overlaps between two feature files.Usage:   bedtools intersect [OPTIONS] -a <bed/gff/vcf> -b <bed/gff/vcf>

参数:

参数 说明
-abam The A input file is in BAM format. Output will be BAM as well.
-ubam Write uncompressed BAM output. Default writes compressed BAM.
-bed When using BAM input (-abam), write output as BED.
The default is to write output in BAM when using -abam.
-wa Write the original entry in A for each overlap.
-wb Write the original entry in B for each overlap.
  - Useful for knowing what A overlaps. Restricted by -f and -r.
-loj Perform a “left outer join”. That is, for each feature in A report each overlap
with B. If no overlaps are found, report a NULL feature for B.
-wo Write the original A and B entries plus the number of base pairs of overlap
between the two features.
  - Overlaps restricted by -f and -r.
  - Only A features with overlap are reported.
-wao Write the original A and B entries plus the number of base pairs of overlap
between the two features.
  - Overlapping features restricted by -f and -r.
  However, A features w/o overlap are also reported with a NULL B
feature and overlap = 0.
-u Write the original A entry once if any overlaps found in B.
  - In other words, just report the fact >=1 hit was found.
  - Overlaps restricted by -f and -r.
-c For each entry in A, report the number of overlaps with B.
  - Reports 0 for A entries that have no overlap with B.
  - Overlaps restricted by -f and -r.
-v Only report those entries in A that have no overlaps with B.
  - Similar to “grep -v” (an homage).
-f Minimum overlap required as a fraction of A.
  - Default is 1E-9 (i.e., 1bp).
  - FLOAT (e.g. 0.50)
-r Require that the fraction overlap be reciprocal for A and B.
  - In other words, if -f is 0.90 and -r is used, this requires that B overlap
90% of A and A _also_ overlaps 90% of B.
-s Require same strandedness. That is, only report hits in B that overlap A
on the same strand.
  - By default, overlaps are reported without respect to strand.
-S Require different strandedness. That is, only report hits in B that overlap A
on the _opposite_ strand.
  - By default, overlaps are reported without respect to strand.
-split Treat “split” BAM or BED12 entries as distinct BED intervals.
-sorted Use the “chromsweep” algorithm for sorted (-k1,1 -k2,2n) input
-header Print the header from the A file prior to results.

Notes:
(1) When a BAM file is used for the A file, the alignment is retained if overlaps exist,
and exlcuded if an overlap cannot be found. If multiple overlaps exist, they are not
reported, as we are only testing for one or more overlaps.

使用intersect命令,对两个基因组位置信息文件取交集。

bedtools intersect [OPTIONS] -a <bed/gff/vcf> -b <bed/gff/vcf>

参数:

参数 说明
-a 输入文件a,文件格式可以是: bed/gff/vcf
-b 输入文件b,文件格式可以是: bed/gff/vcf
-abam 输入的a文件是bam文件时,使用该参数指定,输出则默认为压缩的bam文件
-ubam 指定该参数时,默认输出非压缩的bam文件,默认使用压缩的
-bed 输出bed格式,如果输入是bam格式,默认输出bam格式,可用该命令输出bed
-wa 输出的文件格式同输入的a文件
-wb 输出的文件格式同输入的b文件
-loj “left outer join”,输出a文件与b文件的交集, 与b文件没有交集的标记为NULL,
例如:“.”(点)、“-1”
-wo 输出a和b文件的交集,且保留它们的原始格式,并增加一列重叠次数
-wao wo基础上,输出a文件中与b没有交集区域信息,无交集时重叠次数列为0。
注:- 没有交集对应信息输出其他符号信息,比如:“.”(点)、“-1”
  - waoloj类似,但loj没有重叠次数列
-u 输出a的原格式,fact>=1 【?】,交集限制条件由-f-r设定
-c 输出在a格式基础上增加一列与b的重叠次数,0表示与b无重叠
-v 按a格式,输出与b没有交集的信息,类似grep -v
-f 设定a文件中区域最小重叠长度,默认是1E-9(就是1bp);浮点数,例如:0.05
-r a和b重叠的比例?如果-f参数是0.90并使用了-r参数,就是说,
要求b与a的90%区域重叠,且a也与b区域的90%重叠
-s 要求a和b相同的链方向,就是说,输出a与b的交集时,要求相同的链方向。
默认不考虑链方向
-S 要求a和b不同的链方向,就是说,输出a与b的交集时,要求相反的链方向。
默认不考虑链方向
-split 【?】
-sorted 使用按染色体排序作为输入?sort -k1,1 -k2,2n
-header 输出表头,有限使用a文件的表头

详细的官方示例:https://bedtools.readthedocs.io/en/latest/content/tools/intersect.html

更多其他命令:https://bedtools.readthedocs.io/en/latest/content/bedtools-suite.html

【bioinfo】bedtools之intersect命令参数相关推荐

  1. Linux aptget 参数,ubuntu下apt-get 命令参数大全

    Ubuntu下apt-get 命令参数大全,供大家参考. apt-cache search package  搜索包 apt-cache show package 获取包的相关信息,如说明.大小.版本 ...

  2. protoc支持c_protoc 命令参数

    protoc 命令的获得 下载后的解压缩包含的内容如下(以mac下为例) 我们通过 which 命令可以查到 protoc 的安装目录, 覆盖它即可. $ which protoc /usr/loca ...

  3. linux df命令参数详解

    linux中df命令参数功能:检查文件系统的磁盘空间占用情况.可以利用该命令来获取硬盘被占用了多少空间,目前还剩下多少空间等信息. 语法:df [选项] 说明:linux中df命令可显示所有文件系统对 ...

  4. linux命令行下命令参数前的一横(-)和两横(--)的区别

    linux命令行下命令参数前的一横(-)和两横(--)的区别 原文转自:http://blog.csdn.net/songjinshi/article/details/6816776 在解释这些区别之 ...

  5. xtrabackup之innobackupex命令参数

    innobackupex命令参数解析 --defaults-file 同xtrabackup的--defaults-file参数; --apply-log 对xtrabackup的--prepare参 ...

  6. Linux mail 命令参数

    linux mail 命令参数: 使用mail发邮件时,必须先将sendmail服务启动. mail –s "邮件主题" –c"抄送地址" –b "密 ...

  7. linux mount命令参数及用法详解

    linux mount命令参数及用法详解 非原创,主要来自 http://www.360doc.com/content/13/0608/14/12600778_291501907.shtml. htt ...

  8. linux useradd(adduser)命令参数及用法详解(linux创建新用户命令)

    linux useradd(adduser)命令参数及用法详解(linux创建新用户命令) useradd可用来建立用户帐号.帐号建好之后,再用passwd设定帐号的密码.而可用userdel删除帐号 ...

  9. 【Java 虚拟机原理】垃圾回收算法 ( 设置 JVM 命令参数输出 GC 日志 | GC 日志输出示例 | GC 日志分析 )

    文章目录 一.设置 JVM 命令参数输出 GC 日志 二.GC 日志示例 三.GC 日志分析 一.设置 JVM 命令参数输出 GC 日志 在 IntelliJ IDEA 的启动参数中设置 -XX:+P ...

最新文章

  1. 数据结构与算法:01 绪论
  2. [CF125E]MST Company
  3. left join 一对多_MYSQL 连接查询算法:JOIN语句在 MYSQL 内部到底是怎么执行的
  4. Xcode控制台打印集锦
  5. 出让执行权:Task.Yield, Dispathcer.Yield
  6. oracle11g ogg报价,Oracle11g GoldenGate配置错误OGG-00868 Attaching to ASM server
  7. 2010版EXCEL下方sheet工作表隐藏了
  8. Linux学习笔记015---Centos关机命令
  9. 基于图像的小麦真菌病害深度学习识别(数据+平台)
  10. canal 源码解析(1)-启动篇(3)
  11. js如何获取当月第一天和最后一天
  12. 在 Win10 系统下安装 JDK 及配置环境变量的方法
  13. 乐行天下激光雷达SDK介绍
  14. Opera 11.01的Bug
  15. DirectX9.0 入门手册
  16. 各个专业375个国家级精品课程的网址
  17. 如何恢复Mac上未保存的Word文件?
  18. 【印刷行业】RICOH TH5241喷头(G5i)
  19. No qualifying bean of type ‘xxx‘的问题解决方案
  20. FreeSWITCH API常用手册

热门文章

  1. cydia软件路径_在Cydia中提取Deb格式安装包文件
  2. Axure9中点击变颜色、形状等样式操作
  3. 《Automated Spatial Calibration of HMD Systems with Unconstrained Eye-cameras》论文阅读
  4. PHP之微信头像加水印
  5. 8月第2周业务风控关注 | 新氧加强内容审核并上线人脸识别技术
  6. 相位式激光测距全套方案
  7. IBM@China 还是 China IBM
  8. 2014小学计算机统计表,2014年春小学部考试成绩统计表.xls
  9. 自适应均线系统 python_Kaufman的自适应移动平均线(AMA)
  10. Kafka Producer对连接的管理