******::NOTE::******
- Formatted results will be saved to `tempdir()` by default.
- This means all formatted summary stats will be deleted upon ending the R session.
- To keep formatted summary stats, change `save_path` ( e.g. `save_path=file.path('./formatted',basename(path))` ), or make sure to copy files elsewhere after processing ( e.g. `file.copy(save_path, './formatted/' )`.
********************
******::NOTE::******
- Log results will be saved to `tempdir()` by default.
- This means all log data from the run will be deleted upon ending the R session.
- To keep it, change `log_folder` to an actual directory (e.g. log_folder='./').
********************
save_path suggests .gz output but tabix_index=TRUE Switching output to tabix-indexed format (.bgz).
Formatted summary statistics will be saved to ==> /var/folders/zq/h7mtybc533b1qzkys_ttgpth0000gn/T//RtmpqUHJNw/file826265f6aeca.tsv.bgz
Log data to be saved to ==> /var/folders/zq/h7mtybc533b1qzkys_ttgpth0000gn/T//RtmpqUHJNw
Saving output messages to:
/var/folders/zq/h7mtybc533b1qzkys_ttgpth0000gn/T//RtmpqUHJNw/MungeSumstats_log_msg.txt
Any runtime errors will be saved to:
/var/folders/zq/h7mtybc533b1qzkys_ttgpth0000gn/T//RtmpqUHJNw/MungeSumstats_log_output.txt
Messages will not be printed to terminal.
Returning path to saved data.
Warning messages:
1: package ‘S4Vectors’ was built under R version 4.2.2
2: package ‘GenomeInfoDb’ was built under R version 4.2.2
===================== 🦠🌋🦠 Welcome to MAGMA.Celltyping 🦠🌋🦠 =====================
This package uses MAGMA:
https://ctg.cncr.nl/software/magma
To cite MAGMA.Celltyping, please use:
* Skene, N.G., Bryois, J., Bakken, T.E. et al. Genetic identification of
brain cell types underlying schizophrenia. Nat Genet 50, 825-833 (2018).
https://doi.org/10.1038/s41588-018-0129-5
* de Leeuw CA, Mooij JM, Heskes T, Posthuma D (2015) MAGMA: Generalized
Gene-Set Analysis of GWAS Data. PLOS Computational Biology 11(4): e1004219.
https://doi.org/10.1371/journal.pcbi.1004219
Please report any bugs or feature requests by filling out an Issues template:
https://github.com/neurogenomics/MAGMA_Celltyping/issues
===================== 🦠🌋🦠 =========================== 🦠🌋🦠 =====================
Installed MAGMA version: v1.10
Skipping MAGMA installation.
The desired_version of MAGMA is currently installed: v1.10
Using: magma_v1.10_mac
Using existing genome_ref found in storage_dir.
Saving decompressed copy of path_formatted ==> /var/folders/zq/h7mtybc533b1qzkys_ttgpth0000gn/T//RtmpqUHJNw/file826265f6aeca.tsv
Error in strsplit(first_line, "\t")[[1]] : subscript out of bounds
Currently throws an errors when GWAS sumstats are bgzip-compressed (e.g. tabix-indexed files).
session info
Turns out this was already implemented but wasn't working due to a bug that only considered files named ".gz" and not those with the ".bgz" suffix.
Fixed now.