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

Before Change


		dat = dat[dat.N >= n_min]
		
	if "NSTUDY" in dat.columns and "N" in dat.columns:
		dat.drop(["NSTUDY"], inplace=True, axis=1)
	elif "NSTUDY" in dat.columns and "N" not in dat.columns:
		nstudy_min = args.nstudy_min if args.nstudy_min else dat.NSTUDY.max()
		dat = dat[dat.NSTUDY >= nstudy_min].drop(["NSTUDY"], axis=1)
		

After Change


	
	if "N" in dat.columns:
		n_min = args.n_min if args.n_min else dat.N.quantile(0.9) / 1.5
		old = len(dat)
		dat = dat[dat.N >= n_min].reset_index(drop=True)
		new = len(dat)
		log.log("Removed {M} SNPs with N < {MIN} ({N} SNPs remain).".format(M=old-new, N=new, MIN=n_min))
		
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

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: tyarkoni/pliers
Commit Name: 9d478d351665502019ac40a7302e769b9d3f6660
Time: 2018-04-17
Author: quinten.mcnamara@gmail.com
File Name: pliers/extractors/api/google.py
Class Name: GoogleVideoIntelligenceAPIExtractor
Method Name: _to_df


Project Name: EpistasisLab/tpot
Commit Name: 2ab8c1444facbd46df8767a5badda5b9f1a50c29
Time: 2016-08-01
Author: supacoofoo@gmail.com
File Name: tpot/tpot.py
Class Name:
Method Name: main