434c2749b0b3da4806786f1feb5ea03e83ff7db6,munge_sumstats.py,,process_n,#Any#Any#Any#,256

Before Change


		else:
			raise ValueError("Cannot determine N. This message indicates a bug.\nN should have been checked earlier in the program.")
	
	return dat.reset_index(drop=True)
	
def p_to_beta(P, N):
	"""
	Convert P-value and N to standardized beta

After Change


		nstudy_min = args.nstudy_min if args.nstudy_min else dat.NSTUDY.max()
		old = len(dat)
		dat = dat[dat.NSTUDY >= nstudy_min].drop(["NSTUDY"], axis=1).reset_index(drop=True)
		new = len(dat)
		log.log("Removed {M} SNPs with NSTUDY < {MIN} ({N} SNPs remain).".format(M=old-new, N=new, MIN=nstudy_min))
		
	if "N" not in dat.columns:
		if args.N:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 2

Instances


Project Name: bulik/ldsc
Commit Name: 434c2749b0b3da4806786f1feb5ea03e83ff7db6
Time: 2015-01-18
Author: bbuliksullivan@gmail.com
File Name: munge_sumstats.py
Class Name:
Method Name: process_n


Project Name: has2k1/plotnine
Commit Name: 190065554d8905884dff948e4bb655d431d7eec3
Time: 2015-04-20
Author: has2k1@gmail.com
File Name: ggplot/stats/stat.py
Class Name: stat
Method Name: _calculate_groups


Project Name: has2k1/plotnine
Commit Name: 23ccc81132999be23a5963299eb168cfe9788809
Time: 2015-04-20
Author: has2k1@gmail.com
File Name: ggplot/stats/stat.py
Class Name: stat
Method Name: _calculate_groups


Project Name: ScottfreeLLC/AlphaPy
Commit Name: fe53777403d7b40768f15722f6ce5e9bb314f360
Time: 2017-02-16
Author: Mark.R.Conway@gmail.com
File Name: data.py
Class Name:
Method Name: get_feed_data