I have faced difficulties running the step 4 "Combine the summary statistics and LDSC output and run the common factor GWAS". I have already read the previous comments and following the suggestions, I increased the number of tasks and extended the time limit. Despite making these adjustments, the task did not finish within 100 hours, as limited by the time, even when running for chromosome 22. Could you please provide guidance on how to proceed?
#!/bin/bash
#SBATCH --job-name=GenomicSEM
#SBATCH --nodes=1
#SBATCH --mem=110GB
#SBATCH --cpus-per-task=22
#SBATCH --output=log4_genomicSEM_ch22.txt
#SBATCH --error=log4_genomicSEM_ch22.err
#SBATCH -t 100:00:00
load("2traits_LDSC.Rdata")
load("2traits_sumstats.Rdata")
nrow(BP_sumstats)
BP_sumstats<-subset(BP_sumstats,BP_sumstats$CHR==22)
BP_factor <- commonfactorGWAS(covstruc = LDSCoutput,
SNPs = BP_sumstats,
toler = 1e-30)
save(BP_factor,file="2traits_DWLS_22chr.Rdata")
q()
I appreciate your guidance,
Kind regards,
Anna
Dear all,
Thank you for your response.
I have not been able to run these analyses yet. According to your response, I should use GWAS multivariate analysis instead of Common factor GWAS?. Here, I have a question.
I would like to briefly explain my aim in these analyses. I want to predict hypertension using information from systolic blood pressure and diastolic blood pressure (SBP, DBP). We do not have GWAS summary statistics for hypertension. However, we do have information from GWAS on SBP and DBP. Our aim is to utilize the summary statistics of SBP and DBP to predict a latent factor. We believe that by combining SBP and DBP, we could approximate hypertension. Therefore, we are employing a common factor GWAS approach.
If I understand correctly, in a multivariate GWAS, the SNP predicts both factors. However, this is not my aim. I have, for example, two SNPs (one for SBP, one for DBP), and I aim to predict one common factor. For this purpose, I am using the following command:
load("2traits_LDSC.Rdata")
load("2traits_sumstats.Rdata")
nrow(BP_sumstats)
BP_sumstats<-subset(BP_sumstats,BP_sumstats$CHR==22)
BP_factor <- commonfactorGWAS(covstruc = LDSCoutput,
SNPs = BP_sumstats,
toler = 1e-30)
save(BP_factor,file="2traits_DWLS_22chr.Rdata")
q()
However, I have tried it on different HPC systems, and it has not worked due to time limitations.
I would appreciate your insights on this
Kind regards,
Anna
--
You received this message because you are subscribed to the Google Groups "Genomic SEM Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to genomic-sem-us...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/genomic-sem-users/5d53b83e-ffc3-4ace-9dab-92fcad869d22n%40googlegroups.com.