useDynLib(GenABEL)

#import(methods)
#import(genetics)
#importClasses(genetics)

export(
	add.plot,
	add.phdata,
	arrange_probabel_phe,
	as.character.gwaa.data,
	as.character.snp.coding,
	as.character.snp.data,
	as.character.snp.strand,
	as.data.frame.gwaa.data,
	as.double.gwaa.data,
	as.double.snp.data,
	as.genotype,
	as.genotype.gwaa.data,
	as.genotype.snp.data,
	as.hsgeno,
	as.hsgeno.gwaa.data,
	as.hsgeno.snp.data,
	autosomal,
	catable,
	ccfast,
	check.marker,
	check.trait,
	chromosome,
	coding,
	convert.snp.affymetrix,
	convert.snp.illumina,
	convert.snp.mach,
	convert.snp.ped,
	convert.snp.tped,
	convert.snp.text,
	crnames,
	del.phdata,
	descriptives.marker,
	descriptives.scan,
	descriptives.trait,
	dprfast,
	egscore,
	egscore.old,
	emp.ccfast,
	emp.qtscore,
	estlambda,
	export.merlin,
	export.impute,
	extract.annotation.impute,
	extract.annotation.mach,
	formetascore,
	GASurv,
	grammar,
	gtdata,
	HWE.show,
	hom,
	hom.old,
	ibs,
	ibs.old,
	idnames,
	impute2databel,
	impute2mach,
	load.gwaa.data,
	mach2databel,
	male,
	map,
	merge.gwaa.data,
	merge.snp.data,
	mlreg,
	mlreg.p,
	mmscore,
	npsubtreated,
	nsnps,
	nids,
	patch_strand,
	perid.summary,
	phdata,
	plot.check.marker,
	plot.scan.gwaa,
	plot.scan.gwaa.2D,
	polygenic,
	r2fast,
	r2fast.old,
	redundant,
	refresh.gwaa.data,
	reg.gwaa,
	rhofast,
	rntransform,
	qtscore,
	qvaluebh95,
	save.gwaa.data,
	scan.glm,
	scan.glm.2D,
	scan.haplo,
	scan.haplo.2D,
	show.ncbi,
	snp.data,
	snpnames,
	snp.names,
	snp.subset,
	sset,
	strand,
	summary.check.marker,
	summary.gwaa.data,
	summary.snp.data,
	Xfix,
	ztransform #,
	#var.meta,
	#var.test.homogeneity
	#var.test.homogeneity.bartlett
       )

exportClasses(
	"gwaa.data",
	"scan.gwaa",
	"scan.gwaa.2D",
	"snp.coding",
	"snp.data",
	"snp.mx",
	"snp.strand",
	"snps.cell"
	)

exportMethods("show")

S3method(summary,check.marker)
S3method(summary,gwaa.data)
S3method(summary,snp.data)

S3method(plot,check.marker)
S3method(plot,scan.gwaa)
S3method(plot,scan.gwaa.2D)

S4method('[',snp.data)
S4method('[',gwaa.data)
S4method('[',snp.mx)

S3method(as.character,gwaa.data)
S3method(as.character,snp.data)
S3method(as.data.frame,gwaa.data)
S3method(as.double,snp.data)
S3method(as.double,gwaa.data)
S3method(as.hsgeno,gwaa.data)
S3method(as.hsgeno,snp.data)
S3method(as.genotype,gwaa.data)
S3method(as.genotype,snp.data)
