Skip to content

-n parameter fails to cleanly close samtools (v1.9) pipe #7

Description

@jfy133

When using the following command:

samtools calmd -b <mybam>.bam hs37d5.fa | samtools view -h - | pmdtools --deamination --range 10 --UDGhalf  -n 10000 > <mybam>.cpg.range.txt 

The following error occurs

samtools view: writing to standard output failed: Broken pipe
samtools view: error closing standard output: -1
[E::bgzf_flush] File write failed (wrong size)
samtools calmd: failed to write to output file: Broken pipe
[E::bgzf_close] File write failed

However the txt file is still created.

When removing -n parameter, the command completes correctly.

Versions: samtools 1.9
PMDtools version 0.60 (installed via bioconda)

[Note than pmdtools --version for this install still reports 0.5]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions