Skip to content

Commit

Permalink
STAARpipeline v0.9.7
Browse files Browse the repository at this point in the history
  • Loading branch information
xihaoli committed Jun 26, 2024
1 parent d29febc commit 94b5d2b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion R/coding.R
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ coding <- function(chr,gene_name,genofile,obj_nullmodel,genes,
results_m[length(results_m)] <- 1
}

apc_num <- (length(results_m)-10)/6
apc_num <- (length(results_m)-10)/2
p_seq <- c(1:apc_num,1:apc_num+(apc_num+1),(length(results_m)-6):(length(results_m)-5))

## calculate STAAR-B
Expand Down
2 changes: 1 addition & 1 deletion R/coding_incl_ptv.R
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,7 @@ coding_incl_ptv <- function(chr,gene_name,genofile,obj_nullmodel,genes,
results_m[length(results_m)] <- 1
}

apc_num <- (length(results_m)-10)/6
apc_num <- (length(results_m)-10)/2
p_seq <- c(1:apc_num,1:apc_num+(apc_num+1),(length(results_m)-6):(length(results_m)-5))

## calculate STAAR-B
Expand Down
2 changes: 1 addition & 1 deletion R/missense.R
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ missense <- function(chr,gene_name,genofile,obj_nullmodel,genes,
results_m[length(results_m)] <- 1
}

apc_num <- (length(results_m)-10)/6
apc_num <- (length(results_m)-10)/2
p_seq <- c(1:apc_num,1:apc_num+(apc_num+1),(length(results_m)-6):(length(results_m)-5))

## calculate STAAR-B
Expand Down
2 changes: 1 addition & 1 deletion R/missense_cond_spa.R
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ missense_cond_spa <- function(chr,gene_name,genofile,obj_nullmodel,genes,known_l
results_m[length(results_m)] <- 1
}

apc_num <- (length(results_m)-10)/6
apc_num <- (length(results_m)-10)/2
p_seq <- c(1:apc_num,1:apc_num+(apc_num+1),(length(results_m)-6):(length(results_m)-5))

## calculate STAAR-B
Expand Down

0 comments on commit 94b5d2b

Please sign in to comment.