527fedb6dad0212f893f3f5a17ff42d4e6cf5a53,cnvlib/commands.py,,_cmd_segmetrics,#Any#,1426
Before Change
deviations = [segbins.log2 - segment.log2
for segment, segbins in cnarr.by_ranges(segarr)]
// Measures of spread
for statname in ("StDev", "MAD", "IQR", "BiVar") :
option = statname.lower()
if getattr(args, option):
func = stats[option]
segarr[statname] = np.asfarray([func(d) for d in deviations])
After Change
segarr = tabio.read_cna(args.segments)
segments, segbins = zip(*cnarr.by_ranges(segarr))
// Measures of location
for statname in ("mean", "median", "mode"):
if getattr(args, statname):
func = stats[statname]
segarr[statname] = np.asfarray([func(sb.log2) for sb in segbins])
// Measures of spread
deviations = [sb.log2 - seg.log2 for seg, sb in zip(segments, segbins)]
for statname in ("stdev", "mad", "iqr", "bivar"):
if getattr(args, statname):
func = stats[statname]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 11
Instances Project Name: etal/cnvkit
Commit Name: 527fedb6dad0212f893f3f5a17ff42d4e6cf5a53
Time: 2016-06-10
Author: eric.talevich@gmail.com
File Name: cnvlib/commands.py
Class Name:
Method Name: _cmd_segmetrics
Project Name: deepfakes/faceswap
Commit Name: fe664e274814a75b56c2f8aeabcb1a51d8f5d4f0
Time: 2020-10-09
Author: 36920800+torzdf@users.noreply.github.com
File Name: scripts/train.py
Class Name: Train
Method Name: _set_timelapse
Project Name: etal/cnvkit
Commit Name: 835cecc55bd81d4200b393fa587032501d43c12a
Time: 2016-06-10
Author: eric.talevich@gmail.com
File Name: cnvlib/commands.py
Class Name:
Method Name: _cmd_segmetrics