Skip to content

inner -> outer join with imputation #5

@rhagenson

Description

@rhagenson

Right now the paired counts are inner joined (the default behavior of merge).

finalDf = initialDf.merge(
finalDf, on=["id", "gene"], suffixes=["_initial", "_final"]
).rename(
columns={
"id": "sgRNA",
"gene": "Gene",
"count_initial": sample + ".initial",
"count_final": sample + ".final",
}
)
finalDf.to_csv("count-" + sample + "-i.f.csv", index=False)

However, the downstream analysis (i.e., MAGeCK mle) should be able to handle merging counts properly if we do a full (outer) join then impute with ones/1s.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions