Loading required namespace: GenomicFiles Using local VCF. File already tabix-indexed. Finding empty VCF columns based on first 10,000 rows. 1 sample detected: ebi-a-GCST008591 Constructing ScanVcfParam object. VCF contains: 1,737,171 variant(s) x 1 sample(s) Reading VCF file: multi-threaded (4 threads) Renaming ID as SNP. VCF file has -log10 P-values; these will be converted to unadjusted p-values in the 'P' column. No INFO (SI) column detected. Standardising column headers. First line of summary statistics file: SNP chr BP end REF ALT FILTER ES LP SE P Summary statistics report: - 1,735,627 rows - 1,732,846 unique variants - 0 genome-wide significant variants (P<5e-8) - 22 chromosomes Checking for multi-GWAS. Checking for multiple RSIDs on one row. Inferring genome build. Loading SNPlocs data. Loading reference genome data. Preprocessing RSIDs. Validating RSIDs of 9,999 SNPs using BSgenome::snpsById... Loading required package: BiocGenerics Attaching package: ‘BiocGenerics’ The following objects are masked from ‘package:stats’: IQR, mad, sd, var, xtabs The following objects are masked from ‘package:base’: anyDuplicated, aperm, append, as.data.frame, basename, cbind, colnames, dirname, do.call, duplicated, eval, evalq, Filter, Find, get, grep, grepl, intersect, is.unsorted, lapply, Map, mapply, match, mget, order, paste, pmax, pmax.int, pmin, pmin.int, Position, rank, rbind, Reduce, rownames, sapply, setdiff, sort, table, tapply, union, unique, unsplit, which.max, which.min Loading required package: S4Vectors Loading required package: stats4 Attaching package: ‘S4Vectors’ The following objects are masked from ‘package:base’: expand.grid, I, unname BSgenome::snpsById done in 159 seconds. Loading SNPlocs data. Loading reference genome data. Preprocessing RSIDs. Validating RSIDs of 9,999 SNPs using BSgenome::snpsById... BSgenome::snpsById done in 102 seconds. Inferred genome build: GRCH37 Checking SNP RSIDs. Checking for merged allele column. Checking A1 is uppercase Checking A2 is uppercase Checking for incorrect base-pair positions Ensuring all SNPs are on the reference genome. Loading SNPlocs data. Loading reference genome data. Preprocessing RSIDs. Validating RSIDs of 1,732,846 SNPs using BSgenome::snpsById... BSgenome::snpsById done in 89 seconds. 12,284 SNPs are not on the reference genome. These will be corrected from the reference genome. Loading SNPlocs data. Sorting coordinates with 'data.table'. Writing in tabular format ==> /rds/general/project/neurogenomics-lab/ephemeral/MAGMA_Files_Public/data/GWAS_munged/ebi-a-GCST008591/logs/snp_not_found_from_chr_bp.tsv Writing uncompressed instead of gzipped to enable tabix indexing. Converting full summary stats file to tabix format for fast querying... Reading header. Ensuring file is bgzipped. Tabix-indexing file. Removing temporary .tsv file. Loading SNPlocs data. Loading reference genome data. Preprocessing RSIDs. Validating RSIDs of 1,723,589 SNPs using BSgenome::snpsById... BSgenome::snpsById done in 96 seconds. Checking for correct direction of A1 (reference) and A2 (alternative allele). There are 18 SNPs where neither A1 nor A2 match the reference genome. These will be removed. Sorting coordinates with 'data.table'. Writing in tabular format ==> /rds/general/project/neurogenomics-lab/ephemeral/MAGMA_Files_Public/data/GWAS_munged/ebi-a-GCST008591/logs/alleles_dont_match_ref_gen.tsv Writing uncompressed instead of gzipped to enable tabix indexing. Converting full summary stats file to tabix format for fast querying... Reading header. Ensuring file is bgzipped. Tabix-indexing file. Removing temporary .tsv file. There are 12 SNPs where A1 doesn't match the reference genome. These will be flipped with their effect columns. Reordering so first three column headers are SNP, CHR and BP in this order. Reordering so the fourth and fifth columns are A1 and A2. Checking for missing data. Checking for duplicate columns. Checking for duplicate SNPs from SNP ID. 2,696 RSIDs are duplicated in the sumstats file. These duplicates will be removed Sorting coordinates with 'data.table'. Writing in tabular format ==> /rds/general/project/neurogenomics-lab/ephemeral/MAGMA_Files_Public/data/GWAS_munged/ebi-a-GCST008591/logs/dup_snp_id.tsv Writing uncompressed instead of gzipped to enable tabix indexing. Converting full summary stats file to tabix format for fast querying... Reading header. Ensuring file is bgzipped. Tabix-indexing file. Removing temporary .tsv file. Checking for SNPs with duplicated base-pair positions. INFO column not available. Skipping INFO score filtering step. Filtering SNPs, ensuring SE>0. Ensuring all SNPs have N<5 std dev above mean. Checking for bi-allelic SNPs. 41,605 SNPs are non-biallelic. These will be removed. Sorting coordinates with 'data.table'. Writing in tabular format ==> /rds/general/project/neurogenomics-lab/ephemeral/MAGMA_Files_Public/data/GWAS_munged/ebi-a-GCST008591/logs/snp_bi_allelic.tsv Writing uncompressed instead of gzipped to enable tabix indexing. Converting full summary stats file to tabix format for fast querying... Reading header. Ensuring file is bgzipped. Tabix-indexing file. Removing temporary .tsv file. Computing Z-score from P using formula: `sign(BETA)*sqrt(stats::qchisq(P,1,lower=FALSE)` Warning: When method is an integer, must be >0. Sorting coordinates with 'data.table'. Sorting coordinates with 'data.table'. Writing in tabular format ==> /rds/general/project/neurogenomics-lab/ephemeral/MAGMA_Files_Public/data/GWAS_munged/ebi-a-GCST008591/ebi-a-GCST008591.tsv Writing uncompressed instead of gzipped to enable tabix indexing. Converting full summary stats file to tabix format for fast querying... Reading header. Ensuring file is bgzipped. Tabix-indexing file. Removing temporary .tsv file. Summary statistics report: - 1,681,966 rows (96.9% of original 1,735,627 rows) - 1,681,966 unique variants - 0 genome-wide significant variants (P<5e-8) - 22 chromosomes Done munging in 14.446 minutes. Successfully finished preparing sumstats file, preview: Reading header. SNP CHR BP A1 A2 END FILTER BETA LP 1: rs12141058 1 40000354 C T 40000354 PASS -0.000332998 0.0112960 2: rs12035330 1 40001060 A G 40001060 PASS 0.000850019 0.0305370 3: rs189165139 1 40001325 C T 40001325 PASS -0.029071900 0.3075290 4: rs11584100 1 40001336 T C 40001336 PASS 0.000732526 0.0192691 5: rs140111884 1 40001489 A G 40001489 PASS 0.003940270 0.0672783 SE P Z 1: 0.01034650 0.9743253 -0.03218396 2: 0.00997633 0.9321011 0.08520168 3: 0.04236370 0.4925735 -0.68622149 4: 0.01346050 0.9566012 0.05441924 5: 0.02178750 0.8564888 0.18084553