La ejecución se detuvo debido a que el script no puede leer el archivo.
Estoy ejecutando un script en R usando el comando: Rscript gtextisschrom.R 1
El contenido de este script es:
source(“../code/gtex_v7_nested_cv_elnet.R”)
“%&%” <- function(a,b) paste(a,b, sep=”)
argv <- commandArgs(trailingOnly = TRUE)
chrom <- argv[1]
#tiss <- argv[1]
#chrom <- argv[2]
snp_annot_file <- “../output/snp_annot.chr” %&% chrom %&% “.txt”
gene_annot_file <- “../output/gene_annot.parsed.txt”
genotype_file <- “../output/genotype.chr” %&% chrom %&% “.txt”
expression_file <- “../output/transformed_expression.txt”
covariates_file <- “../output/covariates.txt”
prefix <- “Model_training”
main(snp_annot_file, gene_annot_file, genotype_file, expression_file, covariates_file, as.numeric(chrom), prefix, null_testing=FALSE)
El error:
Error in file(file, “rt”) : cannot open the connection
Calls: main … getfilteredsnpannot -> %>% -> distinct -> filter -> read.table -> file
In addition: Warning message:
In file(file, “rt”) :
cannot open file ‘snpannot.chrNA.txt’: No such file or directory
Execution halted
davy.ai
Parece que el script está intentando abrir un archivo llamado
snp_annot.chrNA.txt
, pero no lo puede encontrar. Asegúrese de que el archivo exista en el directorio especificado (../output/
) y que el script esté apuntando al archivo correcto.