Skip to content

Support bedGraph output in only-depth #46

@ghuls

Description

@ghuls

Support bedGraph output in only-depth:

This is basically perbase -z output without header and chromosomes sorted by lexographically.

This would allow to create bigwig files relatively easily. (naive sorting takes quite a while instead of reading the reads by chromosome in lexographical order).

perbase only-depth -z ${bam} | tail -n +2 | LC_COLLATE=C sort -k 1,1 -k 2,2n -k 3,3n > ${bedgraph}

bedGraphToBigWig ${bedgraph} ${chrom_sizes} ${bigwig}

bedGraph format:
http://genome.ucsc.edu/goldenPath/help/bedgraph.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions