- Fixed issue with MAF calculation in .gwama()
- Please update to this version! Merging and meta analyses did not work properly in previous versions.
- For now using
MergedSumStats.meta_analyze()
will instead run.gwama()
with an identity matrix (functionally identical to.meta_analyze(method='ivw')
), as this appears to work reliably.
- Fix: Merge using a list of SumStats now propagates arguments properly
- Fix: Meta analyzing now properly sums N across all summary statistics
- Fix: Fixed an issue that would prevent proper outer merge
- Fix: Merge using a list of SumStats now propagates arguments properly
- Fix: Meta analyzing now properly sums N across all summary statistics
- Bugfix: Chromosome X now properly converted to 23
- Bugfix: .describe() now returns min and max instead of min and min
- Bugfix: .qc() now works with any column
- Added an NotImplementedError when attempting to merge with
low_memory
and amethod
other than inner. - Added per_phenotype argument to
.save()
to save separate files for each phenotype inMergedSumStats
objects. - Added phenotype argument to
.save()
to save file for a specific phenotype inMergedSumstats
objects.
- Fixed assertion issues that caused merging files and plotting merged files to fail.
- Fixed export so that saving to a file with '.gz' extension now actaully gzips the output file.
- Fixed data import to enable opening a pysumstats file saved as .pickle by initializing SumStats class. This will also check if the data is still stored when low_ram was set to True.
- Merging sumstats now computes an overall MAF meta-analyzed sumstats can be reimported with pysumstats.
- Added version number to SumStats objects.
- Added
kwargs
to SumStats.qc for filtering on custom columns. - Added custom SumStats warnings. These warnings print always by default you can change this behavior with Pythons default warnings filter.
- Reformatted documentation, now also includes a guide on opening and saving sumstats.
- Fixed an issue where reading data would fail when values in n, bp, chr columns were NA. An attempt is now made to impute these values. If too many are missing a ValueError is thrown.
- Added
fig
andax
arguments topysumstats.plot.qqplot
andpysumstats.plot.manhattan
to enable plotting to existing figure and axis. - Added
pysumstats.plot.pzplot
, to visually compare Z-values fromB/SE
to Z-values calculated from the P-value. - Added
pysumstats.plot.afplot
, to plot allele frequency differences between summary statistics. - Added
pysumstats.plot.zzplot
, to plot differences in Z-values between summary statistics. - Added
qqplot
,manhattan
,pzplot
,afplot
,zzplot
functions to MergedSumStats object. - Added
pzplot
function to SumStats object. - Added
plot_all
functions to SumStats and MergedSumStats objects to automatically generate all possible plots for the object.
- Fixed import errors and added
manhattan
andqq
function toSumStats
class - Added
return
statement to MergedSumStats.merge() wheninplace=False
and merging with other MergedSumstats. - Added docstrings to base, mergedsumstats, sumstats and utils.
- Added docs
- Added
plot
subpackage withqqplot
andmanhattan
, from my initial Python-QQMan module.
- Adapted to be a package rather then a module.
- Added
low_ram
argument to SumStats to read/write data to disk rather than RAM, in case of memory issues.