Skip to content

Commit

Permalink
remove column name for CHR when reading in SNP CSV files (#187)
Browse files Browse the repository at this point in the history
Co-authored-by: s2223108 <[email protected]>
  • Loading branch information
roskamsh and roskamsh authored Nov 28, 2023
1 parent 33c3ff8 commit 8576e28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tmle_inputs/from_actors.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 8576e28

Please sign in to comment.