-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MAGMA.Celltyping::get_example_gwas() error #157
Comments
Hi, the issue is exampled in the output message - you need to set up a itHub Personal Access Token (PAT) for your R sessions so piggyback can download the necessary data. Follow the steps in the provided link to do so. Cheers, |
Hi Alan, thanks a lot! I have solved this problem. But an error appeared when I ran genesOutPath < MAGMA.Celltyping::map_snps_to_genes(path_formatted = path_formatted, genome_build = "GRCh37"). Error as follows: Welcome to MAGMA v1.03 (linux) Start time is 17:11:58, Monday 02 Dec 2024 ERROR - parsing arguments: 1 value required for flag --bfile (found 2). ls /root/.cache/R/MAGMA.Celltyping/g1000_eur/ do you know what's wrong with my code? |
Is this part of the example code in the documentation or your own data? I would need a reproducible example to try debug anything and I would advise getting the example code to run first as this will rule out any issues with your set up. Thanks, |
Hi Alan @Al-Murphy, this is part of the example code in the documentation (https://neurogenomics.github.io/MAGMA_Celltyping/articles/MAGMA.Celltyping.html). When I first ran genesOutPath <- MAGMA.Celltyping::map_snps_to_genes(path_formatted = path_formatted, genome_build = "GRCh37"), magma_v1.10 was installed automatically, but showed the following errors: so I ran MAGMA.Celltyping::magma_uninstall() and MAGMA.Celltyping::magma_install(desired_version="1.03"). Also, when I first ran genesOutPath <- MAGMA.Celltyping::map_snps_to_genes(path_formatted = path_formatted, genome_build = "GRCh37"), it showed : downloaded 2.9 MB Error in utils::download.file(url = input_url, destfile = zipfile) : so I downloaded 1000 genomes reference file manually from https://vu.data.surfsara.nl/index.php/s/VZNByNwpD8qqINe/download, and put it under the directory /root/.cache/R/MAGMA.Celltyping/g1000_eur/. then I ran genesOutPath <- MAGMA.Celltyping::map_snps_to_genes(path_formatted = path_formatted, genome_build = "GRCh37"), it showed: ==== MAGMA Step 1: Generate genes.annot file ==== Welcome to MAGMA v1.03 (linux) Start time is 17:11:57, Monday 02 Dec 2024 Starting annotation... End time is 17:11:58, Monday 02 Dec 2024 (elapsed: 00:00:01) ==== MAGMA Step 2: Generate genes.out ==== Welcome to MAGMA v1.03 (linux) Start time is 17:11:58, Monday 02 Dec 2024 ERROR - parsing arguments: 1 value required for flag --bfile (found 2). Terminating program. Do you need any more information? Thanks! |
I would say it is better to use MAGMA Celltypings functionality to download MAGMA and the dependencies to avoid issues like you are having. If you can't get it working, have a look at our docker images to get up and running and avoid any system specific dependencies. |
Thank you, Alan! I will try it. |
Checklist
Affected version
2.0.14
Steps to reproduce the bug
path_formatted <- MAGMA.Celltyping::get_example_gwas(trait = "prospective_memory")
Actual behavior
Importing munged GWAS summary statistics: prospective_memory
Loading required namespace: piggyback
Error in stopper("GitHub Personal Access Token (PAT) is missing.", "This is required to download Release files via piggyback.", :
GitHub Personal Access Token (PAT) is missing. This is required to download Release files via piggyback. See GitHub for details: https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token
Expected behavior
No error
Session info
R version 4.3.3 (2024-02-29) -- "Angel Food Cake"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-conda-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
Natural language support but running in an English locale
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
The text was updated successfully, but these errors were encountered: