multiBigwigSummary with outRawCounts - output all fields from input bed

60 views
Skip to first unread message

António Miguel de Jesus Domingues

unread,
Nov 10, 2019, 4:21:11 PM11/10/19
to deepTools
Hi all,

I am using the` multiBigwigSummary --outRawCounts` to retrieve the coverage for several BigWigs, and over a large number of BED files. These bed files contain an ID on the forth column which is necessary for downstream processing (grouping, averaging, etc). However, I noticed that the output bedcontains only the first three fields from the input BED. Is it possible to include in the output bed all the fields of the input?

I guess I could convert the BigWigs in Bedgraph and used bedtools map for this, but I would rather not have another file format converstion.

Command used:



multiBigwigSummary BED
-file -b $bws -o coverage.npz --BED random_${i}.bed --outRawCounts random_${i}_coverage.tab --smartLabels -p 6


(I realized this might be more a feature request than a question but there you go)

Cheers,
António

Devon Ryan

unread,
Nov 10, 2019, 6:06:39 PM11/10/19
to António Miguel de Jesus Domingues, deepTools
Hi Antonio,

Unfortunately the --outRawCounts option is quite simplistic, so it
won't provide what you want. You could probably hack this
functionality in by editing countReadsPerBin.py (the
counts_reads_in_region function), but the exact changes that are
needed aren't immediately apparent to me so it'd require some playing
around.

Devon


--
Devon Ryan, Ph.D.
Email: dpr...@dpryan.com
Data Manager/Bioinformatician
Max Planck Institute of Immunobiology and Epigenetics
Stübeweg 51
79108 Freiburg
Germany
> --
> You received this message because you are subscribed to the Google Groups "deepTools" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to deeptools+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/deeptools/7328b526-30fc-400c-8d2b-60e6e1cf5ca1%40googlegroups.com.

Antonio Miguel de Jesus Domingues

unread,
Nov 11, 2019, 2:53:21 AM11/11/19
to Devon Ryan, deepTools
Hi Devon,

thank you for point me in the direction of the solution.
In the meantime I thought of a couple of workarounds so this hack might not even be needed, but now I know where to look.

Cheers,
António
-- 
------------
António Miguel de Jesus Domingues, PhD

Bioinformatics Data Analyst @ MPI-CBG
Reply all
Reply to author
Forward
0 new messages