pneuvial / c3co

Inferring cancer cell clonality from copy-number data
5 stars 1 forks source link

TASK: Preserve sample and chromosome names #35

Open HenrikBengtsson opened 6 years ago

HenrikBengtsson commented 6 years ago

We should try to preserve sample and chromosome names throughout the pipeline, if they exist in the input data.

I've just added the C3coSegmentation class for objects returned by segmentData(), e.g.

> print(seg)
C3coSegmentation: 
 Method: jointseg::jointSeg
 Number samples: 3
 Number chromosomes: 24
 Number segments: 400
 Dimensions: [3] 'Y1', 'Y2', 'Y'

Ideally we could also report (and subset on) sample and chromosome names, e.g.

> print(seg)
C3coSegmentation: 
 Method: jointseg::jointSeg
 Samples: [3] 'SampleA', 'SampleB', 'SampleC'
 Chromosomes: [24] '1', '2', ..., 'Y'
 Number segments: 400
 Dimensions: [3] 'Y1', 'Y2', 'Y'

This will also be handy when plotting c3co results.

HenrikBengtsson commented 6 years ago

I've updated such that:

HenrikBengtsson commented 5 years ago

Known remaining tasks: