Skip to content

Commit 8576e28

Browse files
authored
remove column name for CHR when reading in SNP CSV files (#187)
Co-authored-by: s2223108 <[email protected]>
1 parent 33c3ff8 commit 8576e28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tmle_inputs/from_actors.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ all_variants(bqtls::DataFrame, transactors::Vector{DataFrame}) = Set(vcat(bqtls.
4949
read_snps_from_csv(path::Nothing) = nothing
5050
function read_snps_from_csv(path::String)
5151
df = CSV.read(path, DataFrame)
52-
df = "TF" in names(df) ? unique(df[:, [:ID, :CHR, :TF]], [:ID, :TF]) : unique(df[:, [:ID, :CHR]], :ID)
52+
df = "TF" in names(df) ? unique(df[:, [:ID, :TF]], [:ID, :TF]) : unique(df[:, [:ID]], :ID)
5353
return(df)
5454
end
5555

0 commit comments

Comments
 (0)