【问题标题】:How to read bam (aligned information) file in SPARK?如何在 SPARK 中读取 bam(对齐信息)文件?
【发布时间】:2018-10-31 02:57:26
【问题描述】:

最近我不得不使用 Python 或 Scala 在 SPARK 上处理 BWA 或其他对齐工具生成的 bam 文件,如何将这个二进制文件转换为 RDD,以便我可以对每个读取序列和其他信息进行一些统计?谁能有一些经验或举个例子?我已经阅读了 PySpark 和 Spark-bam 的 binaryRecords() 函数,似乎效果不佳。

【问题讨论】:

  • 欢迎您!这个问题似乎更适合 bioinformatics.stackexchange.com。

标签: python apache-spark bioinformatics


【解决方案1】:

您可以在 python 中使用 PySam。请参阅此处的文档: https://pysam.readthedocs.io/en/latest/api.html

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-05-27
    • 1970-01-01
    • 1970-01-01
    • 2020-10-07
    • 1970-01-01
    • 2022-06-10
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多