From fa76f6fbaac227987c77a67620b919930dc2cb22 Mon Sep 17 00:00:00 2001 From: s2223108 Date: Tue, 28 Nov 2023 13:27:40 +0000 Subject: [PATCH] remove column name for CHR when reading in SNP CSV files --- src/tmle_inputs/from_actors.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tmle_inputs/from_actors.jl b/src/tmle_inputs/from_actors.jl index 7dfe594..765d437 100644 --- a/src/tmle_inputs/from_actors.jl +++ b/src/tmle_inputs/from_actors.jl @@ -49,7 +49,7 @@ all_variants(bqtls::DataFrame, transactors::Vector{DataFrame}) = Set(vcat(bqtls. read_snps_from_csv(path::Nothing) = nothing function read_snps_from_csv(path::String) df = CSV.read(path, DataFrame) - df = "TF" in names(df) ? unique(df[:, [:ID, :CHR, :TF]], [:ID, :TF]) : unique(df[:, [:ID, :CHR]], :ID) + df = "TF" in names(df) ? unique(df[:, [:ID, :TF]], [:ID, :TF]) : unique(df[:, [:ID]], :ID) return(df) end