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-GCST005522 Constructing ScanVcfParam object. VCF contains: 93,613 variant(s) x 1 sample(s) Processing will be more efficient in single-threaded mode when nrows<100000. Temporarily setting nThread=1. Reading VCF file: single-threaded Converting VCF to data.table. Expanding VCF first, so number of rows may increase. Checking for empty columns. Unlisting 3 columns. Dropped 3 duplicate rows. VCF data.table contains: 93,278 rows x 11 columns. 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 ReverseComplementedAlleles ES LP SE P Summary statistics report: - 93,278 rows - 93,144 unique variants - 23 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,997 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 25 seconds. Loading SNPlocs data. Loading reference genome data. Preprocessing RSIDs. Validating RSIDs of 9,997 SNPs using BSgenome::snpsById... BSgenome::snpsById done in 63 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 93,144 SNPs using BSgenome::snpsById... BSgenome::snpsById done in 39 seconds. 443 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-GCST005522/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 92,844 SNPs using BSgenome::snpsById... BSgenome::snpsById done in 14 seconds. Checking for correct direction of A1 (reference) and A2 (alternative allele). 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. 134 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-GCST005522/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. 2,260 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-GCST005522/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-GCST005522/ebi-a-GCST005522.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: - 90,584 rows (97.1% of original 93,278 rows) - 90,584 unique variants - 21 genome-wide significant variants (P<5e-8) - 22 chromosomes Done munging in 2.618 minutes. Successfully finished preparing sumstats file, preview: Reading header. SNP CHR BP A1 A2 END FILTER REVERSECOMPLEMENTEDALLELES 1: rs61733845 1 1118275 C T 1118275 PASS FALSE 2: rs11804831 1 1194804 T C 1194804 PASS FALSE 3: rs6603788 1 1218086 C T 1218086 PASS FALSE 4: rs1240708 1 1335790 A G 1335790 PASS FALSE 5: rs880051 1 1493727 G A 1493727 PASS FALSE BETA LP SE P Z 1: 0.0305292 0.141162 0.0859688 0.7225002 0.3551193 2: -0.0581589 0.666553 0.0469560 0.2154999 -1.2385833 3: 0.0449734 0.298346 0.0671625 0.5030996 0.6696207 4: -0.0731085 0.890421 0.0481215 0.1287001 -1.5192478 5: -0.0473013 0.588212 0.0418265 0.2581000 -1.1308933