Skip to content

read_plink returns 'nan' strings for sample_ids #1314

Description

@jeromekelleher

Here's my code:

        data_path = "tests/data/plink/"
        bed_path = data_path + "plink_sim_10s_100v_10pmiss.bed"
        fam_path = data_path + "plink_sim_10s_100v_10pmiss.fam"
        bim_path = data_path + "plink_sim_10s_100v_10pmiss.bim"
        # print(bed_path)
        # print(fam_path)
        sg_ds = sgkit.io.plink.read_plink(
            bed_path=bed_path, fam_path=fam_path, bim_path=bim_path
        )
        print("sample Id = ", sg_ds.sample_id.values)

giving

sample Id =  ['nan' 'nan' 'nan' 'nan' 'nan' 'nan' 'nan' 'nan' 'nan' 'nan']

I don't really know what's going on here, but the fact that no-one has spotted this suggests to me that the code isn't being used by anyone.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions