Closed hamishinnes closed 4 years ago
@hamishinnes -- are you able to convert the plink files (.bed
, .bim
, .bam
) to GDS using SNPRelate? SNPRelate::snpgdsBED2GDS()
?
Also, the copy and paste of the gwasurvivr command you ran seems to be a bit messed up, can you verify that it's not as shown above.
Let me know if that works and if so I'll debug this with you a bit more.
Hi thank you so much for your help so far I have partly managed to solve this issue by changing my temporary directory in R to a new temporary directory with a larger storage space.
However, after doing this, i'm now encountering a different error message with PlinkCoxSurv as follows: "Error in cleanup.gds(out.gdsfn, verbose = verbose) : Stream write error".
ive tried to break down by chromosome, and it works for chromosome 1-9, but then fails on chromosome #10
Ive pasted output below from (albeit this is not exactly what appears on the screen as it is run, because im running this interactively)
* Compression time ** User:372.02 System: 175.226 Elapsed: 1111.89
Analyzing part 1/32... Analyzing part 2/32... Analyzing part 3/32... Analyzing part 4/32... Analyzing part 5/32... Analyzing part 6/32... Analyzing part 7/32... Analyzing part 8/32... Analyzing part 9/32... Analyzing part 10/32... Analyzing part 11/32... Analyzing part 12/32... Analyzing part 13/32... Analyzing part 14/32... Analyzing part 15/32... Analyzing part 16/32... Analyzing part 17/32... Analyzing part 18/32... Analyzing part 19/32... Analyzing part 20/32... Analyzing part 21/32... Analyzing part 22/32... Analyzing part 23/32... Analyzing part 24/32... Analyzing part 25/32... Analyzing part 26/32... Analyzing part 27/32... Analyzing part 28/32... Analyzing part 29/32... Analyzing part 30/32... Analyzing part 31/32... Analyzing part 32/32... 0 SNPs were removed from the analysis for not meeting the given threshold criteria or for having MAF = 0 List of removed SNPs are saved to fib4_agesex_chr10.snps_removed In total 315584 SNPs were included in the analysis The Cox model results output was saved to fib4_agesex_chr10.coxph Analysis completed on 2019-09-21 at 14:13:11 Covariates included in the models are: gender, age 4211 samples are included in the analysis Error in cleanup.gds(out.gdsfn, verbose = verbose) : Stream write error Calls: plinkCoxSurv -> system.time -> snpgdsBED2GDS -> cleanup.gds Timing stopped at: 371.1 155.3 953 Execution halted
Hi, when using gwasurvivr, i am encountering the following error message, which i cant figure out how to get around.
Error in snpgdsBED2GDS(bed.file, fam.file, bim.file, gdsfile, cvt.chr = "int",
of note, when i run the analysis on plink files containing only a small number of variants, the program works perfectly and i dont get this error message. But the problem arises when i try and scale this up to larger files.
I have copied and pasted the output below. here im trying to run an analysis of all chromosome 1 variants available in my genetic dataset.