Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update VarTierDiseaseDBFalse.R #37

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions run/VarTierDiseaseDBFalse.R
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,6 @@ VEP.f2 <- unique(VEP.f1.maxIMAPCT[,c("Uploaded_variation", "SYMBOL","Gene","GT",

# STEP 3: assign Tiers ####

# VEP.f2$GT <- ifelse(VEP.f2$GT=="HET", "0/1","1/1")

# though Tier classification is Gene based, Tier should be assigned to each Variant

VEP.Tier.part1 <- data.frame(matrix(ncol = ncol(VEP.f2) + 6, nrow = 0))
Expand All @@ -236,7 +234,7 @@ for (g in unique(VEP.f2$Gene)){

# duplicate rows with HOM var
if ("HOM" %in% g.df$GT){
g.df2 <- rbind(g.df, g.df[g.df$GT == "1/1",])
g.df2 <- rbind(g.df, g.df[g.df$GT == "HOM",])
}
IMPACT.max <- g.df2$IMPACT.max
if(sum(IMPACT.max==4) >=2){
Expand Down Expand Up @@ -334,7 +332,7 @@ for (g in unique(VEP.Tier$Gene)){

# duplicate rows with HOM var
if ("HOM" %in% g.df$GT){
g.df2 <- rbind(g.df, g.df[g.df$GT == "1/1",])
g.df2 <- rbind(g.df, g.df[g.df$GT == "HOM",])
}
IMPACT.max <- g.df2$IMPACT.max

Expand Down
Loading