Hogfeldt / ctDNAtool

A software for creating and manipulating statistics from cfDNA data
4 stars 2 forks source link

Manipulation: binning, sliding window with stride parameter #1

Open Hogfeldt opened 4 years ago

Hogfeldt commented 4 years ago

We should have a manipulation that can bin the first axis of a matrix or tensor, with a sliding window. The user should be able to set the bin size and the stride.

If the bin size and stride is chosen in a way such that the last bin exceeds the array, its probably best to just create a small bin an throw a warning.

Hogfeldt commented 4 years ago

Functionality is implemented in 2e2a062cd415563ea25e6b10700d928aa82f4c09, but it would be nice with some more tests.

Hogfeldt commented 4 years ago

Default stride should probably be set to the given bin size.

Hogfeldt commented 4 years ago

Bins overlapping chromosomes should be discarded.