GATK GATKPath类介绍

GATKPath类是GATK(基因组分析工具包)中的一个专门类,它扩展了HtsPath并实现了TaggedArgument。它提供了一种处理文件路径的方法,这些路径可以位于不同的存储系统上,如本地文件系统、谷歌云存储(GCS)或Hadoop分布式文件系统(HDFS)。此外,它还支持对命令行参数进行标记。

Key Components of GATKPath Class

  1. Fields and Constants:

    • HDFS_SCHEME: A constant for identifying HDFS URLs.
    • tagName: Holds the tag name for the path.
    • tagAttributes: A map of attributes associated with the tag.
  2. Constructors:

    • GATKPath(String uriString): Initializes with a URI string.
    • GATKPath(GATKPath sourceGATKPath): Copies an existing GATKPath and propagates its tag and attributes.
  3. Methods:

    • toPath(): Converts the GATKPath to a Path object. Handles GCS paths specially by using BucketUtils.getPathOnGcs() and falls back to using FileSystems if the path is not found.
    • getInputStream(): Returns an InputStream for reading from the path. Handles different schemes like HDFS and local file systems.
    • getOutputStream(): Returns an OutputStream for writing to the path. Supports HDFS and local file systems.
    • isHadoopURL(): Checks if the path uses the HDFS scheme.
    • setTag(String tagName): Sets the tag name.
    • getTag(): Gets the tag name.
    • setTagAttributes(Map<String, String> attributes): Sets the tag attributes.
    • getTagAttributes(): Gets the tag attributes.
    • toString(): Returns a string representation of the path including any tags and attributes.
    • equals(Ob
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值