We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
copy_number
1 parent 101ad74 commit a397281Copy full SHA for a397281
1 file changed
coderdata/dataset/dataset.py
@@ -443,7 +443,20 @@ def format(
443
)
444
445
elif data_type == "copy_number":
446
- pass
+ if data.copy_number is None:
447
+ raise ValueError(
448
+ f"'{data_type}' attribute of Dataset cannot be 'None'"
449
+ )
450
+
451
+ # TODO: add way to extract copy_call
452
+ ret = pd.pivot_table(
453
+ data=data.copy_number,
454
+ index='entrez_id',
455
+ columns='improve_sample_id',
456
+ values='copy_number',
457
+ aggfunc='mean',
458
459
460
elif data_type == "proteomics":
461
if data.proteomics is None:
462
raise ValueError(
0 commit comments